2012-02-17 07:13:56 +00:00
|
|
|
#ifndef __vid_internal_h
|
|
|
|
#define __vid_internal_h
|
|
|
|
|
|
|
|
#include "QF/vid.h"
|
|
|
|
#include "QF/plugin/vid_render.h"
|
|
|
|
|
2019-07-08 04:40:29 +00:00
|
|
|
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);
|
|
|
|
|
2019-07-08 16:00:47 +00:00
|
|
|
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);
|
2019-07-08 04:40:29 +00:00
|
|
|
} vid_internal_t;
|
|
|
|
|
2012-02-17 07:13:56 +00:00
|
|
|
extern struct cvar_s *vid_fullscreen;
|
|
|
|
extern struct cvar_s *vid_system_gamma;
|
|
|
|
extern struct cvar_s *vid_gamma;
|
|
|
|
|
2012-02-22 07:32:34 +00:00
|
|
|
extern unsigned short sw32_8to16table[256];
|
2012-02-17 07:13:56 +00:00
|
|
|
|
|
|
|
void VID_GetWindowSize (int def_w, int def_h);
|
|
|
|
|
2013-01-27 10:57:40 +00:00
|
|
|
void VID_InitGamma (const byte *);
|
2012-02-17 07:13:56 +00:00
|
|
|
qboolean VID_SetGamma (double);
|
|
|
|
void VID_UpdateGamma (struct cvar_s *);
|
|
|
|
|
|
|
|
void VID_LockBuffer (void);
|
|
|
|
void VID_UnlockBuffer (void);
|
|
|
|
void VID_InitBuffers (void);
|
2014-02-02 07:42:08 +00:00
|
|
|
void VID_MakeColormaps (void);
|
|
|
|
|
2012-02-17 07:13:56 +00:00
|
|
|
#endif//__vid_internal_h
|