Added a way to get the Windows OpenGL context in SDL_syswm.h

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40439
This commit is contained in:
Sam Lantinga 2002-08-17 17:49:27 +00:00
parent 44bb9d26b0
commit e8d4a664cc
2 changed files with 12 additions and 0 deletions

View file

@ -111,6 +111,7 @@ typedef struct {
} SDL_SysWMinfo;
#elif defined(WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
/* The windows custom event structure */
@ -126,6 +127,7 @@ struct SDL_SysWMmsg {
typedef struct {
SDL_version version;
HWND window; /* The Win32 display window */
HGLRC hglrc; /* The OpenGL context, if any */
} SDL_SysWMinfo;
#else