Commit 1eaee423 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Use vertex arrays when possible.

parent 2d6a3fcc
...@@ -40,6 +40,7 @@ GL_API_FUNCTION(glColor3ub) ...@@ -40,6 +40,7 @@ GL_API_FUNCTION(glColor3ub)
GL_API_FUNCTION(glColor4ub) GL_API_FUNCTION(glColor4ub)
GL_API_FUNCTION(glColorMask) GL_API_FUNCTION(glColorMask)
GL_API_FUNCTION(glColorMaterial) GL_API_FUNCTION(glColorMaterial)
GL_API_FUNCTION(glColorPointer)
GL_API_FUNCTION(glCopyPixels) GL_API_FUNCTION(glCopyPixels)
GL_API_FUNCTION(glCopyTexSubImage2D) GL_API_FUNCTION(glCopyTexSubImage2D)
GL_API_FUNCTION(glCullFace) GL_API_FUNCTION(glCullFace)
...@@ -48,9 +49,13 @@ GL_API_FUNCTION(glDepthFunc) ...@@ -48,9 +49,13 @@ GL_API_FUNCTION(glDepthFunc)
GL_API_FUNCTION(glDepthMask) GL_API_FUNCTION(glDepthMask)
GL_API_FUNCTION(glDepthRange) GL_API_FUNCTION(glDepthRange)
GL_API_FUNCTION(glDisable) GL_API_FUNCTION(glDisable)
GL_API_FUNCTION(glDisableClientState)
GL_API_FUNCTION(glDrawArrays)
GL_API_FUNCTION(glDrawBuffer) GL_API_FUNCTION(glDrawBuffer)
GL_API_FUNCTION(glDrawElements)
GL_API_FUNCTION(glDrawPixels) GL_API_FUNCTION(glDrawPixels)
GL_API_FUNCTION(glEnable) GL_API_FUNCTION(glEnable)
GL_API_FUNCTION(glEnableClientState)
GL_API_FUNCTION(glEnd) GL_API_FUNCTION(glEnd)
GL_API_FUNCTION(glFlush) GL_API_FUNCTION(glFlush)
GL_API_FUNCTION(glFogf) GL_API_FUNCTION(glFogf)
...@@ -77,6 +82,7 @@ GL_API_FUNCTION(glMatrixMode) ...@@ -77,6 +82,7 @@ GL_API_FUNCTION(glMatrixMode)
GL_API_FUNCTION(glMultMatrixf) GL_API_FUNCTION(glMultMatrixf)
GL_API_FUNCTION(glNormal3f) GL_API_FUNCTION(glNormal3f)
GL_API_FUNCTION(glNormal3fv) GL_API_FUNCTION(glNormal3fv)
GL_API_FUNCTION(glNormalPointer)
GL_API_FUNCTION(glOrtho) GL_API_FUNCTION(glOrtho)
GL_API_FUNCTION(glPixelStorei) GL_API_FUNCTION(glPixelStorei)
GL_API_FUNCTION(glPolygonMode) GL_API_FUNCTION(glPolygonMode)
...@@ -94,6 +100,7 @@ GL_API_FUNCTION(glStencilMask) ...@@ -94,6 +100,7 @@ GL_API_FUNCTION(glStencilMask)
GL_API_FUNCTION(glStencilOp) GL_API_FUNCTION(glStencilOp)
GL_API_FUNCTION(glTexCoord2f) GL_API_FUNCTION(glTexCoord2f)
GL_API_FUNCTION(glTexCoord2fv) GL_API_FUNCTION(glTexCoord2fv)
GL_API_FUNCTION(glTexCoordPointer)
GL_API_FUNCTION(glTexEnvf) GL_API_FUNCTION(glTexEnvf)
GL_API_FUNCTION(glTexEnvfv) GL_API_FUNCTION(glTexEnvfv)
GL_API_FUNCTION(glTexEnvi) GL_API_FUNCTION(glTexEnvi)
...@@ -106,6 +113,7 @@ GL_API_FUNCTION(glVertex3d) ...@@ -106,6 +113,7 @@ GL_API_FUNCTION(glVertex3d)
GL_API_FUNCTION(glVertex3f) GL_API_FUNCTION(glVertex3f)
GL_API_FUNCTION(glVertex3fv) GL_API_FUNCTION(glVertex3fv)
GL_API_FUNCTION(glVertex4f) GL_API_FUNCTION(glVertex4f)
GL_API_FUNCTION(glVertexPointer)
GL_API_FUNCTION(glViewport) GL_API_FUNCTION(glViewport)
GL_API_FUNCTION(glXCreateContext) GL_API_FUNCTION(glXCreateContext)
GL_API_FUNCTION(glXDestroyContext) GL_API_FUNCTION(glXDestroyContext)
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
#define glColor3ub pglColor3ub #define glColor3ub pglColor3ub
#define glColor4ub pglColor4ub #define glColor4ub pglColor4ub
#define glColorMask pglColorMask #define glColorMask pglColorMask
#define glColorPointer pglColorPointer
#define glCopyPixels pglCopyPixels #define glCopyPixels pglCopyPixels
#define glCopyTexSubImage2D pglCopyTexSubImage2D #define glCopyTexSubImage2D pglCopyTexSubImage2D
#define glColorMaterial pglColorMaterial #define glColorMaterial pglColorMaterial
...@@ -91,9 +92,13 @@ ...@@ -91,9 +92,13 @@
#define glDepthMask pglDepthMask #define glDepthMask pglDepthMask
#define glDepthRange pglDepthRange #define glDepthRange pglDepthRange
#define glDisable pglDisable #define glDisable pglDisable
#define glDisableClientState pglDisableClientState
#define glDrawArrays pglDrawArrays
#define glDrawBuffer pglDrawBuffer #define glDrawBuffer pglDrawBuffer
#define glDrawElements pglDrawElements
#define glDrawPixels pglDrawPixels #define glDrawPixels pglDrawPixels
#define glEnable pglEnable #define glEnable pglEnable
#define glEnableClientState pglEnableClientState
#define glEnd pglEnd #define glEnd pglEnd
#define glFlush pglFlush #define glFlush pglFlush
#define glFogf pglFogf #define glFogf pglFogf
...@@ -120,6 +125,7 @@ ...@@ -120,6 +125,7 @@
#define glMultMatrixf pglMultMatrixf #define glMultMatrixf pglMultMatrixf
#define glNormal3f pglNormal3f #define glNormal3f pglNormal3f
#define glNormal3fv pglNormal3fv #define glNormal3fv pglNormal3fv
#define glNormalPointer pglNormalPointer
#define glOrtho pglOrtho #define glOrtho pglOrtho
#define glPixelStorei pglPixelStorei #define glPixelStorei pglPixelStorei
#define glPolygonMode pglPolygonMode #define glPolygonMode pglPolygonMode
...@@ -137,6 +143,7 @@ ...@@ -137,6 +143,7 @@
#define glStencilOp pglStencilOp #define glStencilOp pglStencilOp
#define glTexCoord2f pglTexCoord2f #define glTexCoord2f pglTexCoord2f
#define glTexCoord2fv pglTexCoord2fv #define glTexCoord2fv pglTexCoord2fv
#define glTexCoordPointer pglTexCoordPointer
#define glTexEnvf pglTexEnvf #define glTexEnvf pglTexEnvf
#define glTexEnvfv pglTexEnvfv #define glTexEnvfv pglTexEnvfv
#define glTexEnvi pglTexEnvi #define glTexEnvi pglTexEnvi
...@@ -149,6 +156,7 @@ ...@@ -149,6 +156,7 @@
#define glVertex3f pglVertex3f #define glVertex3f pglVertex3f
#define glVertex3fv pglVertex3fv #define glVertex3fv pglVertex3fv
#define glVertex4f pglVertex4f #define glVertex4f pglVertex4f
#define glVertexPointer pglVertexPointer
#define glViewport pglViewport #define glViewport pglViewport
#define glXCreateContext pglXCreateContext #define glXCreateContext pglXCreateContext
#define glXDestroyContext pglXDestroyContext #define glXDestroyContext pglXDestroyContext
......
...@@ -174,6 +174,7 @@ typedef struct { ...@@ -174,6 +174,7 @@ typedef struct {
GLint max_texture_units; GLint max_texture_units;
void (*glActiveTexture)(GLenum texture); void (*glActiveTexture)(GLenum texture);
void (*glMultiTexCoord2fv)(GLenum target, const GLfloat *v); void (*glMultiTexCoord2fv)(GLenum target, const GLfloat *v);
void (*glClientActiveTexture)(GLenum texture);
} GL_EXTENSIONS_LIST; } GL_EXTENSIONS_LIST;
extern GL_EXTENSIONS_LIST GL_extensions; extern GL_EXTENSIONS_LIST GL_extensions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment