mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
5477352e93
I'd been considering it for a while, but in the end, all the issues it presented made me decide it wasn't worth merging and was never really worth keeping: it was a neat proof of concept but of little actual use, especially now everyone either has an OK GPU or would want to stick to 8-bit rendering anyway (sorry L-Havoc). However, both it and my merge work are preserved in git history :)
37 lines
1,019 B
C
37 lines
1,019 B
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) (void *data, int width, int height);
|
|
void (*flush_caches) (void *data);
|
|
void (*init_caches) (void *data, void *cache, int size);
|
|
void (*init_buffers) (void *data);
|
|
void (*set_palette) (void *data, const byte *palette);
|
|
|
|
void (*choose_visual) (void *data);
|
|
void (*create_context) (void *data);
|
|
|
|
void *data;
|
|
|
|
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;
|
|
|
|
void VID_GetWindowSize (int def_w, int def_h);
|
|
|
|
void VID_InitGamma (const byte *);
|
|
qboolean VID_SetGamma (double);
|
|
void VID_UpdateGamma (struct cvar_s *);
|
|
|
|
void VID_InitBuffers (void);
|
|
void VID_MakeColormaps (void);
|
|
|
|
#endif//__vid_internal_h
|