Initial integration, lots of broken stuff
[supertux.git] / src / unison / src / video / opengl / SDL_gl.c
1 //          Copyright Timothy Goya 2007.
2 // Distributed under the Boost Software License, Version 1.0.
3 //    (See accompanying file LICENSE_1_0.txt or copy at
4 //          http://www.boost.org/LICENSE_1_0.txt)
5
6 #include "SDL.h"
7 #include "SDL_gl.h"
8
9 #define GL_PROC(ret, func, params) ret (*func) params;
10 #include "SDL_glfuncs.h"
11 #undef GL_PROC
12
13 int glLoad(const char *path)
14 {
15    int ret = SDL_GL_LoadLibrary(path);
16    if(ret)
17    {
18       return ret;
19    }
20 #define GL_PROC(ret, func, params) func = SDL_GL_GetProcAddress(#func);
21 #include "SDL_glfuncs.h"
22 #undef GL_PROC
23    return 0;
24 }