summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/windows/gdi/wmesadef.h
blob: 9aa0ab20b799b5d3d39b783cc926ce61dcff78f1 (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*/
    
    HWND		Window;
    HDC                 hDC;
    COLORREF		clearColorRef;
    HPEN                clearPen;
    HBRUSH              clearBrush;
    GLuint		width;
    GLuint		height;
    GLuint		ScanWidth;
    GLboolean		db_flag;
    WMDIBSECTION	dib;
    BITMAPINFO          bmi;
    HBITMAP             hbmDIB;
    HBITMAP             hOldBitmap;
    PBYTE               pbPixels;
    BYTE		cColorBits;
    int			pixelformat;
}  *PWMC;