X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=vid.h;h=ddd7a21e04d3a069f8f5cff40f6753d768729c51;hb=a22f1a10e5225c4df6387acf73ba5cce918cdea2;hp=e1b14ef1b9956438a8c5e56831ee4a3a5199638b;hpb=33fb1d11372ce3b1beab0407015535247d6bff14;p=xonotic%2Fdarkplaces.git diff --git a/vid.h b/vid.h index e1b14ef1..ddd7a21e 100644 --- a/vid.h +++ b/vid.h @@ -37,8 +37,7 @@ renderpath_t; typedef struct viddef_support_s { - qboolean gl20shaders130; // indicates glBindFragDataLocation is available - int glshaderversion; // typical values: 100 110 120 130 140 ... + int glshaderversion; // this is at least 150 (GL 3.2) qboolean amd_texture_texture4; qboolean arb_draw_buffers; qboolean arb_occlusion_query; @@ -56,6 +55,7 @@ typedef struct viddef_support_s qboolean arb_half_float_pixel; qboolean arb_half_float_vertex; qboolean arb_multisample; + qboolean arb_debug_output; } viddef_support_t; @@ -94,9 +94,6 @@ typedef struct viddef_s renderpath_t renderpath; qboolean allowalphatocoverage; // indicates the GL_AlphaToCoverage function works on this renderpath and framebuffer - unsigned int drawrangeelements_maxvertices; - unsigned int drawrangeelements_maxindices; - unsigned int maxtexturesize_2d; unsigned int maxtexturesize_3d; unsigned int maxtexturesize_cubemap; @@ -194,21 +191,18 @@ extern const char *gl_version; extern const char *gl_extensions; // WGL, GLX, or AGL extern const char *gl_platform; -// another extensions list, containing platform-specific extensions that are -// not in the main list -extern const char *gl_platformextensions; // name of driver library (opengl32.dll, libGL.so.1, or whatever) extern char gl_driver[256]; void *GL_GetProcAddress(const char *name); -qboolean GL_CheckExtension(const char *minglver_or_ext, const dllfunction_t *funcs, const char *disableparm, int silent); +qboolean GL_CheckExtension(const char *name, const char *disableparm, int silent); +qboolean GL_ExtensionSupported(const char *name); void VID_Shared_Init(void); -void GL_Init (void); +void GL_Setup(void); void VID_ClearExtensions(void); -void VID_CheckExtensions(void); void VID_Init (void); // Called at startup