Ignore:
Timestamp:
Mar 1, 2000, 7:50:02 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

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 sandervl Exp $ */
     1/* $Id: apiext.c,v 1.2 2000-03-01 18:49:23 jeroen Exp $ */
    22
    33/*
     
    3737#endif
    3838#include "api.h"
     39#include "types.h"
    3940#include "context.h"
    4041#include "cva.h"
    4142#include "image.h"
    42 #include "types.h"
    4343#include "varray.h"
    4444#endif
     
    427427 */
    428428
    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);                      \
    468468}
    469469
     
    480480 */
    481481
    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;                                                           \
    489489   }
    490490
     
    883883void GLAPIENTRY
    884884glHistogram(CTX_ARG GLenum target, GLsizei width, GLenum internalFormat,
    885              GLboolean sink )
     885             GLboolean sink )
    886886{
    887887   GET_CONTEXT;
     
    907907void GLAPIENTRY
    908908glGetHistogram(CTX_ARG GLenum target, GLboolean reset, GLenum format,
    909                 GLenum type, GLvoid *values )
     909                GLenum type, GLvoid *values )
    910910{
    911911   GET_CONTEXT;
     
    10071007void GLAPIENTRY
    10081008glConvolutionFilter1D(CTX_ARG GLenum target, GLenum internalFormat, GLsizei width,
    1009                        GLenum format, GLenum type, const GLvoid *image )
     1009                       GLenum format, GLenum type, const GLvoid *image )
    10101010{
    10111011   GET_CONTEXT;
     
    10231023void GLAPIENTRY
    10241024glConvolutionFilter2D(CTX_ARG GLenum target, GLenum internalFormat, GLsizei width,
    1025                        GLsizei height, GLenum format, GLenum type,
    1026                        const GLvoid *image )
     1025                       GLsizei height, GLenum format, GLenum type,
     1026                       const GLvoid *image )
    10271027{
    10281028   GET_CONTEXT;
     
    10891089void GLAPIENTRY
    10901090glCopyConvolutionFilter1D(CTX_ARG GLenum target, GLenum internalFormat,
    1091                            GLint x, GLint y, GLsizei width )
     1091                           GLint x, GLint y, GLsizei width )
    10921092{
    10931093   GET_CONTEXT;
     
    11041104void GLAPIENTRY
    11051105glCopyConvolutionFilter2D(CTX_ARG GLenum target, GLenum internalFormat,
    1106                            GLint x, GLint y, GLsizei width, GLsizei height)
     1106                           GLint x, GLint y, GLsizei width, GLsizei height)
    11071107{
    11081108   GET_CONTEXT;
     
    11201120void GLAPIENTRY
    11211121glGetConvolutionFilter(CTX_ARG GLenum target, GLenum format,
    1122                         GLenum type, GLvoid *image )
     1122                        GLenum type, GLvoid *image )
    11231123{
    11241124   GET_CONTEXT;
     
    11581158void GLAPIENTRY
    11591159glSeparableFilter2D(CTX_ARG GLenum target, GLenum internalFormat,
    1160                      GLsizei width, GLsizei height, GLenum format,
    1161                      GLenum type, const GLvoid *row, const GLvoid *column )
     1160                     GLsizei width, GLsizei height, GLenum format,
     1161                     GLenum type, const GLvoid *row, const GLvoid *column )
    11621162{
    11631163   GET_CONTEXT;
     
    11781178void GLAPIENTRY
    11791179glGetSeparableFilter(CTX_ARG GLenum target, GLenum format, GLenum type,
    1180                       GLvoid *row, GLvoid *column, GLvoid *span )
     1180                      GLvoid *row, GLvoid *column, GLvoid *span )
    11811181{
    11821182   GET_CONTEXT;
     
    11941194void GLAPIENTRY
    11951195glCopyColorSubTable(CTX_ARG GLenum target, GLsizei start, GLint x, GLint y,
    1196                      GLsizei width )
     1196                     GLsizei width )
    11971197{
    11981198   GET_CONTEXT;
     
    12091209void GLAPIENTRY
    12101210glCopyColorTable(CTX_ARG GLenum target, GLenum internalFormat,
    1211                   GLint x, GLint y, GLsizei width )
     1211                  GLint x, GLint y, GLsizei width )
    12121212{
    12131213   GET_CONTEXT;
Note: See TracChangeset for help on using the changeset viewer.