]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added support for glPolygonOffset (not used though)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Nov 2002 23:07:26 +0000 (23:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Nov 2002 23:07:26 +0000 (23:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2595 d7cf8633-e32d-0410-b094-e92efae38249

glquake.h
vid_shared.c

index ef65f0d1b4b903f49f8ecbd4b5ff811faf851fd0..6c4ebd775227fc3e8e5063fb09ae4f927bc075a1 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -203,6 +203,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
@@ -441,6 +447,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);
index 88f2dbb8418820e0ec3c7579c8c7120e8e613aaa..2743742d0bd61a0ccc3c3ef5164d850b856ce8ed 100644 (file)
@@ -181,6 +181,8 @@ void (GLAPIENTRY *qglCopyTexSubImage3D)(GLenum target, GLint level, GLint xoffse
 
 void (GLAPIENTRY *qglScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
 
+void (GLAPIENTRY *qglPolygonOffset)(GLfloat factor, GLfloat units);
+
 int GL_CheckExtension(const char *name, const gl_extensionfunctionlist_t *funcs, const char *disableparm, int silent)
 {
        int failed = false;
@@ -305,6 +307,7 @@ static gl_extensionfunctionlist_t opengl110funcs[] =
        {"glCopyTexSubImage1D", (void **) &qglCopyTexSubImage1D},
        {"glCopyTexSubImage2D", (void **) &qglCopyTexSubImage2D},
        {"glScissor", (void **) &qglScissor},
+       {"glPolygonOffset", (void **) &qglPolygonOffset},
        {NULL, NULL}
 };