mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
8ee06d75a9
This paves the way for clean initialization of the Vulkan renderer, and very much cleans up the older renderer initialization code as gl and sw are no longer intertwined.
18 lines
482 B
C
18 lines
482 B
C
#ifndef __vid_sw_h
|
|
#define __vid_sw_h
|
|
|
|
// GLXContext is a pointer to opaque data
|
|
typedef struct __GLXcontextRec *GLXContext;
|
|
struct vrect_s;
|
|
typedef struct sw_ctx_s {
|
|
GLXContext context;
|
|
void (*choose_visual) (struct sw_ctx_s *ctx);
|
|
void (*create_context) (struct sw_ctx_s *ctx);
|
|
void (*set_palette) (const byte *palette);
|
|
void (*update) (struct vrect_s *rects);
|
|
} sw_ctx_t;
|
|
|
|
extern sw_ctx_t *sw_ctx;
|
|
extern sw_ctx_t *sw32_ctx;
|
|
|
|
#endif//__vid_sw_h
|