Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32video.c @ 1913:83420da906a5
Implemented Windows OpenGL support
Fixed slowdown enumerating display modes, which was hosing OpenGL as well...
Removed SDL_ from the render driver prefixes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 17 Jul 2006 06:47:33 +0000 |
parents | 36d52b1f0504 |
children | 83946ee0ff1f |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32video.c Sun Jul 16 09:34:01 2006 +0000 +++ b/src/video/win32/SDL_win32video.c Mon Jul 17 06:47:33 2006 +0000 @@ -101,11 +101,11 @@ /* Set the function pointers */ device->VideoInit = WIN_VideoInit; + device->VideoQuit = WIN_VideoQuit; device->GetDisplayModes = WIN_GetDisplayModes; device->SetDisplayMode = WIN_SetDisplayMode; device->SetDisplayGammaRamp = WIN_SetDisplayGammaRamp; device->GetDisplayGammaRamp = WIN_GetDisplayGammaRamp; - device->VideoQuit = WIN_VideoQuit; device->PumpEvents = WIN_PumpEvents; #undef CreateWindow @@ -123,6 +123,17 @@ device->SetWindowGrab = WIN_SetWindowGrab; device->DestroyWindow = WIN_DestroyWindow; device->GetWindowWMInfo = WIN_GetWindowWMInfo; +#ifdef SDL_VIDEO_OPENGL + device->GL_LoadLibrary = WIN_GL_LoadLibrary; + device->GL_GetProcAddress = WIN_GL_GetProcAddress; + device->GL_GetWindowAttribute = WIN_GL_GetWindowAttribute; + device->GL_CreateContext = WIN_GL_CreateContext; + device->GL_MakeCurrent = WIN_GL_MakeCurrent; + device->GL_SetSwapInterval = WIN_GL_SetSwapInterval; + device->GL_GetSwapInterval = WIN_GL_GetSwapInterval; + device->GL_SwapWindow = WIN_GL_SwapWindow; + device->GL_DeleteContext = WIN_GL_DeleteContext; +#endif device->free = WIN_DeleteDevice;