- Timestamp:
- Mar 1, 2000, 11:45:30 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: api2.c,v 1.2 2000-03-01 22:45:17 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 "varray.h" … … 43 44 #include "matrix.h" 44 45 #include "teximage.h" 45 #include "types.h"46 46 #include "vb.h" 47 47 #endif -
trunk/src/opengl/mesa/3dfx/apiext.c
r2938 r2965 1 /* $Id: apiext.c,v 1. 1 2000-02-29 00:46:11 sandervlExp $ */1 /* $Id: apiext.c,v 1.2 2000-03-01 22:45:17 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 -
trunk/src/opengl/mesa/3dfx/blend.c
r2938 r2965 1 /* $Id: blend.c,v 1. 1 2000-02-29 00:46:12 sandervlExp $ */1 /* $Id: blend.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */ 2 2 3 3 /* … … 275 275 * Common transparency blending mode. 276 276 */ 277 static void blend_transparency( GLcontext *ctx, GLuint n, const GLubyte mask[],277 static void __cdecl blend_transparency( GLcontext *ctx, GLuint n, const GLubyte mask[], 278 278 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 279 279 { … … 320 320 * Add src and dest. 321 321 */ 322 static void blend_add( GLcontext *ctx, GLuint n, const GLubyte mask[],322 static void __cdecl blend_add( GLcontext *ctx, GLuint n, const GLubyte mask[], 323 323 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 324 324 { … … 348 348 * Blend min function (for GL_EXT_blend_minmax) 349 349 */ 350 static void blend_min( GLcontext *ctx, GLuint n, const GLubyte mask[],350 static void __cdecl blend_min( GLcontext *ctx, GLuint n, const GLubyte mask[], 351 351 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 352 352 { … … 370 370 * Blend max function (for GL_EXT_blend_minmax) 371 371 */ 372 static void blend_max( GLcontext *ctx, GLuint n, const GLubyte mask[],372 static void __cdecl blend_max( GLcontext *ctx, GLuint n, const GLubyte mask[], 373 373 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 374 374 { … … 392 392 * Modulate: result = src * dest 393 393 */ 394 static void blend_modulate( GLcontext *ctx, GLuint n, const GLubyte mask[],394 static void __cdecl blend_modulate( GLcontext *ctx, GLuint n, const GLubyte mask[], 395 395 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 396 396 { … … 421 421 * Input: dest - the pixels from the dest color buffer 422 422 */ 423 static void blend_general( GLcontext *ctx, GLuint n, const GLubyte mask[],423 static void __cdecl blend_general( GLcontext *ctx, GLuint n, const GLubyte mask[], 424 424 GLubyte rgba[][4], CONST GLubyte dest[][4] ) 425 425 { -
trunk/src/opengl/mesa/3dfx/copypix.c
r2938 r2965 1 /* $Id: copypix.c,v 1. 1 2000-02-29 00:46:13 sandervlExp $ */1 /* $Id: copypix.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "copypix.h" … … 46 47 #include "span.h" 47 48 #include "stencil.h" 48 #include "types.h"49 49 #include "zoom.h" 50 50 #endif -
trunk/src/opengl/mesa/3dfx/depth.c
r2938 r2965 1 /* $Id: depth.c,v 1. 1 2000-02-29 00:46:13 sandervlExp $ */1 /* $Id: depth.c,v 1.2 2000-03-01 22:45:18 jeroen Exp $ */ 2 2 3 3 /* … … 43 43 #include "GL/xf86glx.h" 44 44 #endif 45 #include "types.h" 45 46 #include "context.h" 46 47 #include "enums.h" 47 48 #include "depth.h" 48 49 #include "macros.h" 49 #include "types.h"50 50 #endif 51 51 -
trunk/src/opengl/mesa/3dfx/drawpix.c
r2938 r2965 1 /* $Id: drawpix.c,v 1. 1 2000-02-29 00:46:14 sandervlExp $ */1 /* $Id: drawpix.c,v 1.2 2000-03-01 22:45:20 jeroen Exp $ */ 2 2 3 3 /* … … 39 39 #include "GL/xf86glx.h" 40 40 #endif 41 #include "types.h" 41 42 #include "context.h" 42 43 #include "drawpix.h" … … 48 49 #include "span.h" 49 50 #include "stencil.h" 50 #include "types.h"51 51 #include "zoom.h" 52 52 #endif -
trunk/src/opengl/mesa/3dfx/enable.c
r2938 r2965 1 /* $Id: enable.c,v 1. 1 2000-02-29 00:46:14 sandervlExp $ */1 /* $Id: enable.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "enable.h" … … 44 45 #include "mmath.h" 45 46 #include "simple_list.h" 46 #include "types.h"47 47 #include "vbfill.h" 48 48 #include "xform.h" … … 61 61 if (MESA_VERBOSE & VERBOSE_API) 62 62 fprintf(stderr, "%s %s (newstate is %x)\n", 63 64 65 63 state ? "glEnable" : "glDisable", 64 gl_lookup_enum_by_nr(cap), 65 ctx->NewState); 66 66 67 67 switch (cap) { -
trunk/src/opengl/mesa/3dfx/eval.c
r2938 r2965 1 /* $Id: eval.c,v 1. 1 2000-02-29 00:46:15 sandervlExp $ */1 /* $Id: eval.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */ 2 2 3 3 /* … … 49 49 #include "GL/xf86glx.h" 50 50 #endif 51 #include "types.h" 51 52 #include "context.h" 52 53 #include "eval.h" 53 54 #include "macros.h" 54 55 #include "mmath.h" 55 #include "types.h"56 56 #include "vbcull.h" 57 57 #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 sandervlExp $ */1 /* $Id: extensions.c,v 1.2 2000-03-01 22:45:21 jeroen Exp $ */ 2 2 3 3 /* … … 31 31 #include "GL/xf86glx.h" 32 32 #endif 33 #include "types.h" 33 34 #include "context.h" 34 35 #include "extensions.h" 35 36 #include "simple_list.h" 36 #include "types.h"37 37 38 38 -
trunk/src/opengl/mesa/3dfx/feedback.c
r2938 r2965 1 /* $Id: feedback.c,v 1. 1 2000-02-29 00:46:15 sandervlExp $ */1 /* $Id: feedback.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */ 2 2 3 3 /* … … 38 38 #include "GL/xf86glx.h" 39 39 #endif 40 #include "types.h" 40 41 #include "context.h" 41 42 #include "enums.h" … … 43 44 #include "macros.h" 44 45 #include "mmath.h" 45 #include "types.h"46 46 #include "triangle.h" 47 47 #endif … … 49 49 50 50 51 #define FB_3D 52 #define FB_4D 53 #define FB_INDEX 54 #define FB_COLOR 55 #define FB_TEXTURE 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 56 56 57 57 -
trunk/src/opengl/mesa/3dfx/fog.c
r2938 r2965 1 /* $Id: fog.c,v 1. 1 2000-02-29 00:46:16 sandervlExp $ */1 /* $Id: fog.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "fog.h" 41 42 #include "macros.h" 42 43 #include "mmath.h" 43 #include "types.h"44 44 #include "xform.h" 45 45 #endif … … 54 54 case GL_FOG_MODE: 55 55 m = (GLenum) (GLint) *params; 56 57 58 59 60 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" ); 61 61 return; 62 63 62 } 63 break; 64 64 case GL_FOG_DENSITY: 65 66 65 if (*params<0.0) { 66 gl_error( ctx, GL_INVALID_VALUE, "glFog" ); 67 67 return; 68 68 } -
trunk/src/opengl/mesa/3dfx/fxdrv.h
r2938 r2965 57 57 #include <limits.h> 58 58 #include <assert.h> 59 #else 59 #else 60 60 #include "GL/xf86glx.h" 61 61 #endif … … 66 66 #endif 67 67 68 #include "types.h" 68 69 #include "context.h" 69 70 #include "macros.h" 70 71 #include "matrix.h" 71 72 #include "texture.h" 72 #include "types.h"73 73 #include "vb.h" 74 74 #include "xform.h" … … 153 153 ( ((unsigned int)(c[1]))<<8 ) | \ 154 154 ( (unsigned int)(c[2])) ) 155 155 156 156 #else 157 157 #ifdef __i386__ … … 307 307 GLfloat sScale, tScale; 308 308 GLint int_sScale, int_tScale; /* x86 floating point trick for 309 * multiplication by powers of 2. 309 * multiplication by powers of 2. 310 310 * Used in fxfasttmp.h 311 311 */ … … 325 325 326 326 327 typedef void (*tfxTriViewClipFunc)( struct vertex_buffer *VB, 327 typedef void (*tfxTriViewClipFunc)( struct vertex_buffer *VB, 328 328 GLuint v[], 329 329 GLubyte mask ); 330 330 331 typedef void (*tfxTriClipFunc)( struct vertex_buffer *VB, 331 typedef void (*tfxTriClipFunc)( struct vertex_buffer *VB, 332 332 GLuint v[], 333 333 GLuint mask ); 334 334 335 335 336 typedef void (*tfxLineClipFunc)( struct vertex_buffer *VB, 336 typedef void (*tfxLineClipFunc)( struct vertex_buffer *VB, 337 337 GLuint v1, GLuint v2, 338 338 GLubyte mask ); … … 370 370 #define FX_OFFSET 0x1 371 371 #define FX_TWOSIDE 0x2 372 #define FX_FRONT_BACK 0x4 372 #define FX_FRONT_BACK 0x4 373 373 #define FX_FLAT 0x8 374 #define FX_ANTIALIAS 0x10 375 #define FX_FALLBACK 0x20 374 #define FX_ANTIALIAS 0x10 375 #define FX_FALLBACK 0x20 376 376 377 377 … … 457 457 GLuint stw_hint_state; /* for grHints */ 458 458 GLuint is_in_hardware; 459 GLuint new_state; 459 GLuint new_state; 460 460 GLuint using_fast_path, passes, multipass; 461 461 … … 507 507 GLint swapInterval; 508 508 GLint maxPendingSwapBuffers; 509 509 510 510 FX_GrContext_t glideContext; 511 511 … … 541 541 extern void fxDDChooseRenderState( GLcontext *ctx ); 542 542 543 extern void fxRenderClippedLine( struct vertex_buffer *VB, 543 extern void fxRenderClippedLine( struct vertex_buffer *VB, 544 544 GLuint v1, GLuint v2 ); 545 545 … … 588 588 extern void fxDDResizeVB( struct vertex_buffer *VB, GLuint size ); 589 589 590 extern void fxDDCheckMergeAndRender( GLcontext *ctx, 590 extern void fxDDCheckMergeAndRender( GLcontext *ctx, 591 591 struct gl_pipeline_stage *d ); 592 592 593 593 extern void fxDDMergeAndRender( struct vertex_buffer *VB ); 594 594 595 extern void fxDDCheckPartialRasterSetup( GLcontext *ctx, 595 extern void fxDDCheckPartialRasterSetup( GLcontext *ctx, 596 596 struct gl_pipeline_stage *d ); 597 597 … … 606 606 extern GLboolean fxDDBuildPrecalcPipeline( GLcontext *ctx ); 607 607 608 extern void fxDDOptimizePrecalcPipeline( GLcontext *ctx, 608 extern void fxDDOptimizePrecalcPipeline( GLcontext *ctx, 609 609 struct gl_pipeline *pipe ); 610 610 … … 631 631 GLint x, GLint y, GLsizei w, GLsizei h ); 632 632 extern void fxDDFogfv( GLcontext *ctx, GLenum pname, const GLfloat *params ); 633 extern GLboolean fxDDColorMask(GLcontext *ctx, 634 GLboolean r, GLboolean g, 633 extern GLboolean fxDDColorMask(GLcontext *ctx, 634 GLboolean r, GLboolean g, 635 635 GLboolean b, GLboolean a ); 636 636 637 637 extern GLuint fxDDDepthTestSpanGeneric(GLcontext *ctx, 638 GLuint n, GLint x, GLint y, 638 GLuint n, GLint x, GLint y, 639 639 const GLdepth z[], 640 640 GLubyte mask[]); 641 641 642 642 extern void fxDDDepthTestPixelsGeneric(GLcontext* ctx, 643 GLuint n, 643 GLuint n, 644 644 const GLint x[], const GLint y[], 645 645 const GLdepth z[], GLubyte mask[]); … … 668 668 669 669 extern void fxSetScissorValues(GLcontext *ctx); 670 extern void fxTMMoveInTM_NoLock(fxMesaContext fxMesa, 671 struct gl_texture_object *tObj, 670 extern void fxTMMoveInTM_NoLock(fxMesaContext fxMesa, 671 struct gl_texture_object *tObj, 672 672 GLint where); 673 673 extern 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 sandervlExp $ */1 /* $Id: get.c,v 1.2 2000-03-01 22:45:22 jeroen Exp $ */ 2 2 3 3 /* … … 38 38 #include "GL/xf86glx.h" 39 39 #endif 40 #include "types.h" 40 41 #include "context.h" 41 42 #include "enable.h" … … 45 46 #include "macros.h" 46 47 #include "mmath.h" 47 #include "types.h"48 48 #include "vb.h" 49 49 #endif … … 51 51 52 52 53 #define FLOAT_TO_BOOL(X) 54 #define INT_TO_BOOL(I) 55 #define ENUM_TO_BOOL(E) 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 ) 56 56 57 57 #ifdef SPECIALCAST -
trunk/src/opengl/mesa/3dfx/image.c
r2938 r2965 1 /* $Id: image.c,v 1. 1 2000-02-29 00:46:18 sandervlExp $ */1 /* $Id: image.c,v 1.2 2000-03-01 22:45:23 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "image.h" … … 42 43 #include "mmath.h" 43 44 #include "pixel.h" 44 #include "types.h"45 45 #endif 46 46 … … 57 57 b = (GLuint) p[i]; 58 58 a = ((b & 0x01) << 7) | 59 60 61 62 63 64 65 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); 66 66 p[i] = (GLubyte) a; 67 67 } -
trunk/src/opengl/mesa/3dfx/light.c
r2938 r2965 1 /* $Id: light.c,v 1. 1 2000-02-29 00:46:19 sandervlExp $ */1 /* $Id: light.c,v 1.2 2000-03-01 22:45:23 jeroen Exp $ */ 2 2 3 3 /* … … 42 42 #include "GL/xf86glx.h" 43 43 #endif 44 #include "types.h" 44 45 #include "context.h" 45 46 #include "enums.h" … … 49 50 #include "mmath.h" 50 51 #include "simple_list.h" 51 #include "types.h"52 52 #include "vb.h" 53 53 #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 sandervlExp $ */1 /* $Id: lines.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "depth.h" … … 45 46 #include "pb.h" 46 47 #include "texstate.h" 47 #include "types.h"48 48 #include "vb.h" 49 49 #endif -
trunk/src/opengl/mesa/3dfx/matrix.c
r2938 r2965 1 /* $Id: matrix.c,v 1. 1 2000-02-29 00:46:21 sandervlExp $ */1 /* $Id: matrix.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */ 2 2 3 3 /* … … 52 52 #include "GL/xf86glx.h" 53 53 #endif 54 #include "types.h" 54 55 #include "context.h" 55 56 #include "enums.h" … … 57 58 #include "matrix.h" 58 59 #include "mmath.h" 59 #include "types.h"60 60 #endif 61 61 -
trunk/src/opengl/mesa/3dfx/pixel.c
r2938 r2965 1 /* $Id: pixel.c,v 1. 1 2000-02-29 00:46:22 sandervlExp $ */1 /* $Id: pixel.c,v 1.2 2000-03-01 22:45:24 jeroen Exp $ */ 2 2 3 3 /* … … 44 44 #include "GL/xf86glx.h" 45 45 #endif 46 #include "types.h" 46 47 #include "context.h" 47 48 #include "macros.h" 48 49 #include "pixel.h" 49 #include "types.h"50 50 #endif 51 51 -
trunk/src/opengl/mesa/3dfx/points.c
r2938 r2965 1 /* $Id: points.c,v 1. 1 2000-02-29 00:46:23 sandervlExp $ */1 /* $Id: points.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */ 2 2 3 3 /* … … 36 36 #include "GL/xf86glx.h" 37 37 #endif 38 #include "types.h" 38 39 #include "context.h" 39 40 #include "feedback.h" … … 44 45 #include "span.h" 45 46 #include "texstate.h" 46 #include "types.h"47 47 #include "vb.h" 48 48 #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 sandervlExp $ */1 /* $Id: polygon.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */ 2 2 3 3 /* … … 39 39 #include "GL/xf86glx.h" 40 40 #endif 41 #include "types.h" 41 42 #include "context.h" 42 43 #include "image.h" … … 44 45 #include "macros.h" 45 46 #include "polygon.h" 46 #include "types.h"47 47 #endif 48 48 -
trunk/src/opengl/mesa/3dfx/rect.c
r2938 r2965 1 /* $Id: rect.c,v 1. 1 2000-02-29 00:46:24 sandervlExp $ */1 /* $Id: rect.c,v 1.2 2000-03-01 22:45:25 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #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 sandervlExp $ */1 /* $Id: scissor.c,v 1.2 2000-03-01 22:45:26 jeroen Exp $ */ 2 2 3 3 /* … … 38 38 #include "GL/xf86glx.h" 39 39 #endif 40 #include "types.h" 40 41 #include "context.h" 41 42 #include "macros.h" 42 43 #include "scissor.h" 43 #include "types.h"44 44 #endif 45 45 -
trunk/src/opengl/mesa/3dfx/stencil.c
r2938 r2965 1 /* $Id: stencil.c,v 1. 1 2000-02-29 00:46:25 sandervlExp $ */1 /* $Id: stencil.c,v 1.2 2000-03-01 22:45:26 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "macros.h" 41 42 #include "pb.h" 42 43 #include "stencil.h" 43 #include "types.h"44 44 #include "enable.h" 45 45 #endif -
trunk/src/opengl/mesa/3dfx/teximage.c
r2938 r2965 1 /* $Id: teximage.c,v 1. 1 2000-02-29 00:46:25 sandervlExp $ */1 /* $Id: teximage.c,v 1.2 2000-03-01 22:45:27 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "image.h" … … 44 45 #include "teximage.h" 45 46 #include "texstate.h" 46 #include "types.h"47 47 #endif 48 48 -
trunk/src/opengl/mesa/3dfx/texobj.c
r2938 r2965 1 /* $Id: texobj.c,v 1. 1 2000-02-29 00:46:25 sandervlExp $ */1 /* $Id: texobj.c,v 1.2 2000-03-01 22:45:27 jeroen Exp $ */ 2 2 3 3 /* … … 39 39 #include "GL/xf86glx.h" 40 40 #endif 41 #include "types.h" 41 42 #include "context.h" 42 43 #include "enums.h" … … 46 47 #include "texstate.h" 47 48 #include "texobj.h" 48 #include "types.h"49 49 #endif 50 50 -
trunk/src/opengl/mesa/3dfx/texstate.c
r2938 r2965 1 /* $Id: texstate.c,v 1. 1 2000-02-29 00:46:26 sandervlExp $ */1 /* $Id: texstate.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */ 2 2 3 3 /* … … 36 36 #include "GL/xf86glx.h" 37 37 #endif 38 #include "types.h" 38 39 #include "context.h" 39 40 #include "enums.h" … … 44 45 #include "texstate.h" 45 46 #include "texture.h" 46 #include "types.h"47 47 #include "xform.h" 48 48 #endif -
trunk/src/opengl/mesa/3dfx/texture.c
r2938 r2965 1 /* $Id: texture.c,v 1. 1 2000-02-29 00:46:26 sandervlExp $ */1 /* $Id: texture.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */ 2 2 3 3 /* … … 36 36 #include "GL/xf86glx.h" 37 37 #endif 38 #include "types.h" 38 39 #include "context.h" 39 40 #include "macros.h" … … 41 42 #include "pb.h" 42 43 #include "texture.h" 43 #include "types.h"44 44 #include "xform.h" 45 45 #endif -
trunk/src/opengl/mesa/3dfx/triangle.c
r2938 r2965 1 /* $Id: triangle.c,v 1. 1 2000-02-29 00:46:26 sandervlExp $ */1 /* $Id: triangle.c,v 1.2 2000-03-01 22:45:28 jeroen Exp $ */ 2 2 3 3 /* … … 45 45 #include "GL/xf86glx.h" 46 46 #endif 47 #include "types.h" 47 48 #include "context.h" 48 49 #include "depth.h" … … 53 54 #include "texstate.h" 54 55 #include "triangle.h" 55 #include "types.h"56 56 #include "vb.h" 57 57 #endif … … 59 59 60 60 GLboolean gl_cull_triangle( GLcontext *ctx, 61 61 GLuint v0, GLuint v1, GLuint v2, GLuint pv ) 62 62 { 63 63 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 sandervlExp $ */1 /* $Id: varray.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */ 2 2 3 3 /* … … 35 35 #include "GL/xf86glx.h" 36 36 #endif 37 #include "types.h" 37 38 #include "context.h" 38 39 #include "api.h" … … 47 48 #include "texstate.h" 48 49 #include "translate.h" 49 #include "types.h"50 50 #include "varray.h" 51 51 #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 sandervlExp $ */1 /* $Id: vbcull.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */ 2 2 3 3 /* … … 38 38 #include "GL/xf86glx.h" 39 39 #endif 40 #include "types.h" 40 41 #include "context.h" 41 42 #include "macros.h" 42 #include "types.h"43 43 #include "vb.h" 44 44 #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 sandervlExp $ */1 /* $Id: vbfill.c,v 1.2 2000-03-01 22:45:29 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "enums.h" … … 43 44 #include "matrix.h" 44 45 #include "mmath.h" 45 #include "types.h"46 46 #include "varray.h" 47 47 #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 sandervlExp $ */1 /* $Id: vbxform.c,v 1.2 2000-03-01 22:45:30 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #include "GL/xf86glx.h" 38 38 #endif 39 #include "types.h" 39 40 #include "context.h" 40 41 #include "cva.h" … … 51 52 #include "shade.h" 52 53 #include "texture.h" 53 #include "types.h"54 54 #include "varray.h" 55 55 #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 sandervlExp $ */1 /* $Id: vertices.c,v 1.2 2000-03-01 22:45:30 jeroen Exp $ */ 2 2 3 3 /* … … 68 68 69 69 70 static void transform_v16(GLfloat *f,71 72 73 74 70 static void __cdecl transform_v16(GLfloat *f, 71 const GLfloat *m, 72 const GLfloat *obj, 73 GLuint obj_stride, 74 GLuint count ) 75 75 { 76 76 GLuint i; … … 90 90 */ 91 91 static void project_verts(GLfloat *first, 92 93 94 92 GLfloat *last, 93 const GLfloat *m, 94 GLuint stride ) 95 95 { 96 96 const GLfloat sx = m[0], sy = m[5], sz = m[10]; … … 109 109 110 110 static void project_clipped_verts(GLfloat *first, 111 112 113 114 111 GLfloat *last, 112 const GLfloat *m, 113 GLuint stride, 114 const GLubyte *clipmask ) 115 115 { 116 116 const GLfloat sx = m[0], sy = m[5], sz = m[10]; … … 121 121 { 122 122 if (!*clipmask) { 123 124 125 126 127 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; 128 128 } 129 129 } … … 133 133 134 134 135 static void cliptest_v16( GLfloat *first,136 137 138 139 140 { 135 static void __cdecl cliptest_v16( GLfloat *first, 136 GLfloat *last, 137 GLubyte *p_clipOr, 138 GLubyte *p_clipAnd, 139 GLubyte *clipmask ) 140 { 141 141 GLubyte clipAnd = (GLubyte) ~0; 142 142 GLubyte clipOr = 0;
Note:
See TracChangeset
for help on using the changeset viewer.