comparison 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
comparison
equal deleted inserted replaced
1912:8d384b647307 1913:83420da906a5
99 } 99 }
100 #endif /* SDL_VIDEO_RENDER_D3D */ 100 #endif /* SDL_VIDEO_RENDER_D3D */
101 101
102 /* Set the function pointers */ 102 /* Set the function pointers */
103 device->VideoInit = WIN_VideoInit; 103 device->VideoInit = WIN_VideoInit;
104 device->VideoQuit = WIN_VideoQuit;
104 device->GetDisplayModes = WIN_GetDisplayModes; 105 device->GetDisplayModes = WIN_GetDisplayModes;
105 device->SetDisplayMode = WIN_SetDisplayMode; 106 device->SetDisplayMode = WIN_SetDisplayMode;
106 device->SetDisplayGammaRamp = WIN_SetDisplayGammaRamp; 107 device->SetDisplayGammaRamp = WIN_SetDisplayGammaRamp;
107 device->GetDisplayGammaRamp = WIN_GetDisplayGammaRamp; 108 device->GetDisplayGammaRamp = WIN_GetDisplayGammaRamp;
108 device->VideoQuit = WIN_VideoQuit;
109 device->PumpEvents = WIN_PumpEvents; 109 device->PumpEvents = WIN_PumpEvents;
110 110
111 #undef CreateWindow 111 #undef CreateWindow
112 device->CreateWindow = WIN_CreateWindow; 112 device->CreateWindow = WIN_CreateWindow;
113 device->CreateWindowFrom = WIN_CreateWindowFrom; 113 device->CreateWindowFrom = WIN_CreateWindowFrom;
121 device->MinimizeWindow = WIN_MinimizeWindow; 121 device->MinimizeWindow = WIN_MinimizeWindow;
122 device->RestoreWindow = WIN_RestoreWindow; 122 device->RestoreWindow = WIN_RestoreWindow;
123 device->SetWindowGrab = WIN_SetWindowGrab; 123 device->SetWindowGrab = WIN_SetWindowGrab;
124 device->DestroyWindow = WIN_DestroyWindow; 124 device->DestroyWindow = WIN_DestroyWindow;
125 device->GetWindowWMInfo = WIN_GetWindowWMInfo; 125 device->GetWindowWMInfo = WIN_GetWindowWMInfo;
126 #ifdef SDL_VIDEO_OPENGL
127 device->GL_LoadLibrary = WIN_GL_LoadLibrary;
128 device->GL_GetProcAddress = WIN_GL_GetProcAddress;
129 device->GL_GetWindowAttribute = WIN_GL_GetWindowAttribute;
130 device->GL_CreateContext = WIN_GL_CreateContext;
131 device->GL_MakeCurrent = WIN_GL_MakeCurrent;
132 device->GL_SetSwapInterval = WIN_GL_SetSwapInterval;
133 device->GL_GetSwapInterval = WIN_GL_GetSwapInterval;
134 device->GL_SwapWindow = WIN_GL_SwapWindow;
135 device->GL_DeleteContext = WIN_GL_DeleteContext;
136 #endif
126 137
127 device->free = WIN_DeleteDevice; 138 device->free = WIN_DeleteDevice;
128 139
129 return device; 140 return device;
130 } 141 }