56 static void load_opengl(
bool gl_blending =
true,
bool gl_cull_face =
true,
57 bool gl_multisample =
true,
58 bool gl_depth_test =
true);
74 static void set_viewport(
int x,
int y,
int SCR_WIDTH,
int SCR_HEIGHT);
85 static void set_color(
float r,
float g,
float b,
float a);
95 static void draw_arrays(GLenum mode,
int first,
int count);
107 static void draw_elements(GLenum mode,
int count, GLenum type,
108 const void *indices);
129#define check_error() gl::check_error_(__FILE__, __LINE__)
static void set_viewport(int x, int y, int SCR_WIDTH, int SCR_HEIGHT)
Set Viewport.
static void set_color(float r, float g, float b, float a)
Set Clear Color.
static void clear()
Clear.
static void set_poligon_mode(GLboolean enable)
Set Poligon Mode.
static void draw_elements(GLenum mode, int count, GLenum type, const void *indices)
Draw Elements.
static void load_opengl(bool gl_blending=true, bool gl_cull_face=true, bool gl_multisample=true, bool gl_depth_test=true)
Load OpenGL.
static void bind_vertex_array(unsigned int n)
Enable Depth Test.
static GLenum check_error_(const char *file, int line)
Check OpenGL error.
static void draw_arrays(GLenum mode, int first, int count)
Draw Arrays.