Changeset 2965 for trunk/src


Ignore:
Timestamp:
Mar 1, 2000, 11:45:30 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

Location:
trunk/src/opengl/mesa/3dfx
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/3dfx/api2.c

    r2938 r2965  
    1 /* $Id: api2.c,v 1.1 2000-02-29 00:46:11 sandervl Exp $ */
     1/* $Id: api2.c,v 1.2 2000-03-01 22:45:17 jeroen Exp $ */
    22
    33/*
     
    3737#endif
    3838#include "api.h"
     39#include "types.h"
    3940#include "context.h"
    4041#include "varray.h"
     
    4344#include "matrix.h"
    4445#include "teximage.h"
    45 #include "types.h"
    4646#include "vb.h"
    4747#endif
  • trunk/src/opengl/mesa/3dfx/apiext.c

    r2938 r2965  
    1 /* $Id: apiext.c,v 1.1 2000-02-29 00:46:11 sandervl Exp $ */
     1/* $Id: apiext.c,v 1.2 2000-03-01 22:45:17 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
  • trunk/src/opengl/mesa/3dfx/blend.c

    r2938 r2965  
    1 /* $Id: blend.c,v 1.1 2000-02-29 00:46:12 sandervl Exp $ */
     1/* $Id: blend.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */
    22
    33/*
     
    275275 * Common transparency blending mode.
    276276 */
    277 static void blend_transparency( GLcontext *ctx, GLuint n, const GLubyte mask[],
     277static void __cdecl blend_transparency( GLcontext *ctx, GLuint n, const GLubyte mask[],
    278278                                GLubyte rgba[][4], CONST GLubyte dest[][4] )
    279279{
     
    320320 * Add src and dest.
    321321 */
    322 static void blend_add( GLcontext *ctx, GLuint n, const GLubyte mask[],
     322static void __cdecl blend_add( GLcontext *ctx, GLuint n, const GLubyte mask[],
    323323                       GLubyte rgba[][4], CONST GLubyte dest[][4] )
    324324{
     
    348348 * Blend min function  (for GL_EXT_blend_minmax)
    349349 */
    350 static void blend_min( GLcontext *ctx, GLuint n, const GLubyte mask[],
     350static void __cdecl blend_min( GLcontext *ctx, GLuint n, const GLubyte mask[],
    351351                       GLubyte rgba[][4], CONST GLubyte dest[][4] )
    352352{
     
    370370 * Blend max function  (for GL_EXT_blend_minmax)
    371371 */
    372 static void blend_max( GLcontext *ctx, GLuint n, const GLubyte mask[],
     372static void __cdecl blend_max( GLcontext *ctx, GLuint n, const GLubyte mask[],
    373373                       GLubyte rgba[][4], CONST GLubyte dest[][4] )
    374374{
     
    392392 * Modulate:  result = src * dest
    393393 */
    394 static void blend_modulate( GLcontext *ctx, GLuint n, const GLubyte mask[],
     394static void __cdecl blend_modulate( GLcontext *ctx, GLuint n, const GLubyte mask[],
    395395                            GLubyte rgba[][4], CONST GLubyte dest[][4] )
    396396{
     
    421421 * Input:  dest - the pixels from the dest color buffer
    422422 */
    423 static void blend_general( GLcontext *ctx, GLuint n, const GLubyte mask[],
     423static void __cdecl blend_general( GLcontext *ctx, GLuint n, const GLubyte mask[],
    424424                           GLubyte rgba[][4], CONST GLubyte dest[][4] )
    425425{
  • trunk/src/opengl/mesa/3dfx/copypix.c

    r2938 r2965  
    1 /* $Id: copypix.c,v 1.1 2000-02-29 00:46:13 sandervl Exp $ */
     1/* $Id: copypix.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "copypix.h"
     
    4647#include "span.h"
    4748#include "stencil.h"
    48 #include "types.h"
    4949#include "zoom.h"
    5050#endif
  • trunk/src/opengl/mesa/3dfx/depth.c

    r2938 r2965  
    1 /* $Id: depth.c,v 1.1 2000-02-29 00:46:13 sandervl Exp $ */
     1/* $Id: depth.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */
    22
    33/*
     
    4343#include "GL/xf86glx.h"
    4444#endif
     45#include "types.h"
    4546#include "context.h"
    4647#include "enums.h"
    4748#include "depth.h"
    4849#include "macros.h"
    49 #include "types.h"
    5050#endif
    5151
  • trunk/src/opengl/mesa/3dfx/drawpix.c

    r2938 r2965  
    1 /* $Id: drawpix.c,v 1.1 2000-02-29 00:46:14 sandervl Exp $ */
     1/* $Id: drawpix.c,v 1.2 2000-03-01 22:45:20 jeroen Exp $ */
    22
    33/*
     
    3939#include "GL/xf86glx.h"
    4040#endif
     41#include "types.h"
    4142#include "context.h"
    4243#include "drawpix.h"
     
    4849#include "span.h"
    4950#include "stencil.h"
    50 #include "types.h"
    5151#include "zoom.h"
    5252#endif
  • trunk/src/opengl/mesa/3dfx/enable.c

    r2938 r2965  
    1 /* $Id: enable.c,v 1.1 2000-02-29 00:46:14 sandervl Exp $ */
     1/* $Id: enable.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "enable.h"
     
    4445#include "mmath.h"
    4546#include "simple_list.h"
    46 #include "types.h"
    4747#include "vbfill.h"
    4848#include "xform.h"
     
    6161   if (MESA_VERBOSE & VERBOSE_API)
    6262      fprintf(stderr, "%s %s (newstate is %x)\n",
    63               state ? "glEnable" : "glDisable",
    64               gl_lookup_enum_by_nr(cap),
    65               ctx->NewState);
     63              state ? "glEnable" : "glDisable",
     64              gl_lookup_enum_by_nr(cap),
     65              ctx->NewState);
    6666
    6767   switch (cap) {
  • trunk/src/opengl/mesa/3dfx/eval.c

    r2938 r2965  
    1 /* $Id: eval.c,v 1.1 2000-02-29 00:46:15 sandervl Exp $ */
     1/* $Id: eval.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */
    22
    33/*
     
    4949#include "GL/xf86glx.h"
    5050#endif
     51#include "types.h"
    5152#include "context.h"
    5253#include "eval.h"
    5354#include "macros.h"
    5455#include "mmath.h"
    55 #include "types.h"
    5656#include "vbcull.h"
    5757#include "vbfill.h"
  • trunk/src/opengl/mesa/3dfx/extensions.c

    r2938 r2965  
    1 /* $Id: extensions.c,v 1.1 2000-02-29 00:46:15 sandervl Exp $ */
     1/* $Id: extensions.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */
    22
    33/*
     
    3131#include "GL/xf86glx.h"
    3232#endif
     33#include "types.h"
    3334#include "context.h"
    3435#include "extensions.h"
    3536#include "simple_list.h"
    36 #include "types.h"
    3737
    3838
  • trunk/src/opengl/mesa/3dfx/feedback.c

    r2938 r2965  
    1 /* $Id: feedback.c,v 1.1 2000-02-29 00:46:15 sandervl Exp $ */
     1/* $Id: feedback.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */
    22
    33/*
     
    3838#include "GL/xf86glx.h"
    3939#endif
     40#include "types.h"
    4041#include "context.h"
    4142#include "enums.h"
     
    4344#include "macros.h"
    4445#include "mmath.h"
    45 #include "types.h"
    4646#include "triangle.h"
    4747#endif
     
    4949
    5050
    51 #define FB_3D           0x01
    52 #define FB_4D           0x02
    53 #define FB_INDEX        0x04
    54 #define FB_COLOR        0x08
    55 #define FB_TEXTURE      0X10
     51#define FB_3D           0x01
     52#define FB_4D           0x02
     53#define FB_INDEX        0x04
     54#define FB_COLOR        0x08
     55#define FB_TEXTURE      0X10
    5656
    5757
  • trunk/src/opengl/mesa/3dfx/fog.c

    r2938 r2965  
    1 /* $Id: fog.c,v 1.1 2000-02-29 00:46:16 sandervl Exp $ */
     1/* $Id: fog.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "fog.h"
    4142#include "macros.h"
    4243#include "mmath.h"
    43 #include "types.h"
    4444#include "xform.h"
    4545#endif
     
    5454      case GL_FOG_MODE:
    5555         m = (GLenum) (GLint) *params;
    56         if (m==GL_LINEAR || m==GL_EXP || m==GL_EXP2) {
    57             ctx->Fog.Mode = m;
    58         }
    59         else {
    60             gl_error( ctx, GL_INVALID_ENUM, "glFog" );
     56        if (m==GL_LINEAR || m==GL_EXP || m==GL_EXP2) {
     57            ctx->Fog.Mode = m;
     58        }
     59        else {
     60            gl_error( ctx, GL_INVALID_ENUM, "glFog" );
    6161            return;
    62         }
    63         break;
     62        }
     63        break;
    6464      case GL_FOG_DENSITY:
    65         if (*params<0.0) {
    66             gl_error( ctx, GL_INVALID_VALUE, "glFog" );
     65        if (*params<0.0) {
     66            gl_error( ctx, GL_INVALID_VALUE, "glFog" );
    6767            return;
    6868         }
  • trunk/src/opengl/mesa/3dfx/fxdrv.h

    r2938 r2965  
    5757#include <limits.h>
    5858#include <assert.h>
    59 #else 
     59#else
    6060#include "GL/xf86glx.h"
    6161#endif
     
    6666#endif
    6767
     68#include "types.h"
    6869#include "context.h"
    6970#include "macros.h"
    7071#include "matrix.h"
    7172#include "texture.h"
    72 #include "types.h"
    7373#include "vb.h"
    7474#include "xform.h"
     
    153153  ( ((unsigned int)(c[1]))<<8 )  | \
    154154  (  (unsigned int)(c[2])) )
    155  
     155
    156156#else
    157157#ifdef __i386__
     
    307307  GLfloat sScale, tScale;
    308308  GLint int_sScale, int_tScale; /* x86 floating point trick for
    309                                  * multiplication by powers of 2. 
     309                                 * multiplication by powers of 2.
    310310                                 * Used in fxfasttmp.h
    311311                                 */
     
    325325
    326326
    327 typedef void (*tfxTriViewClipFunc)( struct vertex_buffer *VB, 
     327typedef void (*tfxTriViewClipFunc)( struct vertex_buffer *VB,
    328328                                    GLuint v[],
    329329                                    GLubyte mask );
    330330
    331 typedef void (*tfxTriClipFunc)( struct vertex_buffer *VB, 
     331typedef void (*tfxTriClipFunc)( struct vertex_buffer *VB,
    332332                                GLuint v[],
    333333                                GLuint mask );
    334334
    335335
    336 typedef void (*tfxLineClipFunc)( struct vertex_buffer *VB, 
     336typedef void (*tfxLineClipFunc)( struct vertex_buffer *VB,
    337337                                 GLuint v1, GLuint v2,
    338338                                 GLubyte mask );
     
    370370#define FX_OFFSET             0x1
    371371#define FX_TWOSIDE            0x2
    372 #define FX_FRONT_BACK         0x4 
     372#define FX_FRONT_BACK         0x4
    373373#define FX_FLAT               0x8
    374 #define FX_ANTIALIAS          0x10 
    375 #define FX_FALLBACK           0x20 
     374#define FX_ANTIALIAS          0x10
     375#define FX_FALLBACK           0x20
    376376
    377377
     
    457457  GLuint stw_hint_state;                /* for grHints */
    458458  GLuint is_in_hardware;
    459   GLuint new_state;   
     459  GLuint new_state;
    460460  GLuint using_fast_path, passes, multipass;
    461461
     
    507507  GLint swapInterval;
    508508  GLint maxPendingSwapBuffers;
    509  
     509
    510510  FX_GrContext_t glideContext;
    511511
     
    541541extern void fxDDChooseRenderState( GLcontext *ctx );
    542542
    543 extern void fxRenderClippedLine( struct vertex_buffer *VB, 
     543extern void fxRenderClippedLine( struct vertex_buffer *VB,
    544544                                 GLuint v1, GLuint v2 );
    545545
     
    588588extern void fxDDResizeVB( struct vertex_buffer *VB, GLuint size );
    589589
    590 extern void fxDDCheckMergeAndRender( GLcontext *ctx, 
     590extern void fxDDCheckMergeAndRender( GLcontext *ctx,
    591591                                     struct gl_pipeline_stage *d );
    592592
    593593extern void fxDDMergeAndRender( struct vertex_buffer *VB );
    594594
    595 extern void fxDDCheckPartialRasterSetup( GLcontext *ctx, 
     595extern void fxDDCheckPartialRasterSetup( GLcontext *ctx,
    596596                                         struct gl_pipeline_stage *d );
    597597
     
    606606extern GLboolean fxDDBuildPrecalcPipeline( GLcontext *ctx );
    607607
    608 extern void fxDDOptimizePrecalcPipeline( GLcontext *ctx, 
     608extern void fxDDOptimizePrecalcPipeline( GLcontext *ctx,
    609609                                         struct gl_pipeline *pipe );
    610610
     
    631631                              GLint x, GLint y, GLsizei w, GLsizei h );
    632632extern void fxDDFogfv( GLcontext *ctx, GLenum pname, const GLfloat *params );
    633 extern GLboolean fxDDColorMask(GLcontext *ctx, 
    634                                GLboolean r, GLboolean g, 
     633extern GLboolean fxDDColorMask(GLcontext *ctx,
     634                               GLboolean r, GLboolean g,
    635635                               GLboolean b, GLboolean a );
    636636
    637637extern GLuint fxDDDepthTestSpanGeneric(GLcontext *ctx,
    638                                        GLuint n, GLint x, GLint y, 
     638                                       GLuint n, GLint x, GLint y,
    639639                                       const GLdepth z[],
    640640                                       GLubyte mask[]);
    641641
    642642extern void fxDDDepthTestPixelsGeneric(GLcontext* ctx,
    643                                        GLuint n, 
     643                                       GLuint n,
    644644                                       const GLint x[], const GLint y[],
    645645                                       const GLdepth z[], GLubyte mask[]);
     
    668668
    669669extern void fxSetScissorValues(GLcontext *ctx);
    670 extern void fxTMMoveInTM_NoLock(fxMesaContext fxMesa, 
    671                                 struct gl_texture_object *tObj, 
     670extern void fxTMMoveInTM_NoLock(fxMesaContext fxMesa,
     671                                struct gl_texture_object *tObj,
    672672                                GLint where);
    673673extern void fxSetupTexture_NoLock(GLcontext *ctx);
  • trunk/src/opengl/mesa/3dfx/get.c

    r2938 r2965  
    1 /* $Id: get.c,v 1.1 2000-02-29 00:46:16 sandervl Exp $ */
     1/* $Id: get.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */
    22
    33/*
     
    3838#include "GL/xf86glx.h"
    3939#endif
     40#include "types.h"
    4041#include "context.h"
    4142#include "enable.h"
     
    4546#include "macros.h"
    4647#include "mmath.h"
    47 #include "types.h"
    4848#include "vb.h"
    4949#endif
     
    5151
    5252
    53 #define FLOAT_TO_BOOL(X)        ( (X)==0.0F ? GL_FALSE : GL_TRUE )
    54 #define INT_TO_BOOL(I)          ( (I)==0 ? GL_FALSE : GL_TRUE )
    55 #define ENUM_TO_BOOL(E)         ( (E)==0 ? GL_FALSE : GL_TRUE )
     53#define FLOAT_TO_BOOL(X)        ( (X)==0.0F ? GL_FALSE : GL_TRUE )
     54#define INT_TO_BOOL(I)          ( (I)==0 ? GL_FALSE : GL_TRUE )
     55#define ENUM_TO_BOOL(E)         ( (E)==0 ? GL_FALSE : GL_TRUE )
    5656
    5757#ifdef SPECIALCAST
  • trunk/src/opengl/mesa/3dfx/image.c

    r2938 r2965  
    1 /* $Id: image.c,v 1.1 2000-02-29 00:46:18 sandervl Exp $ */
     1/* $Id: image.c,v 1.2 2000-03-01 22:45:23 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "image.h"
     
    4243#include "mmath.h"
    4344#include "pixel.h"
    44 #include "types.h"
    4545#endif
    4646
     
    5757      b = (GLuint) p[i];
    5858      a = ((b & 0x01) << 7) |
    59           ((b & 0x02) << 5) |
    60           ((b & 0x04) << 3) |
    61           ((b & 0x08) << 1) |
    62           ((b & 0x10) >> 1) |
    63           ((b & 0x20) >> 3) |
    64           ((b & 0x40) >> 5) |
    65           ((b & 0x80) >> 7);
     59          ((b & 0x02) << 5) |
     60          ((b & 0x04) << 3) |
     61          ((b & 0x08) << 1) |
     62          ((b & 0x10) >> 1) |
     63          ((b & 0x20) >> 3) |
     64          ((b & 0x40) >> 5) |
     65          ((b & 0x80) >> 7);
    6666      p[i] = (GLubyte) a;
    6767   }
  • trunk/src/opengl/mesa/3dfx/light.c

    r2938 r2965  
    1 /* $Id: light.c,v 1.1 2000-02-29 00:46:19 sandervl Exp $ */
     1/* $Id: light.c,v 1.2 2000-03-01 22:45:23 jeroen Exp $ */
    22
    33/*
     
    4242#include "GL/xf86glx.h"
    4343#endif
     44#include "types.h"
    4445#include "context.h"
    4546#include "enums.h"
     
    4950#include "mmath.h"
    5051#include "simple_list.h"
    51 #include "types.h"
    5252#include "vb.h"
    5353#include "xform.h"
  • trunk/src/opengl/mesa/3dfx/lines.c

    r2938 r2965  
    1 /* $Id: lines.c,v 1.1 2000-02-29 00:46:19 sandervl Exp $ */
     1/* $Id: lines.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "depth.h"
     
    4546#include "pb.h"
    4647#include "texstate.h"
    47 #include "types.h"
    4848#include "vb.h"
    4949#endif
  • trunk/src/opengl/mesa/3dfx/matrix.c

    r2938 r2965  
    1 /* $Id: matrix.c,v 1.1 2000-02-29 00:46:21 sandervl Exp $ */
     1/* $Id: matrix.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */
    22
    33/*
     
    5252#include "GL/xf86glx.h"
    5353#endif
     54#include "types.h"
    5455#include "context.h"
    5556#include "enums.h"
     
    5758#include "matrix.h"
    5859#include "mmath.h"
    59 #include "types.h"
    6060#endif
    6161
  • trunk/src/opengl/mesa/3dfx/pixel.c

    r2938 r2965  
    1 /* $Id: pixel.c,v 1.1 2000-02-29 00:46:22 sandervl Exp $ */
     1/* $Id: pixel.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */
    22
    33/*
     
    4444#include "GL/xf86glx.h"
    4545#endif
     46#include "types.h"
    4647#include "context.h"
    4748#include "macros.h"
    4849#include "pixel.h"
    49 #include "types.h"
    5050#endif
    5151
  • trunk/src/opengl/mesa/3dfx/points.c

    r2938 r2965  
    1 /* $Id: points.c,v 1.1 2000-02-29 00:46:23 sandervl Exp $ */
     1/* $Id: points.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */
    22
    33/*
     
    3636#include "GL/xf86glx.h"
    3737#endif
     38#include "types.h"
    3839#include "context.h"
    3940#include "feedback.h"
     
    4445#include "span.h"
    4546#include "texstate.h"
    46 #include "types.h"
    4747#include "vb.h"
    4848#include "mmath.h"
  • trunk/src/opengl/mesa/3dfx/polygon.c

    r2938 r2965  
    1 /* $Id: polygon.c,v 1.1 2000-02-29 00:46:23 sandervl Exp $ */
     1/* $Id: polygon.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */
    22
    33/*
     
    3939#include "GL/xf86glx.h"
    4040#endif
     41#include "types.h"
    4142#include "context.h"
    4243#include "image.h"
     
    4445#include "macros.h"
    4546#include "polygon.h"
    46 #include "types.h"
    4747#endif
    4848
  • trunk/src/opengl/mesa/3dfx/rect.c

    r2938 r2965  
    1 /* $Id: rect.c,v 1.1 2000-02-29 00:46:24 sandervl Exp $ */
     1/* $Id: rect.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "macros.h"
  • trunk/src/opengl/mesa/3dfx/scissor.c

    r2938 r2965  
    1 /* $Id: scissor.c,v 1.1 2000-02-29 00:46:24 sandervl Exp $ */
     1/* $Id: scissor.c,v 1.2 2000-03-01 22:45:26 jeroen Exp $ */
    22
    33/*
     
    3838#include "GL/xf86glx.h"
    3939#endif
     40#include "types.h"
    4041#include "context.h"
    4142#include "macros.h"
    4243#include "scissor.h"
    43 #include "types.h"
    4444#endif
    4545
  • trunk/src/opengl/mesa/3dfx/stencil.c

    r2938 r2965  
    1 /* $Id: stencil.c,v 1.1 2000-02-29 00:46:25 sandervl Exp $ */
     1/* $Id: stencil.c,v 1.2 2000-03-01 22:45:26 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "macros.h"
    4142#include "pb.h"
    4243#include "stencil.h"
    43 #include "types.h"
    4444#include "enable.h"
    4545#endif
  • trunk/src/opengl/mesa/3dfx/teximage.c

    r2938 r2965  
    1 /* $Id: teximage.c,v 1.1 2000-02-29 00:46:25 sandervl Exp $ */
     1/* $Id: teximage.c,v 1.2 2000-03-01 22:45:27 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "image.h"
     
    4445#include "teximage.h"
    4546#include "texstate.h"
    46 #include "types.h"
    4747#endif
    4848
  • trunk/src/opengl/mesa/3dfx/texobj.c

    r2938 r2965  
    1 /* $Id: texobj.c,v 1.1 2000-02-29 00:46:25 sandervl Exp $ */
     1/* $Id: texobj.c,v 1.2 2000-03-01 22:45:27 jeroen Exp $ */
    22
    33/*
     
    3939#include "GL/xf86glx.h"
    4040#endif
     41#include "types.h"
    4142#include "context.h"
    4243#include "enums.h"
     
    4647#include "texstate.h"
    4748#include "texobj.h"
    48 #include "types.h"
    4949#endif
    5050
  • trunk/src/opengl/mesa/3dfx/texstate.c

    r2938 r2965  
    1 /* $Id: texstate.c,v 1.1 2000-02-29 00:46:26 sandervl Exp $ */
     1/* $Id: texstate.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */
    22
    33/*
     
    3636#include "GL/xf86glx.h"
    3737#endif
     38#include "types.h"
    3839#include "context.h"
    3940#include "enums.h"
     
    4445#include "texstate.h"
    4546#include "texture.h"
    46 #include "types.h"
    4747#include "xform.h"
    4848#endif
  • trunk/src/opengl/mesa/3dfx/texture.c

    r2938 r2965  
    1 /* $Id: texture.c,v 1.1 2000-02-29 00:46:26 sandervl Exp $ */
     1/* $Id: texture.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */
    22
    33/*
     
    3636#include "GL/xf86glx.h"
    3737#endif
     38#include "types.h"
    3839#include "context.h"
    3940#include "macros.h"
     
    4142#include "pb.h"
    4243#include "texture.h"
    43 #include "types.h"
    4444#include "xform.h"
    4545#endif
  • trunk/src/opengl/mesa/3dfx/triangle.c

    r2938 r2965  
    1 /* $Id: triangle.c,v 1.1 2000-02-29 00:46:26 sandervl Exp $ */
     1/* $Id: triangle.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */
    22
    33/*
     
    4545#include "GL/xf86glx.h"
    4646#endif
     47#include "types.h"
    4748#include "context.h"
    4849#include "depth.h"
     
    5354#include "texstate.h"
    5455#include "triangle.h"
    55 #include "types.h"
    5656#include "vb.h"
    5757#endif
     
    5959
    6060GLboolean gl_cull_triangle( GLcontext *ctx,
    61                             GLuint v0, GLuint v1, GLuint v2, GLuint pv )
     61                            GLuint v0, GLuint v1, GLuint v2, GLuint pv )
    6262{
    6363   struct vertex_buffer *VB = ctx->VB;
  • trunk/src/opengl/mesa/3dfx/varray.c

    r2938 r2965  
    1 /* $Id: varray.c,v 1.1 2000-02-29 00:46:27 sandervl Exp $ */
     1/* $Id: varray.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */
    22
    33/*
     
    3535#include "GL/xf86glx.h"
    3636#endif
     37#include "types.h"
    3738#include "context.h"
    3839#include "api.h"
     
    4748#include "texstate.h"
    4849#include "translate.h"
    49 #include "types.h"
    5050#include "varray.h"
    5151#include "vb.h"
  • trunk/src/opengl/mesa/3dfx/vbcull.c

    r2938 r2965  
    1 /* $Id: vbcull.c,v 1.1 2000-02-29 00:46:27 sandervl Exp $ */
     1/* $Id: vbcull.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */
    22
    33/*
     
    3838#include "GL/xf86glx.h"
    3939#endif
     40#include "types.h"
    4041#include "context.h"
    4142#include "macros.h"
    42 #include "types.h"
    4343#include "vb.h"
    4444#include "vbcull.h"
  • trunk/src/opengl/mesa/3dfx/vbfill.c

    r2938 r2965  
    1 /* $Id: vbfill.c,v 1.1 2000-02-29 00:46:28 sandervl Exp $ */
     1/* $Id: vbfill.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "enums.h"
     
    4344#include "matrix.h"
    4445#include "mmath.h"
    45 #include "types.h"
    4646#include "varray.h"
    4747#include "vb.h"
  • trunk/src/opengl/mesa/3dfx/vbxform.c

    r2938 r2965  
    1 /* $Id: vbxform.c,v 1.1 2000-02-29 00:46:29 sandervl Exp $ */
     1/* $Id: vbxform.c,v 1.2 2000-03-01 22:45:30 jeroen Exp $ */
    22
    33/*
     
    3737#include "GL/xf86glx.h"
    3838#endif
     39#include "types.h"
    3940#include "context.h"
    4041#include "cva.h"
     
    5152#include "shade.h"
    5253#include "texture.h"
    53 #include "types.h"
    5454#include "varray.h"
    5555#include "vb.h"
  • trunk/src/opengl/mesa/3dfx/vertices.c

    r2938 r2965  
    1 /* $Id: vertices.c,v 1.1 2000-02-29 00:46:30 sandervl Exp $ */
     1/* $Id: vertices.c,v 1.2 2000-03-01 22:45:30 jeroen Exp $ */
    22
    33/*
     
    6868
    6969
    70 static void transform_v16(GLfloat *f,
    71                           const GLfloat *m,
    72                           const GLfloat *obj,
    73                           GLuint obj_stride,
    74                           GLuint count )
     70static void __cdecl transform_v16(GLfloat *f,
     71                          const GLfloat *m,
     72                          const GLfloat *obj,
     73                          GLuint obj_stride,
     74                          GLuint count )
    7575{
    7676   GLuint i;
     
    9090 */
    9191static void project_verts(GLfloat *first,
    92                           GLfloat *last,
    93                           const GLfloat *m,
    94                           GLuint stride )
     92                          GLfloat *last,
     93                          const GLfloat *m,
     94                          GLuint stride )
    9595{
    9696   const GLfloat sx = m[0], sy = m[5], sz = m[10];
     
    109109
    110110static void project_clipped_verts(GLfloat *first,
    111                                   GLfloat *last,
    112                                   const GLfloat *m,
    113                                   GLuint stride,
    114                                   const GLubyte *clipmask )
     111                                  GLfloat *last,
     112                                  const GLfloat *m,
     113                                  GLuint stride,
     114                                  const GLubyte *clipmask )
    115115{
    116116   const GLfloat sx = m[0], sy = m[5], sz = m[10];
     
    121121   {
    122122      if (!*clipmask) {
    123         const GLfloat oow = 1.0F / f[3];
    124         f[0] = sx * f[0] * oow + tx;
    125         f[1] = sy * f[1] * oow + ty;
    126         f[2] = sz * f[2] * oow + tz;
    127         f[3] = oow;
     123        const GLfloat oow = 1.0F / f[3];
     124        f[0] = sx * f[0] * oow + tx;
     125        f[1] = sy * f[1] * oow + ty;
     126        f[2] = sz * f[2] * oow + tz;
     127        f[3] = oow;
    128128      }
    129129   }
     
    133133
    134134
    135 static void cliptest_v16( GLfloat *first,
    136                           GLfloat *last,
    137                           GLubyte *p_clipOr,
    138                           GLubyte *p_clipAnd,
    139                           GLubyte *clipmask )
    140 {       
     135static void __cdecl cliptest_v16( GLfloat *first,
     136                          GLfloat *last,
     137                          GLubyte *p_clipOr,
     138                          GLubyte *p_clipAnd,
     139                          GLubyte *clipmask )
     140{
    141141   GLubyte clipAnd = (GLubyte) ~0;
    142142   GLubyte clipOr = 0;
Note: See TracChangeset for help on using the changeset viewer.