From a0af797aef80159fd44c712b313383590ebab2d2 Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 30 Jun 2003 11:34:34 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@76 783a27ee-832a-0410-bc00-9f386506c6dd --- Makefile | 2 +- include/GL/glew.h | 32 +++++++++++++++++++++++--------- src/glew.c | 17 +++++++++++++++++ src/glewinfo.c | 13 +++++++++++++ 4 files changed, 54 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index ca046f6..debd7fe 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ ## THE POSSIBILITY OF SUCH DAMAGE. GLEW_DEST ?= /usr -GLEW_VERSION = 1.0.6 +GLEW_VERSION = 1.0.7 SYSTEM = $(strip $(shell uname -s)) diff --git a/include/GL/glew.h b/include/GL/glew.h index 6b46bd9..8f3b1f9 100644 --- a/include/GL/glew.h +++ b/include/GL/glew.h @@ -190,6 +190,7 @@ extern "C" { #define GL_EXT_blend_subtract 1 /* (1.4) */ #define GL_EXT_clip_volume_hint 1 #define GL_EXT_compiled_vertex_array 1 +#define GL_EXT_depth_bounds_test 1 #define GL_EXT_draw_range_elements 1 /* (1.2) */ #define GL_EXT_cull_vertex 1 #define GL_EXT_fog_coord 1 /* (1.4) */ @@ -1682,7 +1683,7 @@ extern GLEW_EXPORT PFNGLWINDOWPOS3SVPROC glWindowPos3sv; #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA -#define GL_POST_COLOR_MATIX_ALPHA_BIAS 0x80BB +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB #define GL_COLOR_TABLE 0x80D0 #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 @@ -2591,29 +2592,42 @@ extern GLEW_EXPORT PFNGLUNLOCKARRAYSEXTPROC glUnlockArraysEXT; #ifdef GL_EXT_cull_vertex +#define GL_CULL_VERTEX_EXT 0x81AA +#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC + typedef void (APIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); typedef void (APIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); extern GLEW_EXPORT PFNGLCULLPARAMETERFVEXTPROC glCullParameterfvEXT; extern GLEW_EXPORT PFNGLCULLPARAMETERDVEXTPROC glCullParameterdvEXT; -#define GL_CULL_VERTEX_EXT 0x81AA -#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB -#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC - #endif /* GL_EXT_cull_vertex */ +/* ------------------------ GL_EXT_depth_bounds_test ----------------------- */ + +#ifdef GL_EXT_depth_bounds_test + +#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 +#define GL_DEPTH_BOUNDS_EXT 0x8891 + +typedef void (GLAPIENTRY * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); + +extern GLEW_EXPORT PFNGLDEPTHBOUNDSEXTPROC glDepthBoundsEXT; + +#endif /* GL_EXT_depth_bounds_test */ + /* ------------------------ EXT_draw_range_elements ----------------------- */ #ifdef GL_EXT_draw_range_elements +#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 + typedef void (APIENTRY * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); extern GLEW_EXPORT PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElementsEXT; -#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 - #endif /* GL_EXT_draw_range_elements */ /* ----------------------------- EXT_fog_coord ---------------------------- */ @@ -3786,7 +3800,6 @@ extern GLEW_EXPORT PFNGLGETFENCEIVNVPROC glGetFenceivNV; #define GL_FLOAT_RGBA_NV 0x8883 #define GL_FLOAT_R32_NV 0x8885 #define GL_FLOAT_R16_NV 0x8884 -#define GL_FLOAT_R32_NV 0x8885 #define GL_FLOAT_RG16_NV 0x8886 #define GL_FLOAT_RG32_NV 0x8887 #define GL_FLOAT_RGB16_NV 0x8888 @@ -4644,6 +4657,7 @@ struct GLEW unsigned int EXT_clip_volume_hint : 1; unsigned int EXT_compiled_vertex_array : 1; unsigned int EXT_cull_vertex : 1; + unsigned int EXT_depth_bounds_test : 1; unsigned int EXT_draw_range_elements : 1; unsigned int EXT_fog_coord : 1; unsigned int EXT_multi_draw_arrays : 1; diff --git a/src/glew.c b/src/glew.c index 32e9337..ecc19be 100644 --- a/src/glew.c +++ b/src/glew.c @@ -827,6 +827,19 @@ static GLboolean _glewInit_EXT_cull_vertex () } #endif /* GL_EXT_cull_vertex */ +/* ------------------------ GL_EXT_depth_bounds_test ---------------------- */ + +#ifdef GL_EXT_depth_bounds_test +PFNGLDEPTHBOUNDSEXTPROC glDepthBoundsEXT = NULL; + +static GLboolean _glewInit_EXT_depth_bounds_test () +{ + GLboolean r = GL_FALSE; + r = r || (glDepthBoundsEXT = (PFNGLDEPTHBOUNDSEXTPROC)glewGetProcAddress("glDepthBoundsEXT")) == NULL; + return r; +} +#endif /* GL_EXT_depth_bounds_test */ + /* ------------------------ EXT_draw_range_elements ----------------------- */ #ifdef GL_EXT_draw_range_elements @@ -2848,6 +2861,10 @@ static GLint _glewInit () glew.EXT_cull_vertex = glewGetExtension("GL_EXT_cull_vertex"); if (glewExperimental || glew.EXT_cull_vertex) glew.EXT_cull_vertex = !_glewInit_EXT_cull_vertex(); #endif +#ifdef GL_EXT_depth_bounds_test + glew.EXT_depth_bounds_test = glewGetExtension("GL_EXT_depth_bounds_test"); + if (glewExperimental || glew.EXT_depth_bounds_test) glew.EXT_depth_bounds_test = !_glewInit_EXT_depth_bounds_test(); +#endif #ifdef GL_EXT_draw_range_elements glew.EXT_draw_range_elements = glewGetExtension("GL_EXT_draw_range_elements"); if (glewExperimental || glew.EXT_draw_range_elements) glew.EXT_draw_range_elements = !_glewInit_EXT_draw_range_elements(); diff --git a/src/glewinfo.c b/src/glewinfo.c index 8037d98..df2b418 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -518,6 +518,16 @@ static void glewInfo_EXT_cull_vertex () } #endif /* GL_EXT_cull_vertex */ +/* ------------------------ GL_EXT_depth_bounds_test ---------------------- */ + +#ifdef GL_EXT_depth_bounds_test +static void _glewInfo_EXT_depth_bounds_test () +{ + char me[] = "GL_EXT_depth_bounds_test"; glewPrintExt(me, glew.EXT_depth_bounds_test); + glewInfoFunc(glDepthBoundsEXT == NULL, "glDepthBoundsEXT"); +} +#endif /* GL_EXT_depth_bounds_test */ + /* ------------------------ EXT_draw_range_elements ----------------------- */ #ifdef GL_EXT_draw_range_elements @@ -1782,6 +1792,9 @@ static void glewInfo () #ifdef GL_EXT_cull_vertex glewInfo_EXT_cull_vertex(); #endif +#ifdef GL_EXT_depth_bounds_test + glewInfo_EXT_depth_bounds_test(); +#endif #ifdef GL_EXT_draw_range_elements glewInfo_EXT_draw_range_elements(); #endif