diff options
author | Ian Romanick <[email protected]> | 2004-12-01 08:15:01 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-12-01 08:15:01 +0000 |
commit | c8c24d049d8d359894130aa7bcdf2319ef4e09df (patch) | |
tree | 6cfb2741eb68d52ada5afafc8fa88cd2a9c20227 /src/glx/x11/indirect_init.c | |
parent | 345ed3ac8c5a26b8d99c21cf467d05da7e8edfc8 (diff) |
Make the transition to script-genereated GLX code easier.
Move EXT_vertex_array wrapper functions from indirect_init.c to vertarr.c.
Fix problems with EXT_multi_draw_arrays function names.
Diffstat (limited to 'src/glx/x11/indirect_init.c')
-rw-r--r-- | src/glx/x11/indirect_init.c | 63 |
1 files changed, 8 insertions, 55 deletions
diff --git a/src/glx/x11/indirect_init.c b/src/glx/x11/indirect_init.c index c3ec8d0a921..d587a8783a2 100644 --- a/src/glx/x11/indirect_init.c +++ b/src/glx/x11/indirect_init.c @@ -45,53 +45,6 @@ static int NoOp(void) return 0; } -/** - * \name Vertex array pointer bridge functions - * - * When EXT_vertex_array was moved into the core GL spec, the \c count - * parameter was lost. This libGL really only wants to implement the GL 1.1 - * version, but we need to support applications that were written to the old - * interface. These bridge functions are part of the glue that makes this - * happen. - */ -/*@{*/ -static void ColorPointerEXT(GLint size, GLenum type, GLsizei stride, - GLsizei count, const GLvoid * pointer ) -{ - (void) count; __indirect_glColorPointer( size, type, stride, pointer ); -} - -static void EdgeFlagPointerEXT(GLsizei stride, - GLsizei count, const GLboolean * pointer ) -{ - (void) count; __indirect_glEdgeFlagPointer( stride, pointer ); -} - -static void IndexPointerEXT(GLenum type, GLsizei stride, - GLsizei count, const GLvoid * pointer ) -{ - (void) count; __indirect_glIndexPointer( type, stride, pointer ); -} - -static void NormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, - const GLvoid * pointer ) -{ - (void) count; __indirect_glNormalPointer( type, stride, pointer ); -} - -static void TexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, - GLsizei count, const GLvoid * pointer ) -{ - (void) count; __indirect_glTexCoordPointer( size, type, stride, pointer ); -} - -static void VertexPointerEXT(GLint size, GLenum type, GLsizei stride, - GLsizei count, const GLvoid * pointer ) -{ - (void) count; __indirect_glVertexPointer( size, type, stride, pointer ); -} -/*@}*/ - __GLapi *__glXNewIndirectAPI(void) { @@ -492,8 +445,8 @@ __GLapi *__glXNewIndirectAPI(void) glAPI->SeparableFilter2D = __indirect_glSeparableFilter2D; /* 1.4 */ - glAPI->MultiDrawArraysEXT = __indirect_glMultiDrawArrays; - glAPI->MultiDrawElementsEXT = __indirect_glMultiDrawElements; + glAPI->MultiDrawArraysEXT = __indirect_glMultiDrawArraysEXT; + glAPI->MultiDrawElementsEXT = __indirect_glMultiDrawElementsEXT; /* ARB 1. GL_ARB_multitexture */ glAPI->ActiveTextureARB = __indirect_glActiveTextureARB; @@ -577,12 +530,12 @@ __GLapi *__glXNewIndirectAPI(void) glAPI->SamplePatternSGIS = __indirect_glSamplePatternSGIS; /* 30. GL_EXT_vertex_array */ - glAPI->ColorPointerEXT = ColorPointerEXT; - glAPI->EdgeFlagPointerEXT = EdgeFlagPointerEXT; - glAPI->IndexPointerEXT = IndexPointerEXT; - glAPI->NormalPointerEXT = NormalPointerEXT; - glAPI->TexCoordPointerEXT = TexCoordPointerEXT; - glAPI->VertexPointerEXT = VertexPointerEXT; + glAPI->ColorPointerEXT = __indirect_glColorPointerEXT; + glAPI->EdgeFlagPointerEXT = __indirect_glEdgeFlagPointerEXT; + glAPI->IndexPointerEXT = __indirect_glIndexPointerEXT; + glAPI->NormalPointerEXT = __indirect_glNormalPointerEXT; + glAPI->TexCoordPointerEXT = __indirect_glTexCoordPointerEXT; + glAPI->VertexPointerEXT = __indirect_glVertexPointerEXT; /* 145. GL_EXT_secondary_color / GL 1.4 */ glAPI->SecondaryColor3bEXT = __indirect_glSecondaryColor3bEXT; |