1 /*===========================================================================*/
3 /* Mesa-3.0 DirectX 6 Driver */
7 /* http://www.altsoftware.com/ */
9 /* Copyright (c) 1999-1998 alt.software inc. All Rights Reserved */
10 /*===========================================================================*/
13 /*===========================================================================*/
15 /*===========================================================================*/
23 #include "D3DShared.h"
25 #include "NULLProcs.h"
26 /*===========================================================================*/
28 /*===========================================================================*/
29 #define FLIP(h,y) (h-y)
30 /*===========================================================================*/
32 /*===========================================================================*/
33 /*===========================================================================*/
35 /*===========================================================================*/
42 typedef GLbitfield (*ClearPROC)( GLcontext *ctx, GLbitfield mask, GLboolean all, GLint x, GLint y, GLint width, GLint height );
43 typedef void (*WSpanRGBPROC)( const GLcontext* ctx, GLuint n, GLint x, GLint y, const GLubyte rgb[][3], const GLubyte mask[] );
44 typedef void (*WSpanRGBAPROC)( const GLcontext* ctx, GLuint n, GLint x, GLint y, const GLubyte rgba[][4], const GLubyte mask[] );
45 typedef void (*WSpanRGBAMonoPROC)( const GLcontext* ctx, GLuint n, GLint x, GLint y, const GLubyte mask[] );
46 typedef void (*WPixelsRGBAPROC)( const GLcontext* ctx, GLuint n, const GLint x[], const GLint y[], const GLubyte rgba[][4], const GLubyte mask[] );
47 typedef void (*WPixelsRGBAMonoPROC)( const GLcontext* ctx, GLuint n, const GLint x[], const GLint y[], const GLubyte mask[] );
48 typedef void (*RSpanRGBAPROC)( const GLcontext* ctx, GLuint n, GLint x, GLint y, GLubyte rgba[][4] );
49 typedef void (*RPixelsRGBAPROC)( const GLcontext* ctx, GLuint n, const GLint x[], const GLint y[], GLubyte rgba[][4], const GLubyte mask[] );
51 typedef struct D3D_mesa_context
53 PMESAD3DSHARED pShared;
55 GLcontext *gl_ctx; /* The core GL/Mesa context */
56 GLvisual *gl_visual; /* Describes the buffers */
57 GLframebuffer *gl_buffer; /* Depth, stencil, accum, etc buffers */
62 UCHAR rClear, /* Current clear colors. */
66 rCurrent, /* Current rendering colors. */
71 struct D3D_mesa_context *next;
73 } D3DMESACONTEXT, *PD3DMESACONTEXT;
74 /*===========================================================================*/
75 /* Extern function prototypes. */
76 /*===========================================================================*/
77 extern void gl_Viewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height );
78 /*===========================================================================*/
79 /* Global variables. */
80 /*===========================================================================*/
81 extern D3DTLVERTEX D3DTLVertices[(VB_MAX*6)];