argh, clean out copy
[supertux.git] / src / unison / src / video / opengl / SDL_gl.h
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 #ifndef _SDL_GL_H
7 #define _SDL_GL_H
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 typedef unsigned int GLenum;
14 typedef unsigned char GLboolean;
15 typedef unsigned int GLbitfield;
16 typedef void GLvoid;
17 typedef signed char GLbyte;
18 typedef short GLshort;
19 typedef int GLint;
20 typedef unsigned char GLubyte;
21 typedef unsigned short GLushort;
22 typedef unsigned int GLuint;
23 typedef int GLsizei;
24 typedef float GLfloat;
25 typedef float GLclampf;
26 typedef double GLdouble;
27 typedef double GLclampd;
28
29 #define GL_UNSIGNED_BYTE 0x1401
30 #define GL_QUADS 0x0007
31 #define GL_MODELVIEW 0x1700
32 #define GL_PROJECTION 0x1701
33 #define GL_FRONT 0x0404
34 #define GL_BACK 0x0405
35 #define GL_DEPTH_TEST 0x0B71
36 #define GL_CULL_FACE 0x0B44
37 #define GL_BLEND 0x0BE2
38 #define GL_ZERO 0x0
39 #define GL_ONE 0x1
40 #define GL_SRC_COLOR 0x0300
41 #define GL_SRC_ALPHA 0x0302
42 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
43 #define GL_DST_COLOR 0x0306
44 #define GL_RGB 0x1907
45 #define GL_RGBA 0x1908
46 #define GL_MAX_TEXTURE_SIZE 0x0D33
47 #define GL_UNPACK_ALIGNMENT 0x0CF5
48 #define GL_TEXTURE_2D 0x0DE1
49 #define GL_TEXTURE_WRAP_S 0x2802
50 #define GL_TEXTURE_WRAP_T 0x2803
51 #define GL_TEXTURE_MAG_FILTER 0x2800
52 #define GL_TEXTURE_MIN_FILTER 0x2801
53 #define GL_CLAMP 0x2900
54 #define GL_LINEAR 0x2601
55 #define GL_COLOR_BUFFER_BIT 0x00004000
56
57 #define GL_PROC(ret, func, params) extern ret (*func) params;
58 #include "SDL_glfuncs.h"
59 #undef GL_PROC
60
61 int glLoad(const char *path);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif