_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 );
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 );
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 );
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 );
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)
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 );
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)
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 );
/* 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 );
} 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] );
}
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);
-static void _save_End( void )
+static void GLAPIENTRY _save_End( void )
{
GET_CURRENT_CONTEXT( ctx );
TNLcontext *tnl = TNL_CONTEXT(ctx);
/* 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);
}
-static void _save_DrawRangeElements(GLenum mode,
+static void GLAPIENTRY _save_DrawRangeElements(GLenum mode,
GLuint start, GLuint end,
GLsizei count, GLenum type,
const GLvoid *indices)
_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" );
* 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 );
}
-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;
}
-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);
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)
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;
_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 );
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 );
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 );
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 );
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)
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 );
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)
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 );
/* 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 );
} 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);
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);
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) /
}
-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) /
/* 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 );
}
-static void _tnl_End( void )
+static void GLAPIENTRY _tnl_End( void )
{
GET_CURRENT_CONTEXT( ctx );