comparison include/SDL_syswm.h @ 438:f9c5f135a8b9

Added a way to get the Windows OpenGL context in SDL_syswm.h
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Aug 2002 17:49:27 +0000
parents 9154ec9ca3d2
children 26dafefeebb2
comparison
equal deleted inserted replaced
437:5602f069ccb2 438:f9c5f135a8b9
109 SDL_version version ; 109 SDL_version version ;
110 GR_WINDOW_ID window ; /* The display window */ 110 GR_WINDOW_ID window ; /* The display window */
111 } SDL_SysWMinfo; 111 } SDL_SysWMinfo;
112 112
113 #elif defined(WIN32) 113 #elif defined(WIN32)
114 #define WIN32_LEAN_AND_MEAN
114 #include <windows.h> 115 #include <windows.h>
115 116
116 /* The windows custom event structure */ 117 /* The windows custom event structure */
117 struct SDL_SysWMmsg { 118 struct SDL_SysWMmsg {
118 SDL_version version; 119 SDL_version version;
124 125
125 /* The windows custom window manager information structure */ 126 /* The windows custom window manager information structure */
126 typedef struct { 127 typedef struct {
127 SDL_version version; 128 SDL_version version;
128 HWND window; /* The Win32 display window */ 129 HWND window; /* The Win32 display window */
130 HGLRC hglrc; /* The OpenGL context, if any */
129 } SDL_SysWMinfo; 131 } SDL_SysWMinfo;
130 132
131 #else 133 #else
132 134
133 /* The generic custom event structure */ 135 /* The generic custom event structure */