comparison include/SDL_video.h @ 1490:8f3e602904d1

Dynamic OpenGL loading is the default now. :)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Mar 2006 15:11:15 +0000
parents c71e05b4dc2e
children 4d005dfbb7f5
comparison
equal deleted inserted replaced
1489:765f7461650a 1490:8f3e602904d1
770 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 770 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
771 /* OpenGL support functions. */ 771 /* OpenGL support functions. */
772 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 772 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
773 773
774 /* 774 /*
775 * Dynamically load a GL driver, if SDL is built with dynamic GL. 775 * Dynamically load an OpenGL library, or the default one if path is NULL
776 * 776 *
777 * SDL links normally with the OpenGL library on your system by default,
778 * but you can compile it to dynamically load the GL driver at runtime.
779 * If you do this, you need to retrieve all of the GL functions used in 777 * If you do this, you need to retrieve all of the GL functions used in
780 * your program from the dynamic library using SDL_GL_GetProcAddress(). 778 * your program from the dynamic library using SDL_GL_GetProcAddress().
781 *
782 * This is disabled in default builds of SDL.
783 */ 779 */
784 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path); 780 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
785 781
786 /* 782 /*
787 * Get the address of a GL function (for extension functions) 783 * Get the address of a GL function
788 */ 784 */
789 extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc); 785 extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc);
790 786
791 /* 787 /*
792 * Set an attribute of the OpenGL subsystem before intialization. 788 * Set an attribute of the OpenGL subsystem before intialization.