home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mesa5.zip / mesa5src.zip / swrast_setup / ss_triangle2.cpp < prev    next >
C/C++ Source or Header  |  2002-12-12  |  697b  |  27 lines

  1.  
  2. #include "glheader.h"
  3. #include "colormac.h"
  4. #include "mtypes.h"
  5.  
  6. #include "tnl/t_context.h"
  7.  
  8. #include "ss_triangle.h"
  9.  
  10.  
  11. extern void triangle_rgba(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 );
  12.  
  13. //extern void _Optlink triangle_rgba_Optlink(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 );
  14.  
  15. void _Optlink quadfunc_rgba( GLcontext *ctx, GLuint v0,
  16.                       GLuint v1, GLuint v2, GLuint v3 )
  17. {
  18.  
  19. //_mesa_debug( ctx, "quadfunc_rgba e0=%i,e1=%i,e2=%i,e3=%i\n",v0,v1,v2,v3);
  20.  
  21.       triangle_rgba( ctx, v0, v1, v3 );
  22.       triangle_rgba( ctx, v1, v2, v3 );
  23. //      triangle_rgba_Optlink( ctx, v0, v1, v3 );
  24. //      triangle_rgba_Optlink( ctx, v1, v2, v3 );
  25. }
  26.  
  27.