comparison src/video/x11/SDL_x11video.c @ 1952:420716272158

Implemented X11 OpenGL support. Added support for the SDL_VIDEO_OPENGL environment variable.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 28 Jul 2006 08:43:17 +0000
parents 7177581dc9fa
children 1d23870d8c49
comparison
equal deleted inserted replaced
1951:7177581dc9fa 1952:420716272158
184 device->MinimizeWindow = X11_MinimizeWindow; 184 device->MinimizeWindow = X11_MinimizeWindow;
185 device->RestoreWindow = X11_RestoreWindow; 185 device->RestoreWindow = X11_RestoreWindow;
186 device->SetWindowGrab = X11_SetWindowGrab; 186 device->SetWindowGrab = X11_SetWindowGrab;
187 device->DestroyWindow = X11_DestroyWindow; 187 device->DestroyWindow = X11_DestroyWindow;
188 device->GetWindowWMInfo = X11_GetWindowWMInfo; 188 device->GetWindowWMInfo = X11_GetWindowWMInfo;
189 /* 189 #ifdef SDL_VIDEO_OPENGL_GLX
190 #ifdef SDL_VIDEO_OPENGL
191 device->GL_LoadLibrary = X11_GL_LoadLibrary; 190 device->GL_LoadLibrary = X11_GL_LoadLibrary;
192 device->GL_GetProcAddress = X11_GL_GetProcAddress; 191 device->GL_GetProcAddress = X11_GL_GetProcAddress;
193 device->GL_CreateContext = X11_GL_CreateContext; 192 device->GL_CreateContext = X11_GL_CreateContext;
194 device->GL_MakeCurrent = X11_GL_MakeCurrent; 193 device->GL_MakeCurrent = X11_GL_MakeCurrent;
195 device->GL_SetSwapInterval = X11_GL_SetSwapInterval; 194 device->GL_SetSwapInterval = X11_GL_SetSwapInterval;
196 device->GL_GetSwapInterval = X11_GL_GetSwapInterval; 195 device->GL_GetSwapInterval = X11_GL_GetSwapInterval;
197 device->GL_SwapWindow = X11_GL_SwapWindow; 196 device->GL_SwapWindow = X11_GL_SwapWindow;
198 device->GL_DeleteContext = X11_GL_DeleteContext; 197 device->GL_DeleteContext = X11_GL_DeleteContext;
199 #endif 198 #endif
200 */
201 199
202 device->free = X11_DeleteDevice; 200 device->free = X11_DeleteDevice;
203 201
204 return device; 202 return device;
205 } 203 }