RENDERPATH_GL13,
RENDERPATH_GL20,
RENDERPATH_CGGL,
+ RENDERPATH_D3D9,
+ RENDERPATH_D3D10,
+ RENDERPATH_D3D11,
+ RENDERPATH_SOFT
}
renderpath_t;
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;
}
void *cgcontext;
renderpath_t renderpath;
+ qboolean forcevbo; // some renderpaths can not operate without it
+ qboolean useinterleavedarrays; // required by some renderpaths
unsigned int texunits;
unsigned int teximageunits;
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;
+
+ // in RENDERPATH_SOFT this is a 32bpp native-endian ARGB framebuffer
+ // (native-endian ARGB meaning that in little endian it is BGRA bytes,
+ // in big endian it is ARGB byte order, the format is converted during
+ // blit to the window)
+ unsigned int *softpixels;
+ unsigned int *softdepthpixels;
} viddef_t;
// global video state
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);