]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/opengl.h
Make texture batching optional (for OpenGL 3.3 compat)
[dragonblocks_alpha.git] / src / client / opengl.h
diff --git a/src/client/opengl.h b/src/client/opengl.h
new file mode 100644 (file)
index 0000000..d08fadc
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _OPENGL_H_
+#define _OPENGL_H_
+
+#ifdef ENABLE_GL_DEBUG
+#define GL_DEBUG opengl_debug(__FILE__, __LINE__);
+#else
+#define GL_DEBUG
+#endif
+
+#include <GL/glew.h>
+#include <GL/gl.h>
+
+void opengl_debug(const char *file, int line);
+GLint opengl_texture_batch_units();
+
+#endif