From: Karl Schultz Date: Thu, 4 Dec 2003 20:43:24 +0000 (+0000) Subject: Add missing GLAPIENTRY X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44c00033f2bfc28cc100ebedd3a8b845516a8f00;p=mesa.git Add missing GLAPIENTRY --- diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index 92fd3369531..7b1cf99a355 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -745,177 +745,177 @@ static void enum_error( void ) _mesa_compile_error( ctx, GL_INVALID_ENUM, "glVertexAttrib" ); } -static void _save_Vertex2f( GLfloat x, GLfloat y ) +static void GLAPIENTRY _save_Vertex2f( GLfloat x, GLfloat y ) { DISPATCH_ATTR2F( _TNL_ATTRIB_POS, x, y ); } -static void _save_Vertex2fv( const GLfloat *v ) +static void GLAPIENTRY _save_Vertex2fv( const GLfloat *v ) { DISPATCH_ATTR2FV( _TNL_ATTRIB_POS, v ); } -static void _save_Vertex3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _save_Vertex3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_POS, x, y, z ); } -static void _save_Vertex3fv( const GLfloat *v ) +static void GLAPIENTRY _save_Vertex3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_POS, v ); } -static void _save_Vertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _save_Vertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_POS, x, y, z, w ); } -static void _save_Vertex4fv( const GLfloat *v ) +static void GLAPIENTRY _save_Vertex4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_POS, v ); } -static void _save_TexCoord1f( GLfloat x ) +static void GLAPIENTRY _save_TexCoord1f( GLfloat x ) { DISPATCH_ATTR1F( _TNL_ATTRIB_TEX0, x ); } -static void _save_TexCoord1fv( const GLfloat *v ) +static void GLAPIENTRY _save_TexCoord1fv( const GLfloat *v ) { DISPATCH_ATTR1FV( _TNL_ATTRIB_TEX0, v ); } -static void _save_TexCoord2f( GLfloat x, GLfloat y ) +static void GLAPIENTRY _save_TexCoord2f( GLfloat x, GLfloat y ) { DISPATCH_ATTR2F( _TNL_ATTRIB_TEX0, x, y ); } -static void _save_TexCoord2fv( const GLfloat *v ) +static void GLAPIENTRY _save_TexCoord2fv( const GLfloat *v ) { DISPATCH_ATTR2FV( _TNL_ATTRIB_TEX0, v ); } -static void _save_TexCoord3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _save_TexCoord3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_TEX0, x, y, z ); } -static void _save_TexCoord3fv( const GLfloat *v ) +static void GLAPIENTRY _save_TexCoord3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_TEX0, v ); } -static void _save_TexCoord4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _save_TexCoord4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_TEX0, x, y, z, w ); } -static void _save_TexCoord4fv( const GLfloat *v ) +static void GLAPIENTRY _save_TexCoord4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_TEX0, v ); } -static void _save_Normal3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _save_Normal3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_NORMAL, x, y, z ); } -static void _save_Normal3fv( const GLfloat *v ) +static void GLAPIENTRY _save_Normal3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_NORMAL, v ); } -static void _save_FogCoordfEXT( GLfloat x ) +static void GLAPIENTRY _save_FogCoordfEXT( GLfloat x ) { DISPATCH_ATTR1F( _TNL_ATTRIB_FOG, x ); } -static void _save_FogCoordfvEXT( const GLfloat *v ) +static void GLAPIENTRY _save_FogCoordfvEXT( const GLfloat *v ) { DISPATCH_ATTR1FV( _TNL_ATTRIB_FOG, v ); } -static void _save_Color3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _save_Color3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_COLOR0, x, y, z ); } -static void _save_Color3fv( const GLfloat *v ) +static void GLAPIENTRY _save_Color3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_COLOR0, v ); } -static void _save_Color4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _save_Color4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_COLOR0, x, y, z, w ); } -static void _save_Color4fv( const GLfloat *v ) +static void GLAPIENTRY _save_Color4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_COLOR0, v ); } -static void _save_SecondaryColor3fEXT( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _save_SecondaryColor3fEXT( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_COLOR1, x, y, z ); } -static void _save_SecondaryColor3fvEXT( const GLfloat *v ) +static void GLAPIENTRY _save_SecondaryColor3fvEXT( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_COLOR1, v ); } -static void _save_MultiTexCoord1f( GLenum target, GLfloat x ) +static void GLAPIENTRY _save_MultiTexCoord1f( GLenum target, GLfloat x ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR1F( attr, x ); } -static void _save_MultiTexCoord1fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _save_MultiTexCoord1fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR1FV( attr, v ); } -static void _save_MultiTexCoord2f( GLenum target, GLfloat x, GLfloat y ) +static void GLAPIENTRY _save_MultiTexCoord2f( GLenum target, GLfloat x, GLfloat y ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR2F( attr, x, y ); } -static void _save_MultiTexCoord2fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _save_MultiTexCoord2fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR2FV( attr, v ); } -static void _save_MultiTexCoord3f( GLenum target, GLfloat x, GLfloat y, +static void GLAPIENTRY _save_MultiTexCoord3f( GLenum target, GLfloat x, GLfloat y, GLfloat z) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR3F( attr, x, y, z ); } -static void _save_MultiTexCoord3fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _save_MultiTexCoord3fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR3FV( attr, v ); } -static void _save_MultiTexCoord4f( GLenum target, GLfloat x, GLfloat y, +static void GLAPIENTRY _save_MultiTexCoord4f( GLenum target, GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR4F( attr, x, y, z, w ); } -static void _save_MultiTexCoord4fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _save_MultiTexCoord4fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR4FV( attr, v ); } -static void _save_VertexAttrib1fNV( GLuint index, GLfloat x ) +static void GLAPIENTRY _save_VertexAttrib1fNV( GLuint index, GLfloat x ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR1F( index, x ); @@ -923,7 +923,7 @@ static void _save_VertexAttrib1fNV( GLuint index, GLfloat x ) enum_error(); } -static void _save_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _save_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR1FV( index, v ); @@ -931,7 +931,7 @@ static void _save_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _save_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) +static void GLAPIENTRY _save_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR2F( index, x, y ); @@ -939,7 +939,7 @@ static void _save_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) enum_error(); } -static void _save_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _save_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR2FV( index, v ); @@ -947,7 +947,7 @@ static void _save_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _save_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, +static void GLAPIENTRY _save_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z ) { if (index < VERT_ATTRIB_MAX) @@ -956,7 +956,7 @@ static void _save_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, enum_error(); } -static void _save_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _save_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR3FV( index, v ); @@ -964,7 +964,7 @@ static void _save_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _save_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, +static void GLAPIENTRY _save_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { if (index < VERT_ATTRIB_MAX) @@ -973,7 +973,7 @@ static void _save_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, enum_error(); } -static void _save_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _save_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR4FV( index, v ); @@ -1023,7 +1023,7 @@ do { \ /* NOTE: Have to remove/deal-with colormaterial crossovers, probably * later on - in the meantime just store everything. */ -static void _save_Materialfv( GLenum face, GLenum pname, +static void GLAPIENTRY _save_Materialfv( GLenum face, GLenum pname, const GLfloat *params ) { GET_CURRENT_CONTEXT( ctx ); @@ -1075,22 +1075,22 @@ do { \ } while (0) -static void _save_EdgeFlag( GLboolean b ) +static void GLAPIENTRY _save_EdgeFlag( GLboolean b ) { IDX_ATTR( _TNL_ATTRIB_EDGEFLAG, (GLfloat)b ); } -static void _save_EdgeFlagv( const GLboolean *v ) +static void GLAPIENTRY _save_EdgeFlagv( const GLboolean *v ) { IDX_ATTR( _TNL_ATTRIB_EDGEFLAG, (GLfloat)(v[0]) ); } -static void _save_Indexf( GLfloat f ) +static void GLAPIENTRY _save_Indexf( GLfloat f ) { IDX_ATTR( _TNL_ATTRIB_INDEX, f ); } -static void _save_Indexfv( const GLfloat *f ) +static void GLAPIENTRY _save_Indexfv( const GLfloat *f ) { IDX_ATTR( _TNL_ATTRIB_INDEX, f[0] ); } @@ -1118,56 +1118,56 @@ do { \ ctx->Driver.SaveNeedFlush = 0; \ } while (0) -static void _save_EvalCoord1f( GLfloat u ) +static void GLAPIENTRY _save_EvalCoord1f( GLfloat u ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalCoord1f( u ); } -static void _save_EvalCoord1fv( const GLfloat *v ) +static void GLAPIENTRY _save_EvalCoord1fv( const GLfloat *v ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalCoord1fv( v ); } -static void _save_EvalCoord2f( GLfloat u, GLfloat v ) +static void GLAPIENTRY _save_EvalCoord2f( GLfloat u, GLfloat v ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalCoord2f( u, v ); } -static void _save_EvalCoord2fv( const GLfloat *v ) +static void GLAPIENTRY _save_EvalCoord2fv( const GLfloat *v ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalCoord2fv( v ); } -static void _save_EvalPoint1( GLint i ) +static void GLAPIENTRY _save_EvalPoint1( GLint i ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalPoint1( i ); } -static void _save_EvalPoint2( GLint i, GLint j ) +static void GLAPIENTRY _save_EvalPoint2( GLint i, GLint j ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->EvalPoint2( i, j ); } -static void _save_CallList( GLuint l ) +static void GLAPIENTRY _save_CallList( GLuint l ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); ctx->Save->CallList( l ); } -static void _save_CallLists( GLsizei n, GLenum type, const GLvoid *v ) +static void GLAPIENTRY _save_CallLists( GLsizei n, GLenum type, const GLvoid *v ) { GET_CURRENT_CONTEXT(ctx); FALLBACK(ctx); @@ -1202,7 +1202,7 @@ static GLboolean _save_NotifyBegin( GLcontext *ctx, GLenum mode ) -static void _save_End( void ) +static void GLAPIENTRY _save_End( void ) { GET_CURRENT_CONTEXT( ctx ); TNLcontext *tnl = TNL_CONTEXT(ctx); @@ -1229,7 +1229,7 @@ static void _save_End( void ) /* These are all errors as this vtxfmt is only installed inside * begin/end pairs. */ -static void _save_DrawElements(GLenum mode, GLsizei count, GLenum type, +static void GLAPIENTRY _save_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) { GET_CURRENT_CONTEXT(ctx); @@ -1237,7 +1237,7 @@ static void _save_DrawElements(GLenum mode, GLsizei count, GLenum type, } -static void _save_DrawRangeElements(GLenum mode, +static void GLAPIENTRY _save_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) @@ -1246,32 +1246,32 @@ static void _save_DrawRangeElements(GLenum mode, _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawRangeElements" ); } -static void _save_DrawArrays(GLenum mode, GLint start, GLsizei count) +static void GLAPIENTRY _save_DrawArrays(GLenum mode, GLint start, GLsizei count) { GET_CURRENT_CONTEXT(ctx); _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawArrays" ); } -static void _save_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) +static void GLAPIENTRY _save_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) { GET_CURRENT_CONTEXT(ctx); _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glRectf" ); } -static void _save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) +static void GLAPIENTRY _save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) { GET_CURRENT_CONTEXT(ctx); _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glEvalMesh1" ); } -static void _save_EvalMesh2( GLenum mode, GLint i1, GLint i2, +static void GLAPIENTRY _save_EvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ) { GET_CURRENT_CONTEXT(ctx); _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glEvalMesh2" ); } -static void _save_Begin( GLenum mode ) +static void GLAPIENTRY _save_Begin( GLenum mode ) { GET_CURRENT_CONTEXT( ctx ); _mesa_compile_error( ctx, GL_INVALID_OPERATION, "Recursive glBegin" ); @@ -1282,7 +1282,7 @@ static void _save_Begin( GLenum mode ) * maintained in ctx->ListState, active when the list is known or * suspected to be outside any begin/end primitive. */ -static void _save_OBE_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) +static void GLAPIENTRY _save_OBE_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) { GET_CURRENT_CONTEXT(ctx); _save_NotifyBegin( ctx, GL_QUADS | PRIM_WEAK ); @@ -1294,7 +1294,7 @@ static void _save_OBE_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) } -static void _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei count) +static void GLAPIENTRY _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei count) { GET_CURRENT_CONTEXT(ctx); GLint i; @@ -1309,7 +1309,7 @@ static void _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei count) } -static void _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum type, +static void GLAPIENTRY _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) { GET_CURRENT_CONTEXT(ctx); @@ -1341,7 +1341,7 @@ static void _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum type, glEnd(); } -static void _save_OBE_DrawRangeElements(GLenum mode, +static void GLAPIENTRY _save_OBE_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) diff --git a/src/mesa/tnl/t_vtx_api.c b/src/mesa/tnl/t_vtx_api.c index 34a77ec40a0..d286f890e2f 100644 --- a/src/mesa/tnl/t_vtx_api.c +++ b/src/mesa/tnl/t_vtx_api.c @@ -430,7 +430,11 @@ ATTRS( 15 ) static void init_attrfv( TNLcontext *tnl ) { +#ifdef WIN32 + if (0) fprintf(stderr, "%s %d\n", "init_attrfv", tnl->vtx.vertex_size); +#else if (0) fprintf(stderr, "%s %d\n", __FUNCTION__, tnl->vtx.vertex_size); +#endif if (tnl->vtx.vertex_size) { GLuint i; @@ -503,177 +507,177 @@ static void enum_error( void ) _mesa_error( ctx, GL_INVALID_ENUM, "glVertexAttrib" ); } -static void _tnl_Vertex2f( GLfloat x, GLfloat y ) +static void GLAPIENTRY _tnl_Vertex2f( GLfloat x, GLfloat y ) { DISPATCH_ATTR2F( _TNL_ATTRIB_POS, x, y ); } -static void _tnl_Vertex2fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Vertex2fv( const GLfloat *v ) { DISPATCH_ATTR2FV( _TNL_ATTRIB_POS, v ); } -static void _tnl_Vertex3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _tnl_Vertex3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_POS, x, y, z ); } -static void _tnl_Vertex3fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Vertex3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_POS, v ); } -static void _tnl_Vertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _tnl_Vertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_POS, x, y, z, w ); } -static void _tnl_Vertex4fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Vertex4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_POS, v ); } -static void _tnl_TexCoord1f( GLfloat x ) +static void GLAPIENTRY _tnl_TexCoord1f( GLfloat x ) { DISPATCH_ATTR1F( _TNL_ATTRIB_TEX0, x ); } -static void _tnl_TexCoord1fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_TexCoord1fv( const GLfloat *v ) { DISPATCH_ATTR1FV( _TNL_ATTRIB_TEX0, v ); } -static void _tnl_TexCoord2f( GLfloat x, GLfloat y ) +static void GLAPIENTRY _tnl_TexCoord2f( GLfloat x, GLfloat y ) { DISPATCH_ATTR2F( _TNL_ATTRIB_TEX0, x, y ); } -static void _tnl_TexCoord2fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_TexCoord2fv( const GLfloat *v ) { DISPATCH_ATTR2FV( _TNL_ATTRIB_TEX0, v ); } -static void _tnl_TexCoord3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _tnl_TexCoord3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_TEX0, x, y, z ); } -static void _tnl_TexCoord3fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_TexCoord3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_TEX0, v ); } -static void _tnl_TexCoord4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _tnl_TexCoord4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_TEX0, x, y, z, w ); } -static void _tnl_TexCoord4fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_TexCoord4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_TEX0, v ); } -static void _tnl_Normal3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _tnl_Normal3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_NORMAL, x, y, z ); } -static void _tnl_Normal3fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Normal3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_NORMAL, v ); } -static void _tnl_FogCoordfEXT( GLfloat x ) +static void GLAPIENTRY _tnl_FogCoordfEXT( GLfloat x ) { DISPATCH_ATTR1F( _TNL_ATTRIB_FOG, x ); } -static void _tnl_FogCoordfvEXT( const GLfloat *v ) +static void GLAPIENTRY _tnl_FogCoordfvEXT( const GLfloat *v ) { DISPATCH_ATTR1FV( _TNL_ATTRIB_FOG, v ); } -static void _tnl_Color3f( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _tnl_Color3f( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_COLOR0, x, y, z ); } -static void _tnl_Color3fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Color3fv( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_COLOR0, v ); } -static void _tnl_Color4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) +static void GLAPIENTRY _tnl_Color4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { DISPATCH_ATTR4F( _TNL_ATTRIB_COLOR0, x, y, z, w ); } -static void _tnl_Color4fv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Color4fv( const GLfloat *v ) { DISPATCH_ATTR4FV( _TNL_ATTRIB_COLOR0, v ); } -static void _tnl_SecondaryColor3fEXT( GLfloat x, GLfloat y, GLfloat z ) +static void GLAPIENTRY _tnl_SecondaryColor3fEXT( GLfloat x, GLfloat y, GLfloat z ) { DISPATCH_ATTR3F( _TNL_ATTRIB_COLOR1, x, y, z ); } -static void _tnl_SecondaryColor3fvEXT( const GLfloat *v ) +static void GLAPIENTRY _tnl_SecondaryColor3fvEXT( const GLfloat *v ) { DISPATCH_ATTR3FV( _TNL_ATTRIB_COLOR1, v ); } -static void _tnl_MultiTexCoord1f( GLenum target, GLfloat x ) +static void GLAPIENTRY _tnl_MultiTexCoord1f( GLenum target, GLfloat x ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR1F( attr, x ); } -static void _tnl_MultiTexCoord1fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _tnl_MultiTexCoord1fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR1FV( attr, v ); } -static void _tnl_MultiTexCoord2f( GLenum target, GLfloat x, GLfloat y ) +static void GLAPIENTRY _tnl_MultiTexCoord2f( GLenum target, GLfloat x, GLfloat y ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR2F( attr, x, y ); } -static void _tnl_MultiTexCoord2fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _tnl_MultiTexCoord2fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR2FV( attr, v ); } -static void _tnl_MultiTexCoord3f( GLenum target, GLfloat x, GLfloat y, +static void GLAPIENTRY _tnl_MultiTexCoord3f( GLenum target, GLfloat x, GLfloat y, GLfloat z) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR3F( attr, x, y, z ); } -static void _tnl_MultiTexCoord3fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _tnl_MultiTexCoord3fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR3FV( attr, v ); } -static void _tnl_MultiTexCoord4f( GLenum target, GLfloat x, GLfloat y, +static void GLAPIENTRY _tnl_MultiTexCoord4f( GLenum target, GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR4F( attr, x, y, z, w ); } -static void _tnl_MultiTexCoord4fv( GLenum target, const GLfloat *v ) +static void GLAPIENTRY _tnl_MultiTexCoord4fv( GLenum target, const GLfloat *v ) { GLuint attr = (target & 0x7) + _TNL_ATTRIB_TEX0; DISPATCH_ATTR4FV( attr, v ); } -static void _tnl_VertexAttrib1fNV( GLuint index, GLfloat x ) +static void GLAPIENTRY _tnl_VertexAttrib1fNV( GLuint index, GLfloat x ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR1F( index, x ); @@ -681,7 +685,7 @@ static void _tnl_VertexAttrib1fNV( GLuint index, GLfloat x ) enum_error(); } -static void _tnl_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _tnl_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR1FV( index, v ); @@ -689,7 +693,7 @@ static void _tnl_VertexAttrib1fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _tnl_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) +static void GLAPIENTRY _tnl_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR2F( index, x, y ); @@ -697,7 +701,7 @@ static void _tnl_VertexAttrib2fNV( GLuint index, GLfloat x, GLfloat y ) enum_error(); } -static void _tnl_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _tnl_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR2FV( index, v ); @@ -705,7 +709,7 @@ static void _tnl_VertexAttrib2fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _tnl_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, +static void GLAPIENTRY _tnl_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z ) { if (index < VERT_ATTRIB_MAX) @@ -714,7 +718,7 @@ static void _tnl_VertexAttrib3fNV( GLuint index, GLfloat x, GLfloat y, enum_error(); } -static void _tnl_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _tnl_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR3FV( index, v ); @@ -722,7 +726,7 @@ static void _tnl_VertexAttrib3fvNV( GLuint index, const GLfloat *v ) enum_error(); } -static void _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, +static void GLAPIENTRY _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { if (index < VERT_ATTRIB_MAX) @@ -731,7 +735,7 @@ static void _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, enum_error(); } -static void _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) +static void GLAPIENTRY _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) DISPATCH_ATTR4FV( index, v ); @@ -782,7 +786,7 @@ do { \ /* NOTE: Have to remove/deal-with colormaterial crossovers, probably * later on - in the meantime just store everything. */ -static void _tnl_Materialfv( GLenum face, GLenum pname, +static void GLAPIENTRY _tnl_Materialfv( GLenum face, GLenum pname, const GLfloat *params ) { GET_CURRENT_CONTEXT( ctx ); @@ -846,29 +850,29 @@ do { \ } while (0) -static void _tnl_EdgeFlag( GLboolean b ) +static void GLAPIENTRY _tnl_EdgeFlag( GLboolean b ) { IDX_ATTR( _TNL_ATTRIB_EDGEFLAG, (GLfloat)b ); } -static void _tnl_EdgeFlagv( const GLboolean *v ) +static void GLAPIENTRY _tnl_EdgeFlagv( const GLboolean *v ) { IDX_ATTR( _TNL_ATTRIB_EDGEFLAG, (GLfloat)v[0] ); } -static void _tnl_Indexf( GLfloat f ) +static void GLAPIENTRY _tnl_Indexf( GLfloat f ) { IDX_ATTR( _TNL_ATTRIB_INDEX, f ); } -static void _tnl_Indexfv( const GLfloat *v ) +static void GLAPIENTRY _tnl_Indexfv( const GLfloat *v ) { IDX_ATTR( _TNL_ATTRIB_INDEX, v[0] ); } /* Eval */ -static void _tnl_EvalCoord1f( GLfloat u ) +static void GLAPIENTRY _tnl_EvalCoord1f( GLfloat u ) { GET_CURRENT_CONTEXT( ctx ); TNLcontext *tnl = TNL_CONTEXT(ctx); @@ -896,7 +900,7 @@ static void _tnl_EvalCoord1f( GLfloat u ) tnl->vtx.vertex_size * sizeof(GLfloat)); } -static void _tnl_EvalCoord2f( GLfloat u, GLfloat v ) +static void GLAPIENTRY _tnl_EvalCoord2f( GLfloat u, GLfloat v ) { GET_CURRENT_CONTEXT( ctx ); TNLcontext *tnl = TNL_CONTEXT(ctx); @@ -927,17 +931,17 @@ static void _tnl_EvalCoord2f( GLfloat u, GLfloat v ) tnl->vtx.vertex_size * sizeof(GLfloat)); } -static void _tnl_EvalCoord1fv( const GLfloat *u ) +static void GLAPIENTRY _tnl_EvalCoord1fv( const GLfloat *u ) { _tnl_EvalCoord1f( u[0] ); } -static void _tnl_EvalCoord2fv( const GLfloat *u ) +static void GLAPIENTRY _tnl_EvalCoord2fv( const GLfloat *u ) { _tnl_EvalCoord2f( u[0], u[1] ); } -static void _tnl_EvalPoint1( GLint i ) +static void GLAPIENTRY _tnl_EvalPoint1( GLint i ) { GET_CURRENT_CONTEXT( ctx ); GLfloat du = ((ctx->Eval.MapGrid1u2 - ctx->Eval.MapGrid1u1) / @@ -948,7 +952,7 @@ static void _tnl_EvalPoint1( GLint i ) } -static void _tnl_EvalPoint2( GLint i, GLint j ) +static void GLAPIENTRY _tnl_EvalPoint2( GLint i, GLint j ) { GET_CURRENT_CONTEXT( ctx ); GLfloat du = ((ctx->Eval.MapGrid2u2 - ctx->Eval.MapGrid2u1) / @@ -965,7 +969,7 @@ static void _tnl_EvalPoint2( GLint i, GLint j ) /* Build a list of primitives on the fly. Keep * ctx->Driver.CurrentExecPrimitive uptodate as well. */ -static void _tnl_Begin( GLenum mode ) +static void GLAPIENTRY _tnl_Begin( GLenum mode ) { GET_CURRENT_CONTEXT( ctx ); @@ -999,7 +1003,7 @@ static void _tnl_Begin( GLenum mode ) } -static void _tnl_End( void ) +static void GLAPIENTRY _tnl_End( void ) { GET_CURRENT_CONTEXT( ctx );