st/wgl: Use st_context_iface::share for DrvShareLists.
[mesa.git] / src / gallium / state_trackers / wgl / stw_context.h
index 166471de5eb1912d135137944f72aae7ba1ec879..0bbed84104a5b12c7775f9c28a7d56acc5eeea90 100644 (file)
 
 #include <windows.h>
 
-struct st_context;
+struct stw_framebuffer;
+struct st_context_iface;
 
 struct stw_context
 {
-   struct st_context *st;
-   UINT_PTR hglrc;
+   struct st_context_iface *st;
+   DHGLRC dhglrc;
    int iPixelFormat;
    HDC hdc;
+
+   struct stw_framebuffer *current_framebuffer;
 };
 
+DHGLRC stw_get_current_context( void );
+
+HDC stw_get_current_dc( void );
+
+BOOL stw_make_current( HDC hdc, DHGLRC dhglrc );
+
+void stw_flush_current_locked( struct stw_framebuffer *fb );
+void stw_notify_current_locked( struct stw_framebuffer *fb );
+
 #endif /* STW_CONTEXT_H */