mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 22:52:21 +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.
39 lines
1 KiB
C
39 lines
1 KiB
C
#ifndef __vid_internal_h
|
|
#define __vid_internal_h
|
|
|
|
#include "QF/vid.h"
|
|
#include "QF/plugin/vid_render.h"
|
|
|
|
typedef struct vid_internal_s {
|
|
int (*surf_cache_size) (int width, int height);
|
|
void (*flush_caches) (void);
|
|
void (*init_caches) (void *cache, int size);
|
|
void (*do_screen_buffer) (void);
|
|
void (*set_palette) (const byte *palette);
|
|
|
|
void (*choose_visual) (void);
|
|
void (*create_context) (void);
|
|
|
|
struct gl_ctx_s *(*gl_context) (void);
|
|
struct sw_ctx_s *(*sw_context) (void);
|
|
struct vulkan_ctx_s *(*vulkan_context) (void);
|
|
} vid_internal_t;
|
|
|
|
extern struct cvar_s *vid_fullscreen;
|
|
extern struct cvar_s *vid_system_gamma;
|
|
extern struct cvar_s *vid_gamma;
|
|
|
|
extern unsigned short sw32_8to16table[256];
|
|
|
|
void VID_GetWindowSize (int def_w, int def_h);
|
|
|
|
void VID_InitGamma (unsigned char *);
|
|
qboolean VID_SetGamma (double);
|
|
void VID_UpdateGamma (struct cvar_s *);
|
|
|
|
void VID_LockBuffer (void);
|
|
void VID_UnlockBuffer (void);
|
|
void VID_InitBuffers (void);
|
|
void VID_MakeColormaps (void);
|
|
|
|
#endif//__vid_internal_h
|