X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=glquake.h;h=4e9e3a24547f44747fee93250b94d2bbb9c7d7b7;hb=ac98bf077bc6ec661e54210d8b3bc8ce687cede2;hp=48c1e6068b35a3a4d3790ebcb2142e2edec838ff;hpb=d96a2757b0c114e7132e7e82444b676274105f08;p=xonotic%2Fdarkplaces.git diff --git a/glquake.h b/glquake.h index 48c1e606..4e9e3a24 100644 --- a/glquake.h +++ b/glquake.h @@ -29,13 +29,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #pragma warning(disable : 4018) // LordHavoc: MSVC++ 4 x86, signed/unsigned mismatch #endif -#ifdef _WIN32 -#include -#define strcasecmp stricmp -#define strncasecmp strnicmp -#endif - -//#include //==================================================== @@ -114,6 +107,7 @@ typedef double GLclampd; #define GL_TEXTURE_WRAP_S 0x2802 #define GL_TEXTURE_WRAP_T 0x2803 #define GL_TEXTURE_WRAP_R 0x8072 +#define GL_TEXTURE_BORDER_COLOR 0x1004 #define GL_TEXTURE_MAG_FILTER 0x2800 #define GL_TEXTURE_MIN_FILTER 0x2801 #define GL_UNPACK_ALIGNMENT 0x0CF5 @@ -202,6 +196,12 @@ typedef double GLclampd; #define GL_REPLACE 0x1E01 #define GL_INCR 0x1E02 #define GL_DECR 0x1E03 + +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 #endif // GL_ARB_multitexture @@ -323,8 +323,8 @@ extern int gl_texturecubemap; extern int gl_dot3arb; #ifndef GL_DOT3_RGB_ARB -#define DOT3_RGB_ARB 0x86AE -#define DOT3_RGBA_ARB 0x86AF +#define GL_DOT3_RGB_ARB 0x86AE +#define GL_DOT3_RGBA_ARB 0x86AF #endif /* @@ -336,6 +336,34 @@ extern int gl_dot3ext; #endif */ +#ifndef GL_SCISSOR_TEST +#define GL_SCISSOR_TEST 0x0C11 +#define GL_SCISSOR_BOX 0x0C10 +#endif + +// GL_SGIS_texture_edge_clamp or GL_EXT_texture_edge_clamp +extern int gl_support_clamptoedge; +#ifndef GL_CLAMP_TO_EDGE +#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; + + +extern void (GLAPIENTRY *qglScissor)(GLint x, GLint y, GLsizei width, GLsizei height); extern void (GLAPIENTRY *qglClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); @@ -345,8 +373,8 @@ extern void (GLAPIENTRY *qglClear)(GLbitfield mask); extern void (GLAPIENTRY *qglBlendFunc)(GLenum sfactor, GLenum dfactor); extern void (GLAPIENTRY *qglCullFace)(GLenum mode); -extern void (GLAPIENTRY *qglDrawBuffer)(GLenum mode); -extern void (GLAPIENTRY *qglReadBuffer)(GLenum mode); +//extern void (GLAPIENTRY *qglDrawBuffer)(GLenum mode); +//extern void (GLAPIENTRY *qglReadBuffer)(GLenum mode); extern void (GLAPIENTRY *qglEnable)(GLenum cap); extern void (GLAPIENTRY *qglDisable)(GLenum cap); //extern GLboolean GLAPIENTRY *qglIsEnabled)(GLenum cap); @@ -354,9 +382,9 @@ extern void (GLAPIENTRY *qglDisable)(GLenum cap); extern void (GLAPIENTRY *qglEnableClientState)(GLenum cap); extern void (GLAPIENTRY *qglDisableClientState)(GLenum cap); -extern void (GLAPIENTRY *qglGetBooleanv)(GLenum pname, GLboolean *params); -extern void (GLAPIENTRY *qglGetDoublev)(GLenum pname, GLdouble *params); -extern void (GLAPIENTRY *qglGetFloatv)(GLenum pname, GLfloat *params); +//extern void (GLAPIENTRY *qglGetBooleanv)(GLenum pname, GLboolean *params); +//extern void (GLAPIENTRY *qglGetDoublev)(GLenum pname, GLdouble *params); +//extern void (GLAPIENTRY *qglGetFloatv)(GLenum pname, GLfloat *params); extern void (GLAPIENTRY *qglGetIntegerv)(GLenum pname, GLint *params); extern GLenum (GLAPIENTRY *qglGetError)(void); @@ -367,7 +395,7 @@ extern void (GLAPIENTRY *qglFlush)(void); extern void (GLAPIENTRY *qglClearDepth)(GLclampd depth); extern void (GLAPIENTRY *qglDepthFunc)(GLenum func); extern void (GLAPIENTRY *qglDepthMask)(GLboolean flag); -extern void (GLAPIENTRY *qglDepthRange)(GLclampd near_val, GLclampd far_val); +//extern void (GLAPIENTRY *qglDepthRange)(GLclampd near_val, GLclampd far_val); extern void (GLAPIENTRY *qglColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); extern void (GLAPIENTRY *qglDrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); @@ -376,14 +404,14 @@ extern void (GLAPIENTRY *qglVertexPointer)(GLint size, GLenum type, GLsizei stri //extern void (GLAPIENTRY *qglNormalPointer)(GLenum type, GLsizei stride, const GLvoid *ptr); extern void (GLAPIENTRY *qglColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr); extern void (GLAPIENTRY *qglTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr); -extern void (GLAPIENTRY *qglArrayElement)(GLint i); +//extern void (GLAPIENTRY *qglArrayElement)(GLint i); extern void (GLAPIENTRY *qglColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -extern void (GLAPIENTRY *qglTexCoord2f)(GLfloat s, GLfloat t); -extern void (GLAPIENTRY *qglVertex2f)(GLfloat x, GLfloat y); -extern void (GLAPIENTRY *qglVertex3f)(GLfloat x, GLfloat y, GLfloat z); -extern void (GLAPIENTRY *qglBegin)(GLenum mode); -extern void (GLAPIENTRY *qglEnd)(void); +//extern void (GLAPIENTRY *qglTexCoord2f)(GLfloat s, GLfloat t); +//extern void (GLAPIENTRY *qglVertex2f)(GLfloat x, GLfloat y); +//extern void (GLAPIENTRY *qglVertex3f)(GLfloat x, GLfloat y, GLfloat z); +//extern void (GLAPIENTRY *qglBegin)(GLenum mode); +//extern void (GLAPIENTRY *qglEnd)(void); extern void (GLAPIENTRY *qglMatrixMode)(GLenum mode); extern void (GLAPIENTRY *qglOrtho)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val); @@ -392,16 +420,16 @@ extern void (GLAPIENTRY *qglViewport)(GLint x, GLint y, GLsizei width, GLsizei h //extern void (GLAPIENTRY *qglPushMatrix)(void); //extern void (GLAPIENTRY *qglPopMatrix)(void); extern void (GLAPIENTRY *qglLoadIdentity)(void); -extern void (GLAPIENTRY *qglLoadMatrixd)(const GLdouble *m); +//extern void (GLAPIENTRY *qglLoadMatrixd)(const GLdouble *m); extern void (GLAPIENTRY *qglLoadMatrixf)(const GLfloat *m); //extern void (GLAPIENTRY *qglMultMatrixd)(const GLdouble *m); //extern void (GLAPIENTRY *qglMultMatrixf)(const GLfloat *m); //extern void (GLAPIENTRY *qglRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -extern void (GLAPIENTRY *qglRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +//extern void (GLAPIENTRY *qglRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); //extern void (GLAPIENTRY *qglScaled)(GLdouble x, GLdouble y, GLdouble z); //extern void (GLAPIENTRY *qglScalef)(GLfloat x, GLfloat y, GLfloat z); //extern void (GLAPIENTRY *qglTranslated)(GLdouble x, GLdouble y, GLdouble z); -extern void (GLAPIENTRY *qglTranslatef)(GLfloat x, GLfloat y, GLfloat z); +//extern void (GLAPIENTRY *qglTranslatef)(GLfloat x, GLfloat y, GLfloat z); extern void (GLAPIENTRY *qglReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); @@ -413,15 +441,16 @@ extern void (GLAPIENTRY *qglClearStencil)(GLint s); //extern void (GLAPIENTRY *qglTexEnvf)(GLenum target, GLenum pname, GLfloat param); extern void (GLAPIENTRY *qglTexEnvi)(GLenum target, GLenum pname, GLint param); //extern void (GLAPIENTRY *qglTexParameterf)(GLenum target, GLenum pname, GLfloat param); +//extern void (GLAPIENTRY *qglTexParameterfv)(GLenum target, GLenum pname, GLfloat *params); extern void (GLAPIENTRY *qglTexParameteri)(GLenum target, GLenum pname, GLint param); extern void (GLAPIENTRY *qglGenTextures)(GLsizei n, GLuint *textures); extern void (GLAPIENTRY *qglDeleteTextures)(GLsizei n, const GLuint *textures); extern void (GLAPIENTRY *qglBindTexture)(GLenum target, GLuint texture); -extern void (GLAPIENTRY *qglPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities); -extern GLboolean (GLAPIENTRY *qglAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences); +//extern void (GLAPIENTRY *qglPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities); +//extern GLboolean (GLAPIENTRY *qglAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences); extern GLboolean (GLAPIENTRY *qglIsTexture)(GLuint texture); -extern void (GLAPIENTRY *qglPixelStoref)(GLenum pname, GLfloat param); +//extern void (GLAPIENTRY *qglPixelStoref)(GLenum pname, GLfloat param); extern void (GLAPIENTRY *qglPixelStorei)(GLenum pname, GLint param); extern void (GLAPIENTRY *qglTexImage1D)(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); @@ -433,6 +462,8 @@ extern void (GLAPIENTRY *qglCopyTexImage2D)(GLenum target, GLint level, GLenum i extern void (GLAPIENTRY *qglCopyTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); extern void (GLAPIENTRY *qglCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +extern void (GLAPIENTRY *qglPolygonOffset)(GLfloat factor, GLfloat units); + #if WIN32 extern int (WINAPI *qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *); extern int (WINAPI *qwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);