diff options
author | José Fonseca <[email protected]> | 2008-06-03 00:03:17 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-06-03 00:05:54 +0900 |
commit | 7c22bb383a8fcccf71d7916ce91ae6cb17ac1e3c (patch) | |
tree | 800b1bb93d097c93ec90bd591cd8aaf1ffe57323 /src/gallium/winsys/gdi/wmesadef.h | |
parent | 6a39bcf3752df7c22cdd38b4645a885eb318add8 (diff) |
gdi: Port of the gdi mesa driver to gallium (Alan Hourihane).
Diffstat (limited to 'src/gallium/winsys/gdi/wmesadef.h')
-rw-r--r-- | src/gallium/winsys/gdi/wmesadef.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/gallium/winsys/gdi/wmesadef.h b/src/gallium/winsys/gdi/wmesadef.h new file mode 100644 index 00000000000..fb8ce30a082 --- /dev/null +++ b/src/gallium/winsys/gdi/wmesadef.h @@ -0,0 +1,40 @@ +#ifndef WMESADEF_H +#define WMESADEF_H +#ifdef __MINGW32__ +#include <windows.h> +#endif +#if 0 +#include "context.h" +#endif +#include "state_tracker/st_context.h" +#include "state_tracker/st_public.h" + + +/** + * The Windows Mesa rendering context, derived from GLcontext. + */ +struct wmesa_context { + struct st_context *st; + HDC hDC; + BYTE cColorBits; +}; + +/** + * Windows framebuffer, derived from gl_framebuffer + */ +struct wmesa_framebuffer +{ + struct st_framebuffer *stfb; + HDC hDC; + int pixelformat; + BYTE cColorBits; + HDC dib_hDC; + HBITMAP hbmDIB; + HBITMAP hOldBitmap; + PBYTE pbPixels; + struct wmesa_framebuffer *next; +}; + +typedef struct wmesa_framebuffer *WMesaFramebuffer; + +#endif /* WMESADEF_H */ |