• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef WMESADEF_H
2 #define WMESADEF_H
3 
4 #include <windows.h>
5 
6 #include "main/context.h"
7 
8 
9 /**
10  * The Windows Mesa rendering context, derived from struct gl_context.
11  */
12 struct wmesa_context {
13     struct gl_context           gl_ctx;	        /* The core GL/Mesa context */
14     HDC                 hDC;
15     COLORREF		clearColorRef;
16     HPEN                clearPen;
17     HBRUSH              clearBrush;
18 };
19 
20 
21 /**
22  * Windows framebuffer, derived from gl_framebuffer
23  */
24 struct wmesa_framebuffer
25 {
26     struct gl_framebuffer Base;
27     HDC                 hDC;
28     int			pixelformat;
29     GLuint		ScanWidth;
30     int			cColorBits;
31     /* back buffer DIB fields */
32     HDC                 dib_hDC;
33     BITMAPINFO          bmi;
34     HBITMAP             hbmDIB;
35     HBITMAP             hOldBitmap;
36     PBYTE               pbPixels;
37     struct wmesa_framebuffer *next;
38 };
39 
40 typedef struct wmesa_framebuffer *WMesaFramebuffer;
41 
42 
43 #endif /* WMESADEF_H */
44