35#define glCheckError() glCheckError_(__FILE__, __LINE__)
58 static void LoadOpenGL(
bool gl_blending =
true,
bool gl_cull_face =
true,
59 bool gl_multisample =
true,
60 bool gl_depth_test =
true);
76 static void SetViewport(
int x,
int y,
int SCR_WIDTH,
int SCR_HEIGHT);
87 static void SetColor(
float r,
float g,
float b,
float a);
97 static void DrawArrays(GLenum mode,
int first,
int count);
109 static void DrawElements(GLenum mode,
int count, GLenum type,
110 const void *indices);
static void LoadOpenGL(bool gl_blending=true, bool gl_cull_face=true, bool gl_multisample=true, bool gl_depth_test=true)
Load OpenGL.
static void DrawElements(GLenum mode, int count, GLenum type, const void *indices)
Draw Elements.
static GLenum glCheckError_(const char *file, int line)
Check OpenGL error.
static void DrawArrays(GLenum mode, int first, int count)
Draw Arrays.
static void SetColor(float r, float g, float b, float a)
Set Clear Color.
static void Clear()
Clear.
static void BindVertexArray(unsigned int n)
Enable Depth Test.
static void SetViewport(int x, int y, int SCR_WIDTH, int SCR_HEIGHT)
Set Viewport.
static void SetPoligonMode(GLboolean enable)
Set Poligon Mode.