xref: /aosp_15_r20/external/mesa3d/src/gallium/winsys/sw/gdi/gdi_sw_winsys.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 #ifndef GDI_SW_WINSYS_H
2 #define GDI_SW_WINSYS_H
3 
4 #include <windows.h>
5 
6 #include "util/compiler.h"
7 #include "frontend/sw_winsys.h"
8 
9 void gdi_sw_display( struct sw_winsys *winsys,
10                      struct sw_displaytarget *dt,
11                      HDC hDC );
12 
13 struct sw_winsys *
14 gdi_create_sw_winsys(
15     /* Following functions are used to acquire HDC to draw on
16      * from winsys_drawable_handle argument of screen->flush_frontbuffer
17      */
18     HDC (*acquire_hdc)(void *winsys_drawable_handle),
19     void (*release_hdc)(void *winsys_drawable_handle, HDC hdc)
20 );
21 
22 /* Used when winsys_drawable_handle is HDC itself */
23 HDC gdi_sw_acquire_hdc_by_value(void *context_private);
24 void gdi_sw_release_hdc_by_value(void *context_private, HDC hdc);
25 #endif
26