summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/windows/gdi/wmesadef.h
blob: 8b2f4912d6c42749dedaa07fdfb2e38f95503d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

#include "context.h"

typedef struct _dibSection{
    HDC		hDC;
    HANDLE	hFileMap;
    BOOL	fFlushed;
    LPVOID	base;
}WMDIBSECTION, *PWMDIBSECTION;

typedef struct wmesa_context{
    GLcontext           *gl_ctx;	/* The core GL/Mesa context */
    GLvisual            *gl_visual;	/* Describes the buffers */
    GLframebuffer       *gl_buffer;	/* Depth, stencil, accum, etc buffers*/
    HDC                 hDC;
    COLORREF		clearColorRef;
    HPEN                clearPen;
    HBRUSH              clearBrush;
    GLuint		width;
    GLuint		height;
    GLuint		ScanWidth;
    GLboolean		rgb_flag;
    GLboolean		db_flag;
    GLboolean		alpha_flag;
    WMDIBSECTION	dib;
    BITMAPINFO          bmi;
    HBITMAP             hbmDIB;
    HBITMAP             hOldBitmap;
    PBYTE               pbPixels;
    BYTE		cColorBits;
    int			pixelformat;
}  *PWMC;