X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid.h;h=df62a5a476d86d02605f32be8a2742c1779f932f;hp=ac3e17f54a9c7e98dcb57edab31f574060683f8e;hb=1ff3bc8e953680793a28ea923f2d1e58cdf2c9f0;hpb=5f35382fe36debde51c7ce98bf72ddd52643d1ca diff --git a/vid.h b/vid.h index ac3e17f5..df62a5a4 100644 --- a/vid.h +++ b/vid.h @@ -37,25 +37,12 @@ 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; - qboolean arb_query_buffer_object; - qboolean arb_texture_compression; qboolean arb_texture_gather; - qboolean ext_blend_minmax; - qboolean ext_blend_subtract; - qboolean ext_blend_func_separate; - qboolean ext_packed_depth_stencil; qboolean ext_texture_compression_s3tc; qboolean ext_texture_filter_anisotropic; qboolean ext_texture_srgb; - qboolean arb_texture_float; - qboolean arb_half_float_pixel; - qboolean arb_half_float_vertex; - qboolean arb_multisample; qboolean arb_debug_output; } viddef_support_t; @@ -95,9 +82,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; @@ -195,21 +179,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