2019-07-08 16:00:47 +00:00
|
|
|
#ifndef __vid_gl_h
|
|
|
|
#define __vid_gl_h
|
|
|
|
|
2021-03-27 11:09:37 +00:00
|
|
|
// GL_context is a pointer to opaque data
|
|
|
|
typedef struct GL_context *GL_context;
|
2019-07-08 16:00:47 +00:00
|
|
|
|
|
|
|
typedef struct gl_ctx_s {
|
2021-03-27 11:09:37 +00:00
|
|
|
GL_context context;
|
2019-07-08 16:00:47 +00:00
|
|
|
void (*load_gl) (void);
|
|
|
|
void (*choose_visual) (struct gl_ctx_s *ctx);
|
|
|
|
void (*create_context) (struct gl_ctx_s *ctx);
|
|
|
|
void (*init_gl) (void);
|
|
|
|
void *(*get_proc_address) (const char *name, qboolean crit);
|
|
|
|
void (*end_rendering) (void);
|
|
|
|
} gl_ctx_t;
|
|
|
|
|
|
|
|
extern gl_ctx_t *gl_ctx;
|
|
|
|
extern gl_ctx_t *glsl_ctx;
|
|
|
|
|
|
|
|
#endif//__vid_gl_h
|