diff options
author | Kendall Bennett <[email protected]> | 2003-10-21 22:22:17 +0000 |
---|---|---|
committer | Kendall Bennett <[email protected]> | 2003-10-21 22:22:17 +0000 |
commit | c40d1dd62dd9bcbb97128e37a75d991a8d3b2d8c (patch) | |
tree | 88f9ef7be42df7a7afee101baf18aff063ede9f8 /src/mesa/tnl | |
parent | b1ca87a565033a767042120288b2c45723cf79cc (diff) |
Added GLAPIENTRY decorations for all first level OpenGL API function entry
points so that the calling conventions will work correctly with the assembler
stubs with the Open Watcom compiler.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_array_api.c | 6 | ||||
-rw-r--r-- | src/mesa/tnl/t_array_api.h | 6 | ||||
-rw-r--r-- | src/mesa/tnl/t_eval_api.c | 4 | ||||
-rw-r--r-- | src/mesa/tnl/t_eval_api.h | 4 | ||||
-rw-r--r-- | src/mesa/tnl/t_imm_api.c | 112 | ||||
-rw-r--r-- | src/mesa/tnl/t_imm_api.h | 8 |
6 files changed, 70 insertions, 70 deletions
diff --git a/src/mesa/tnl/t_array_api.c b/src/mesa/tnl/t_array_api.c index 229371fc0a9..85fada8c287 100644 --- a/src/mesa/tnl/t_array_api.c +++ b/src/mesa/tnl/t_array_api.c @@ -117,7 +117,7 @@ static void _tnl_draw_range_elements( GLcontext *ctx, GLenum mode, /** * Called via the GL API dispatcher. */ -void +void GLAPIENTRY _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count) { GET_CURRENT_CONTEXT(ctx); @@ -255,7 +255,7 @@ _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count) /** * Called via the GL API dispatcher. */ -void +void GLAPIENTRY _tnl_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) @@ -329,7 +329,7 @@ _tnl_DrawRangeElements(GLenum mode, /** * Called via the GL API dispatcher. */ -void +void GLAPIENTRY _tnl_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) { diff --git a/src/mesa/tnl/t_array_api.h b/src/mesa/tnl/t_array_api.h index c26112bef5c..61d1f696b00 100644 --- a/src/mesa/tnl/t_array_api.h +++ b/src/mesa/tnl/t_array_api.h @@ -30,12 +30,12 @@ #include "t_context.h" -extern void _tnl_DrawArrays(GLenum mode, GLint first, GLsizei count); +extern void GLAPIENTRY _tnl_DrawArrays(GLenum mode, GLint first, GLsizei count); -extern void _tnl_DrawElements(GLenum mode, GLsizei count, GLenum type, +extern void GLAPIENTRY _tnl_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); -extern void _tnl_DrawRangeElements(GLenum mode, GLuint start, +extern void GLAPIENTRY _tnl_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); diff --git a/src/mesa/tnl/t_eval_api.c b/src/mesa/tnl/t_eval_api.c index 294f1b742cf..5e68d7c891c 100644 --- a/src/mesa/tnl/t_eval_api.c +++ b/src/mesa/tnl/t_eval_api.c @@ -51,7 +51,7 @@ * map(1,2)_vertex is disabled, and to purge those vertices from * the vb. */ -void +void GLAPIENTRY _tnl_exec_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) { GET_CURRENT_CONTEXT(ctx); @@ -139,7 +139,7 @@ _tnl_exec_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) -void +void GLAPIENTRY _tnl_exec_EvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/tnl/t_eval_api.h b/src/mesa/tnl/t_eval_api.h index 0ac6c0b147b..a24b121b811 100644 --- a/src/mesa/tnl/t_eval_api.h +++ b/src/mesa/tnl/t_eval_api.h @@ -33,9 +33,9 @@ /* Use _mesa_save_EvalMesh{1,2} to save these to display lists. */ -extern void _tnl_exec_EvalMesh1( GLenum mode, GLint i1, GLint i2 ); +extern void GLAPIENTRY _tnl_exec_EvalMesh1( GLenum mode, GLint i1, GLint i2 ); -extern void _tnl_exec_EvalMesh2( GLenum mode, GLint i1, GLint i2, +extern void GLAPIENTRY _tnl_exec_EvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); void _tnl_eval_init( GLcontext *ctx ); diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index c0dcb1863ce..b4e67d8f025 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -99,7 +99,7 @@ void _tnl_flush_vertices( GLcontext *ctx, GLuint flags ) } -void +void GLAPIENTRY _tnl_save_Begin( GLenum mode ) { GET_CURRENT_CONTEXT(ctx); @@ -177,7 +177,7 @@ _tnl_save_Begin( GLenum mode ) } -void +void GLAPIENTRY _tnl_Begin( GLenum mode ) { GET_CURRENT_CONTEXT(ctx); @@ -382,7 +382,7 @@ _tnl_end_ctx( GLcontext *ctx ) _tnl_flush_immediate( ctx, IM ); } -void +void GLAPIENTRY _tnl_End(void) { GET_CURRENT_CONTEXT(ctx); @@ -427,13 +427,13 @@ _tnl_End(void) IM->Flag[count] |= VERT_BIT_COLOR0; \ } -static void +static void GLAPIENTRY _tnl_Color3f( GLfloat red, GLfloat green, GLfloat blue ) { COLOR( red, green, blue, 1.0 ); } -static void +static void GLAPIENTRY _tnl_Color3ub( GLubyte red, GLubyte green, GLubyte blue ) { COLOR(UBYTE_TO_FLOAT(red), @@ -442,13 +442,13 @@ _tnl_Color3ub( GLubyte red, GLubyte green, GLubyte blue ) 1.0); } -static void +static void GLAPIENTRY _tnl_Color4f( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ) { COLOR( red, green, blue, alpha ); } -static void +static void GLAPIENTRY _tnl_Color4ub( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ) { COLOR(UBYTE_TO_FLOAT(red), @@ -457,13 +457,13 @@ _tnl_Color4ub( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ) UBYTE_TO_FLOAT(alpha)); } -static void +static void GLAPIENTRY _tnl_Color3fv( const GLfloat *v ) { COLOR( v[0], v[1], v[2], 1.0 ); } -static void +static void GLAPIENTRY _tnl_Color3ubv( const GLubyte *v ) { COLOR(UBYTE_TO_FLOAT(v[0]), @@ -472,13 +472,13 @@ _tnl_Color3ubv( const GLubyte *v ) 1.0 ); } -static void +static void GLAPIENTRY _tnl_Color4fv( const GLfloat *v ) { COLOR( v[0], v[1], v[2], v[3] ); } -static void +static void GLAPIENTRY _tnl_Color4ubv( const GLubyte *v) { COLOR(UBYTE_TO_FLOAT(v[0]), @@ -502,13 +502,13 @@ _tnl_Color4ubv( const GLubyte *v) IM->Flag[count] |= VERT_BIT_COLOR1; \ } -static void +static void GLAPIENTRY _tnl_SecondaryColor3fEXT( GLfloat red, GLfloat green, GLfloat blue ) { SECONDARY_COLOR( red, green, blue ); } -static void +static void GLAPIENTRY _tnl_SecondaryColor3ubEXT( GLubyte red, GLubyte green, GLubyte blue ) { SECONDARY_COLOR(UBYTE_TO_FLOAT(red), @@ -516,13 +516,13 @@ _tnl_SecondaryColor3ubEXT( GLubyte red, GLubyte green, GLubyte blue ) UBYTE_TO_FLOAT(blue)); } -static void +static void GLAPIENTRY _tnl_SecondaryColor3fvEXT( const GLfloat *v ) { SECONDARY_COLOR( v[0], v[1], v[2] ); } -static void +static void GLAPIENTRY _tnl_SecondaryColor3ubvEXT( const GLubyte *v ) { SECONDARY_COLOR(UBYTE_TO_FLOAT(v[0]), @@ -531,7 +531,7 @@ _tnl_SecondaryColor3ubvEXT( const GLubyte *v ) } -static void +static void GLAPIENTRY _tnl_EdgeFlag( GLboolean flag ) { GLuint count; @@ -542,7 +542,7 @@ _tnl_EdgeFlag( GLboolean flag ) } -static void +static void GLAPIENTRY _tnl_EdgeFlagv( const GLboolean *flag ) { GLuint count; @@ -553,7 +553,7 @@ _tnl_EdgeFlagv( const GLboolean *flag ) } -static void +static void GLAPIENTRY _tnl_FogCoordfEXT( GLfloat f ) { GET_IMMEDIATE; @@ -563,7 +563,7 @@ _tnl_FogCoordfEXT( GLfloat f ) IM->Flag[count] |= VERT_BIT_FOG; } -static void +static void GLAPIENTRY _tnl_FogCoordfvEXT( const GLfloat *v ) { GET_IMMEDIATE; @@ -574,7 +574,7 @@ _tnl_FogCoordfvEXT( const GLfloat *v ) } -static void +static void GLAPIENTRY _tnl_Indexi( GLint c ) { GLuint count; @@ -585,7 +585,7 @@ _tnl_Indexi( GLint c ) } -static void +static void GLAPIENTRY _tnl_Indexiv( const GLint *c ) { GLuint count; @@ -624,14 +624,14 @@ _tnl_Indexiv( const GLint *c ) #define NORMALF NORMAL #endif -static void +static void GLAPIENTRY _tnl_Normal3f( GLfloat nx, GLfloat ny, GLfloat nz ) { NORMALF(nx, ny, nz); } -static void +static void GLAPIENTRY _tnl_Normal3fv( const GLfloat *v ) { NORMALF( v[0], v[1], v[2] ); @@ -703,51 +703,51 @@ _tnl_Normal3fv( const GLfloat *v ) #define TEXCOORD2F TEXCOORD2 #endif -static void +static void GLAPIENTRY _tnl_TexCoord1f( GLfloat s ) { TEXCOORD1(s); } -static void +static void GLAPIENTRY _tnl_TexCoord2f( GLfloat s, GLfloat t ) { TEXCOORD2F(s, t); } -static void +static void GLAPIENTRY _tnl_TexCoord3f( GLfloat s, GLfloat t, GLfloat r ) { TEXCOORD3(s, t, r); } -static void +static void GLAPIENTRY _tnl_TexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q ) { TEXCOORD4(s, t, r, q) } -static void +static void GLAPIENTRY _tnl_TexCoord1fv( const GLfloat *v ) { TEXCOORD1(v[0]); } -static void +static void GLAPIENTRY _tnl_TexCoord2fv( const GLfloat *v ) { TEXCOORD2F(v[0], v[1]); } -static void +static void GLAPIENTRY _tnl_TexCoord3fv( const GLfloat *v ) { TEXCOORD3(v[0], v[1], v[2]); } -static void +static void GLAPIENTRY _tnl_TexCoord4fv( const GLfloat *v ) { TEXCOORD4(v[0], v[1], v[2], v[3]); @@ -845,41 +845,41 @@ _tnl_TexCoord4fv( const GLfloat *v ) -static void +static void GLAPIENTRY _tnl_Vertex2f( GLfloat x, GLfloat y ) { GET_IMMEDIATE; VERTEX2F( IM, x, y ); } -static void +static void GLAPIENTRY _tnl_Vertex3f( GLfloat x, GLfloat y, GLfloat z ) { GET_IMMEDIATE; VERTEX3F( IM, x, y, z ); } -static void +static void GLAPIENTRY _tnl_Vertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { GET_IMMEDIATE; VERTEX4F( IM, x, y, z, w ); } -static void +static void GLAPIENTRY _tnl_Vertex2fv( const GLfloat *v ) { GET_IMMEDIATE; VERTEX2F( IM, v[0], v[1] ); } -static void +static void GLAPIENTRY _tnl_Vertex3fv( const GLfloat *v ) { GET_IMMEDIATE; VERTEX3F( IM, v[0], v[1], v[2] ); } -static void +static void GLAPIENTRY _tnl_Vertex4fv( const GLfloat *v ) { GET_IMMEDIATE; @@ -978,49 +978,49 @@ _tnl_Vertex4fv( const GLfloat *v ) #define MULTI_TEXCOORD2F MULTI_TEXCOORD2 #endif -static void +static void GLAPIENTRY _tnl_MultiTexCoord1fARB(GLenum target, GLfloat s) { MULTI_TEXCOORD1( target, s ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord1fvARB(GLenum target, const GLfloat *v) { MULTI_TEXCOORD1( target, v[0] ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t) { MULTI_TEXCOORD2F( target, s, t ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord2fvARB(GLenum target, const GLfloat *v) { MULTI_TEXCOORD2F( target, v[0], v[1] ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r) { MULTI_TEXCOORD3( target, s, t, r ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord3fvARB(GLenum target, const GLfloat *v) { MULTI_TEXCOORD3( target, v[0], v[1], v[2] ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) { MULTI_TEXCOORD4( target, s, t, r, q ); } -static void +static void GLAPIENTRY _tnl_MultiTexCoord4fvARB(GLenum target, const GLfloat *v) { MULTI_TEXCOORD4( target, v[0], v[1], v[2], v[3] ); @@ -1082,28 +1082,28 @@ _tnl_MultiTexCoord4fvARB(GLenum target, const GLfloat *v) _tnl_flush_immediate( NULL, IM ); \ } -static void +static void GLAPIENTRY _tnl_EvalCoord1f( GLfloat u ) { GET_IMMEDIATE; EVALCOORD1( IM, u ); } -static void +static void GLAPIENTRY _tnl_EvalCoord1fv( const GLfloat *u ) { GET_IMMEDIATE; EVALCOORD1( IM, (GLfloat) *u ); } -static void +static void GLAPIENTRY _tnl_EvalCoord2f( GLfloat u, GLfloat v ) { GET_IMMEDIATE; EVALCOORD2( IM, u, v ); } -static void +static void GLAPIENTRY _tnl_EvalCoord2fv( const GLfloat *u ) { GET_IMMEDIATE; @@ -1111,7 +1111,7 @@ _tnl_EvalCoord2fv( const GLfloat *u ) } -static void +static void GLAPIENTRY _tnl_EvalPoint1( GLint i ) { GET_IMMEDIATE; @@ -1119,7 +1119,7 @@ _tnl_EvalPoint1( GLint i ) } -static void +static void GLAPIENTRY _tnl_EvalPoint2( GLint i, GLint j ) { GET_IMMEDIATE; @@ -1143,7 +1143,7 @@ _tnl_EvalPoint2( GLint i, GLint j ) } -static void +static void GLAPIENTRY _tnl_ArrayElement( GLint i ) { GET_IMMEDIATE; @@ -1181,7 +1181,7 @@ _tnl_eval_coord2f( GLcontext *CC, GLfloat u, GLfloat v ) * NV_vertex_program */ -static void +static void GLAPIENTRY _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w ) { if (index < VERT_ATTRIB_MAX) { @@ -1204,7 +1204,7 @@ _tnl_VertexAttrib4fNV( GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w } } -static void +static void GLAPIENTRY _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) { if (index < VERT_ATTRIB_MAX) { @@ -1233,7 +1233,7 @@ _tnl_VertexAttrib4fvNV( GLuint index, const GLfloat *v ) * vertices can now participate in the same immediate as regular ones, * even in most display lists. */ -static void +static void GLAPIENTRY _tnl_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) { GET_CURRENT_CONTEXT(ctx); @@ -1247,7 +1247,7 @@ _tnl_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) } } -static void +static void GLAPIENTRY _tnl_Materialfv( GLenum face, GLenum pname, const GLfloat *params ) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/tnl/t_imm_api.h b/src/mesa/tnl/t_imm_api.h index a6a06235c7d..a61b0d02282 100644 --- a/src/mesa/tnl/t_imm_api.h +++ b/src/mesa/tnl/t_imm_api.h @@ -31,12 +31,12 @@ #include "t_context.h" -extern void _tnl_save_Begin( GLenum mode ); -extern void _tnl_Begin( GLenum mode ); +extern void GLAPIENTRY _tnl_save_Begin( GLenum mode ); +extern void GLAPIENTRY _tnl_Begin( GLenum mode ); -extern void _tnl_Begin( GLenum mode ); +extern void GLAPIENTRY _tnl_Begin( GLenum mode ); -extern void _tnl_End(void); +extern void GLAPIENTRY _tnl_End(void); /* TNL-private internal functions for building higher-level operations: |