#define GL_CLAMP_TO_EDGE 0x812F
#endif
-//GL_NV_vertex_array_range
-extern GLvoid *(GLAPIENTRY *qglAllocateMemoryNV)(GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
-extern GLvoid (GLAPIENTRY *qglFreeMemoryNV)(GLvoid *pointer);
-extern GLvoid (GLAPIENTRY *qglVertexArrayRangeNV)(GLsizei length, GLvoid *pointer);
-extern GLvoid (GLAPIENTRY *qglFlushVertexArrayRangeNV)(GLvoid);
-#define GL_VERTEX_ARRAY_RANGE_NV 0x851D
-#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E
-#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
-#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521
-extern int gl_support_var;
-
-//GL_NV_vertex_array_range2
-#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
-extern int gl_support_var2;
-
//GL_EXT_stencil_two_side
#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910
#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911
int gl_dot3arb = false;
// GL_SGIS_texture_edge_clamp
int gl_support_clamptoedge = false;
-// GL_NV_vertex_array_range
-int gl_support_var = false;
-// GL_NV_vertex_array_range2
-int gl_support_var2 = false;
// GL_EXT_texture_filter_anisotropic
int gl_support_anisotropy = false;
int gl_max_anisotropy = 1;
{NULL, NULL}
};
-static dllfunction_t glxvarfuncs[] =
-{
- {"glXAllocateMemoryNV", (void **) &qglAllocateMemoryNV},
- {"glXFreeMemoryNV", (void **) &qglFreeMemoryNV},
- {"glVertexArrayRangeNV", (void **) &qglVertexArrayRangeNV},
- {"glFlushVertexArrayRangeNV", (void **) &qglFlushVertexArrayRangeNV},
- {NULL, NULL}
-};
-
-static dllfunction_t wglvarfuncs[] =
-{
- {"wglAllocateMemoryNV", (void **) &qglAllocateMemoryNV},
- {"wglFreeMemoryNV", (void **) &qglFreeMemoryNV},
- {"glVertexArrayRangeNV", (void **) &qglVertexArrayRangeNV},
- {"glFlushVertexArrayRangeNV", (void **) &qglFlushVertexArrayRangeNV},
- {NULL, NULL}
-};
-
static dllfunction_t stenciltwosidefuncs[] =
{
{"glActiveStencilFaceEXT", (void **) &qglActiveStencilFaceEXT},
gl_texturecubemap = false;
gl_dot3arb = false;
gl_support_clamptoedge = false;
- gl_support_var = false;
- gl_support_var2 = false;
gl_support_anisotropy = false;
gl_max_anisotropy = 1;
gl_textureshader = false;
gl_supportslockarrays = GL_CheckExtension("GL_EXT_compiled_vertex_array", compiledvertexarrayfuncs, "-nocva", false);
gl_support_clamptoedge = GL_CheckExtension("GL_EXT_texture_edge_clamp", NULL, "-noedgeclamp", false) || GL_CheckExtension("GL_SGIS_texture_edge_clamp", NULL, "-noedgeclamp", false);
- if (!strcmp(gl_platform, "GLX"))
- gl_support_var = GL_CheckExtension("GL_NV_vertex_array_range", glxvarfuncs, "-novar", false);
- else if (!strcmp(gl_platform, "WGL"))
- gl_support_var = GL_CheckExtension("GL_NV_vertex_array_range", wglvarfuncs, "-novar", false);
- if (gl_support_var)
- gl_support_var2 = GL_CheckExtension("GL_NV_vertex_array_range2", NULL, "-novar2", false);
-
if ((gl_support_anisotropy = GL_CheckExtension("GL_EXT_texture_filter_anisotropic", NULL, "-noanisotropy", false)))
qglGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gl_max_anisotropy);