]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/opengl.h
Make texture batching optional (for OpenGL 3.3 compat)
[dragonblocks_alpha.git] / src / client / opengl.h
1 #ifndef _OPENGL_H_
2 #define _OPENGL_H_
3
4 #ifdef ENABLE_GL_DEBUG
5 #define GL_DEBUG opengl_debug(__FILE__, __LINE__);
6 #else
7 #define GL_DEBUG
8 #endif
9
10 #include <GL/glew.h>
11 #include <GL/gl.h>
12
13 void opengl_debug(const char *file, int line);
14 GLint opengl_texture_batch_units();
15
16 #endif