]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid.h
fix another warning
[xonotic/darkplaces.git] / vid.h
diff --git a/vid.h b/vid.h
index a7c34b43337b8aabdb44f2791e97ed324cdc47d1..343e8f1815f71a92c3f3301e7d3c5fe104bdacba 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -33,6 +33,10 @@ typedef enum renderpath_e
        RENDERPATH_GL11,
        RENDERPATH_GL13,
        RENDERPATH_GL20,
+       RENDERPATH_CGGL,
+       RENDERPATH_D3D9,
+       RENDERPATH_D3D10,
+       RENDERPATH_D3D11
 }
 renderpath_t;
 
@@ -40,6 +44,7 @@ typedef struct viddef_support_s
 {
        qboolean amd_texture_texture4;
        qboolean arb_depth_texture;
+       qboolean arb_draw_buffers;
        qboolean arb_fragment_shader;
        qboolean arb_multitexture;
        qboolean arb_occlusion_query;
@@ -51,17 +56,16 @@ typedef struct viddef_support_s
        qboolean arb_texture_env_combine;
        qboolean arb_texture_gather;
        qboolean arb_texture_non_power_of_two;
-       qboolean arb_texture_rectangle;
        qboolean arb_vertex_buffer_object;
        qboolean arb_vertex_shader;
        qboolean ati_separate_stencil;
        qboolean ext_blend_minmax;
        qboolean ext_blend_subtract;
-       qboolean ext_compiled_vertex_array;
        qboolean ext_draw_range_elements;
        qboolean ext_framebuffer_object;
        qboolean ext_stencil_two_side;
        qboolean ext_texture_3d;
+       qboolean ext_texture_compression_s3tc;
        qboolean ext_texture_edge_clamp;
        qboolean ext_texture_filter_anisotropic;
 }
@@ -95,7 +99,10 @@ typedef struct viddef_s
        int samples;
        qboolean stencil;
 
+       void *cgcontext;
+
        renderpath_t renderpath;
+       qboolean forcevbo; // some renderpaths can not operate without it
 
        unsigned int texunits;
        unsigned int teximageunits;
@@ -106,8 +113,8 @@ typedef struct viddef_s
        unsigned int maxtexturesize_2d;
        unsigned int maxtexturesize_3d;
        unsigned int maxtexturesize_cubemap;
-       unsigned int maxtexturesize_rectangle;
        unsigned int max_anisotropy;
+       unsigned int maxdrawbuffers;
 
        viddef_support_t support;
 } viddef_t;
@@ -176,12 +183,13 @@ extern qboolean isG200;
 extern qboolean isRagePro;
 
 void *GL_GetProcAddress(const char *name);
-int GL_CheckExtension(const char *minglver_or_ext, const dllfunction_t *funcs, const char *disableparm, int silent);
+qboolean GL_CheckExtension(const char *minglver_or_ext, const dllfunction_t *funcs, const char *disableparm, int silent);
 
 void VID_Shared_Init(void);
 
 void GL_Init (void);
 
+void VID_ClearExtensions(void);
 void VID_CheckExtensions(void);
 
 void VID_Init (void);