Changeset 2962 for trunk/src/opengl/mesa/blend.c
- Timestamp:
- Mar 1, 2000, 7:50:02 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/blend.c
r2938 r2962 1 /* $Id: blend.c,v 1. 1 2000-02-29 00:49:59 sandervlExp $ */1 /* $Id: blend.c,v 1.2 2000-03-01 18:49:23 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 { … … 481 481 break; 482 482 case GL_SRC_ALPHA_SATURATE: 483 #ifdef __WIN32OS2__ 484 if(As < 255 - Ad) { 485 #else 483 486 if (As < 1.0F - (GLfloat) Ad * ascale) { 487 #endif 484 488 sR = sG = sB = (GLfloat) As * ascale; 485 489 }
Note:
See TracChangeset
for help on using the changeset viewer.