Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 1712:931d111e737a SDL-1.3
Started framework for Windows video driver
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 26 Jun 2006 13:56:56 +0000 |
parents | 1577404809f0 |
children | a1ebb17f9c52 |
comparison
equal
deleted
inserted
replaced
1711:865ba39fc96d | 1712:931d111e737a |
---|---|
26 | 26 |
27 #include "SDL_mouse.h" | 27 #include "SDL_mouse.h" |
28 #define SDL_PROTOTYPES_ONLY | 28 #define SDL_PROTOTYPES_ONLY |
29 #include "SDL_syswm.h" | 29 #include "SDL_syswm.h" |
30 #undef SDL_PROTOTYPES_ONLY | 30 #undef SDL_PROTOTYPES_ONLY |
31 | |
32 /* This file prototypes the video driver implementation. | |
33 This is designed to be easily converted to C++ in the future. | |
34 */ | |
35 | |
36 #if SDL_VIDEO_OPENGL | |
37 #include "SDL_opengl.h" | |
38 #endif /* SDL_VIDEO_OPENGL */ | |
39 | 31 |
40 /* The SDL video driver */ | 32 /* The SDL video driver */ |
41 | 33 |
42 typedef struct SDL_Window SDL_Window; | 34 typedef struct SDL_Window SDL_Window; |
43 typedef struct SDL_Texture SDL_Texture; | 35 typedef struct SDL_Texture SDL_Texture; |
254 int (*GL_MakeCurrent) (_THIS); | 246 int (*GL_MakeCurrent) (_THIS); |
255 | 247 |
256 /* Swap the current buffers in double buffer mode. */ | 248 /* Swap the current buffers in double buffer mode. */ |
257 void (*GL_SwapBuffers) (_THIS); | 249 void (*GL_SwapBuffers) (_THIS); |
258 | 250 |
259 /* OpenGL functions for glSDL */ | |
260 #if SDL_VIDEO_OPENGL | |
261 #if !defined(__WIN32__) | |
262 #define WINAPI | |
263 #endif | |
264 #define SDL_PROC(ret,func,params) ret (WINAPI *func) params; | |
265 #include "SDL_glfuncs.h" | |
266 #undef SDL_PROC | |
267 | |
268 /* Texture id */ | |
269 GLuint texture; | |
270 | |
271 int is_32bit; | |
272 #endif | |
273 | |
274 /* Determine whether the mouse should be in relative mode or not. | 251 /* Determine whether the mouse should be in relative mode or not. |
275 This function is called when the input grab state or cursor | 252 This function is called when the input grab state or cursor |
276 visibility state changes. | 253 visibility state changes. |
277 If the cursor is not visible, and the input is grabbed, the | 254 If the cursor is not visible, and the input is grabbed, the |
278 driver can place the mouse in relative mode, which may result | 255 driver can place the mouse in relative mode, which may result |
328 | 305 |
329 /* * * */ | 306 /* * * */ |
330 /* The function used to dispose of this structure */ | 307 /* The function used to dispose of this structure */ |
331 void (*free) (_THIS); | 308 void (*free) (_THIS); |
332 }; | 309 }; |
333 #undef _THIS | |
334 | 310 |
335 typedef struct VideoBootStrap | 311 typedef struct VideoBootStrap |
336 { | 312 { |
337 const char *name; | 313 const char *name; |
338 const char *desc; | 314 const char *desc; |
380 extern VideoBootStrap SVGALIB_bootstrap; | 356 extern VideoBootStrap SVGALIB_bootstrap; |
381 #endif | 357 #endif |
382 #if SDL_VIDEO_DRIVER_GAPI | 358 #if SDL_VIDEO_DRIVER_GAPI |
383 extern VideoBootStrap GAPI_bootstrap; | 359 extern VideoBootStrap GAPI_bootstrap; |
384 #endif | 360 #endif |
385 #if SDL_VIDEO_DRIVER_WINDIB | 361 #if SDL_VIDEO_DRIVER_WIN32 |
386 extern VideoBootStrap WINDIB_bootstrap; | 362 extern VideoBootStrap WIN32_bootstrap; |
387 #endif | |
388 #if SDL_VIDEO_DRIVER_DDRAW | |
389 extern VideoBootStrap DIRECTX_bootstrap; | |
390 #endif | 363 #endif |
391 #if SDL_VIDEO_DRIVER_BWINDOW | 364 #if SDL_VIDEO_DRIVER_BWINDOW |
392 extern VideoBootStrap BWINDOW_bootstrap; | 365 extern VideoBootStrap BWINDOW_bootstrap; |
393 #endif | 366 #endif |
394 #if SDL_VIDEO_DRIVER_TOOLBOX | 367 #if SDL_VIDEO_DRIVER_TOOLBOX |