Mercurial > sdl-ios-xcode
comparison include/SDL_video.h @ 3057:089a77aebb7d
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 09 Feb 2009 05:32:12 +0000 |
parents | 4e4f47c5f941 |
children | 32efcc94b3da |
comparison
equal
deleted
inserted
replaced
3056:a434fe6360df | 3057:089a77aebb7d |
---|---|
109 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */ | 109 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */ |
110 SDL_WINDOW_MINIMIZED = 0x00000020, /**< minimized */ | 110 SDL_WINDOW_MINIMIZED = 0x00000020, /**< minimized */ |
111 SDL_WINDOW_MAXIMIZED = 0x00000040, /**< maximized */ | 111 SDL_WINDOW_MAXIMIZED = 0x00000040, /**< maximized */ |
112 SDL_WINDOW_INPUT_GRABBED = 0x00000100, /**< window has grabbed input focus */ | 112 SDL_WINDOW_INPUT_GRABBED = 0x00000100, /**< window has grabbed input focus */ |
113 SDL_WINDOW_INPUT_FOCUS = 0x00000200, /**< window has input focus */ | 113 SDL_WINDOW_INPUT_FOCUS = 0x00000200, /**< window has input focus */ |
114 SDL_WINDOW_MOUSE_FOCUS = 0x00000400 /**< window has mouse focus */ | 114 SDL_WINDOW_MOUSE_FOCUS = 0x00000400, /**< window has mouse focus */ |
115 SDL_WINDOW_FOREIGN = 0x00000800 /**< window not created by SDL */ | |
115 } SDL_WindowFlags; | 116 } SDL_WindowFlags; |
116 | 117 |
117 /** | 118 /** |
118 * \def SDL_WINDOWPOS_UNDEFINED | 119 * \def SDL_WINDOWPOS_UNDEFINED |
119 * \brief Used to indicate that you don't care what the window position is. | 120 * \brief Used to indicate that you don't care what the window position is. |
1361 * | 1362 * |
1362 * \note If you do this, you need to retrieve all of the GL functions used in | 1363 * \note If you do this, you need to retrieve all of the GL functions used in |
1363 * your program from the dynamic library using SDL_GL_GetProcAddress(). | 1364 * your program from the dynamic library using SDL_GL_GetProcAddress(). |
1364 * | 1365 * |
1365 * \sa SDL_GL_GetProcAddress() | 1366 * \sa SDL_GL_GetProcAddress() |
1367 * \sa SDL_GL_UnloadLibrary() | |
1366 */ | 1368 */ |
1367 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path); | 1369 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path); |
1368 | 1370 |
1369 /** | 1371 /** |
1370 * \fn void *SDL_GL_GetProcAddress(const char *proc) | 1372 * \fn void *SDL_GL_GetProcAddress(const char *proc) |
1371 * | 1373 * |
1372 * \brief Get the address of an OpenGL function. | 1374 * \brief Get the address of an OpenGL function. |
1373 */ | 1375 */ |
1374 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc); | 1376 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc); |
1377 | |
1378 /** | |
1379 * \fn void SDL_GL_UnloadLibrary(void) | |
1380 * | |
1381 * \brief Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary() | |
1382 * | |
1383 * \sa SDL_GL_LoadLibrary() | |
1384 */ | |
1385 extern DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void); | |
1375 | 1386 |
1376 /** | 1387 /** |
1377 * \fn SDL_bool SDL_GL_ExtensionSupported(const char *extension) | 1388 * \fn SDL_bool SDL_GL_ExtensionSupported(const char *extension) |
1378 * | 1389 * |
1379 * \brief Return true if an OpenGL extension is supported for the current context. | 1390 * \brief Return true if an OpenGL extension is supported for the current context. |