diff options
author | Karl Schultz <[email protected]> | 2006-03-30 21:53:23 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2006-03-30 21:53:23 +0000 |
commit | 174ce730c6c9739121c02c7d58e7d8be377d2231 (patch) | |
tree | 175149c973b221ffcdf27478b435f8436990462d /src/mesa/drivers/windows/gdi/wmesadef.h | |
parent | 48547ee12924789cb62b594f5812dd4dab3a2153 (diff) |
Clean up data structures, finishing off some of the cleanup work suggested by Brian. Now also creating two renderbuffers, so apps can now switch with glDrawBuffer.
Diffstat (limited to 'src/mesa/drivers/windows/gdi/wmesadef.h')
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesadef.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesadef.h b/src/mesa/drivers/windows/gdi/wmesadef.h index 296000a12f7..97b063a8bab 100644 --- a/src/mesa/drivers/windows/gdi/wmesadef.h +++ b/src/mesa/drivers/windows/gdi/wmesadef.h @@ -3,12 +3,6 @@ #include "context.h" -typedef struct _dibSection { - HDC hDC; - HANDLE hFileMap; - BOOL fFlushed; - LPVOID base; -} WMDIBSECTION, *PWMDIBSECTION; /** * The Windows Mesa rendering context, derived from GLcontext. @@ -19,17 +13,6 @@ struct wmesa_context { COLORREF clearColorRef; HPEN clearPen; HBRUSH clearBrush; - GLuint ScanWidth; /* XXX move into wmesa_framebuffer */ - GLboolean rgb_flag; /* XXX remove - use gl_visual field */ - GLboolean db_flag; /* XXX remove - use gl_visual field */ - GLboolean alpha_flag; /* XXX remove - use gl_visual field */ - WMDIBSECTION dib; - BITMAPINFO bmi; - HBITMAP hbmDIB; - HBITMAP hOldBitmap; - PBYTE pbPixels; - BYTE cColorBits; - int pixelformat; }; @@ -39,7 +22,16 @@ struct wmesa_context { struct wmesa_framebuffer { struct gl_framebuffer Base; - HDC hdc; + HDC hDC; + int pixelformat; + GLuint ScanWidth; + BYTE cColorBits; + /* back buffer DIB fields */ + HDC dib_hDC; + BITMAPINFO bmi; + HBITMAP hbmDIB; + HBITMAP hOldBitmap; + PBYTE pbPixels; struct wmesa_framebuffer *next; }; |