helper for compiling glsl

Signed-off-by: Ryan Houdek <[email protected]>
This commit is contained in:
degasus
2012-12-13 15:28:44 -06:00
committed by Ryan Houdek
parent 48812f7bf7
commit 61836f8c51
3 changed files with 71 additions and 13 deletions
@@ -96,6 +96,9 @@ u32 OpenGL_GetBackbufferHeight();
// Set things
void OpenGL_SetWindowText(const char *text);
// Helpers
GLuint OpenGL_CompileProgram(const char *vertexShader, const char *fragmentShader);
// Error reporting - use the convenient macros.
void OpenGL_ReportARBProgramError();
GLuint OpenGL_ReportGLError(const char *function, const char *file, int line);
@@ -126,4 +129,7 @@ extern CGprofile g_cgvProf, g_cgfProf;
// use GLSL shaders across the whole pipeline. Yikes!
//#define USE_DUAL_SOURCE_BLEND
// TODO: should be removed if we use glsl a lot
#define DEBUG_GLSL
#endif // _GLINIT_H_