diff options
author | José Fonseca <[email protected]> | 2009-09-22 18:51:41 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-09-23 10:32:52 +0100 |
commit | 31f1571d1f6e325c16833afbb6e15b61561e5f1f (patch) | |
tree | 9493fb1359ee19048ea0b7b787cecc5cfa5de323 /src/gallium/state_trackers/wgl/stw_context.h | |
parent | f8c11526c0034faca7b7e3ab01ab85206847f441 (diff) |
wgl: Eliminate the shared layer; implement WGL API on top of the ICD callbacks.
While the WGL API has been stale for decades now, the ICD interface has
been updated with new Windows versions, so it is much easier to define
everything in terms of the ICD interfaces, which is pretty much what
Microsoft's opengl32.dll does anyway.
Diffstat (limited to 'src/gallium/state_trackers/wgl/stw_context.h')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_context.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_context.h b/src/gallium/state_trackers/wgl/stw_context.h index 166471de5eb..256c27e21ef 100644 --- a/src/gallium/state_trackers/wgl/stw_context.h +++ b/src/gallium/state_trackers/wgl/stw_context.h @@ -35,9 +35,15 @@ struct st_context; struct stw_context { struct st_context *st; - UINT_PTR hglrc; + DHGLRC dhglrc; int iPixelFormat; HDC hdc; }; +DHGLRC stw_get_current_context( void ); + +HDC stw_get_current_dc( void ); + +BOOL stw_make_current( HDC hdc, DHGLRC dhglrc ); + #endif /* STW_CONTEXT_H */ |