Changeset 2962 for trunk/src/opengl/mesa/apiext.c
- Timestamp:
- Mar 1, 2000, 7:50:02 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/apiext.c
r2938 r2962 1 /* $Id: apiext.c,v 1. 1 2000-02-29 00:49:58 sandervlExp $ */1 /* $Id: apiext.c,v 1.2 2000-03-01 18:49:23 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #endif 38 38 #include "api.h" 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "cva.h" 41 42 #include "image.h" 42 #include "types.h"43 43 #include "varray.h" 44 44 #endif … … 427 427 */ 428 428 429 #define TEXCOORD1(s) 430 { 431 GLuint count; 432 GLfloat *tc; 433 count = IM->Count; 434 IM->Flag[count] |= IM->TF1[texSet]; 435 tc = IM->TexCoordPtr[texSet][count]; 436 ASSIGN_4V(tc, s,0,0,1); 437 } 438 439 440 #define TEXCOORD2(s,t) 441 { 442 GLuint count; 443 GLfloat *tc; 444 count = IM->Count; 445 IM->Flag[count] |= IM->TF2[texSet]; 446 tc = IM->TexCoordPtr[texSet][count]; 447 ASSIGN_4V(tc, s,t,0,1); 448 } 449 450 #define TEXCOORD3(s,t,u) 451 { 452 GLuint count; 453 GLfloat *tc; 454 count = IM->Count; 455 IM->Flag[count] |= IM->TF3[texSet]; 456 tc = IM->TexCoordPtr[texSet][count]; 457 ASSIGN_4V(tc, s,t,u,1); 458 } 459 460 #define TEXCOORD4(s,t,u,v) 461 { 462 GLuint count; 463 GLfloat *tc; 464 count = IM->Count; 465 IM->Flag[count] |= IM->TF4[texSet]; 466 tc = IM->TexCoordPtr[texSet][count]; 467 ASSIGN_4V(tc, s,t,u,v); 429 #define TEXCOORD1(s) \ 430 { \ 431 GLuint count; \ 432 GLfloat *tc; \ 433 count = IM->Count; \ 434 IM->Flag[count] |= IM->TF1[texSet]; \ 435 tc = IM->TexCoordPtr[texSet][count]; \ 436 ASSIGN_4V(tc, s,0,0,1); \ 437 } 438 439 440 #define TEXCOORD2(s,t) \ 441 { \ 442 GLuint count; \ 443 GLfloat *tc; \ 444 count = IM->Count; \ 445 IM->Flag[count] |= IM->TF2[texSet]; \ 446 tc = IM->TexCoordPtr[texSet][count]; \ 447 ASSIGN_4V(tc, s,t,0,1); \ 448 } 449 450 #define TEXCOORD3(s,t,u) \ 451 { \ 452 GLuint count; \ 453 GLfloat *tc; \ 454 count = IM->Count; \ 455 IM->Flag[count] |= IM->TF3[texSet]; \ 456 tc = IM->TexCoordPtr[texSet][count]; \ 457 ASSIGN_4V(tc, s,t,u,1); \ 458 } 459 460 #define TEXCOORD4(s,t,u,v) \ 461 { \ 462 GLuint count; \ 463 GLfloat *tc; \ 464 count = IM->Count; \ 465 IM->Flag[count] |= IM->TF4[texSet]; \ 466 tc = IM->TexCoordPtr[texSet][count]; \ 467 ASSIGN_4V(tc, s,t,u,v); \ 468 468 } 469 469 … … 480 480 */ 481 481 482 #define CHECK_ARB 483 if (target >= GL_TEXTURE0_ARB && target <= GL_TEXTURE1_ARB) { 484 texSet = target - GL_TEXTURE0_ARB; 485 } 486 else { 487 gl_error(IM->backref, GL_INVALID_ENUM, "glMultiTexCoord(target)"); 488 return; 482 #define CHECK_ARB \ 483 if (target >= GL_TEXTURE0_ARB && target <= GL_TEXTURE1_ARB) { \ 484 texSet = target - GL_TEXTURE0_ARB; \ 485 } \ 486 else { \ 487 gl_error(IM->backref, GL_INVALID_ENUM, "glMultiTexCoord(target)"); \ 488 return; \ 489 489 } 490 490 … … 883 883 void GLAPIENTRY 884 884 glHistogram(CTX_ARG GLenum target, GLsizei width, GLenum internalFormat, 885 885 GLboolean sink ) 886 886 { 887 887 GET_CONTEXT; … … 907 907 void GLAPIENTRY 908 908 glGetHistogram(CTX_ARG GLenum target, GLboolean reset, GLenum format, 909 909 GLenum type, GLvoid *values ) 910 910 { 911 911 GET_CONTEXT; … … 1007 1007 void GLAPIENTRY 1008 1008 glConvolutionFilter1D(CTX_ARG GLenum target, GLenum internalFormat, GLsizei width, 1009 1009 GLenum format, GLenum type, const GLvoid *image ) 1010 1010 { 1011 1011 GET_CONTEXT; … … 1023 1023 void GLAPIENTRY 1024 1024 glConvolutionFilter2D(CTX_ARG GLenum target, GLenum internalFormat, GLsizei width, 1025 1026 1025 GLsizei height, GLenum format, GLenum type, 1026 const GLvoid *image ) 1027 1027 { 1028 1028 GET_CONTEXT; … … 1089 1089 void GLAPIENTRY 1090 1090 glCopyConvolutionFilter1D(CTX_ARG GLenum target, GLenum internalFormat, 1091 1091 GLint x, GLint y, GLsizei width ) 1092 1092 { 1093 1093 GET_CONTEXT; … … 1104 1104 void GLAPIENTRY 1105 1105 glCopyConvolutionFilter2D(CTX_ARG GLenum target, GLenum internalFormat, 1106 1106 GLint x, GLint y, GLsizei width, GLsizei height) 1107 1107 { 1108 1108 GET_CONTEXT; … … 1120 1120 void GLAPIENTRY 1121 1121 glGetConvolutionFilter(CTX_ARG GLenum target, GLenum format, 1122 1122 GLenum type, GLvoid *image ) 1123 1123 { 1124 1124 GET_CONTEXT; … … 1158 1158 void GLAPIENTRY 1159 1159 glSeparableFilter2D(CTX_ARG GLenum target, GLenum internalFormat, 1160 1161 1160 GLsizei width, GLsizei height, GLenum format, 1161 GLenum type, const GLvoid *row, const GLvoid *column ) 1162 1162 { 1163 1163 GET_CONTEXT; … … 1178 1178 void GLAPIENTRY 1179 1179 glGetSeparableFilter(CTX_ARG GLenum target, GLenum format, GLenum type, 1180 1180 GLvoid *row, GLvoid *column, GLvoid *span ) 1181 1181 { 1182 1182 GET_CONTEXT; … … 1194 1194 void GLAPIENTRY 1195 1195 glCopyColorSubTable(CTX_ARG GLenum target, GLsizei start, GLint x, GLint y, 1196 1196 GLsizei width ) 1197 1197 { 1198 1198 GET_CONTEXT; … … 1209 1209 void GLAPIENTRY 1210 1210 glCopyColorTable(CTX_ARG GLenum target, GLenum internalFormat, 1211 1211 GLint x, GLint y, GLsizei width ) 1212 1212 { 1213 1213 GET_CONTEXT;
Note:
See TracChangeset
for help on using the changeset viewer.