21 #if defined WITH_OPENGL && WITH_OPENGL 22 # define GL_GLEXT_PROTOTYPES 1 23 # if defined WITH_OPENGLES2 && WITH_OPENGLES2 24 # include <GLES2/gl2.h> 25 # include <GLES2/gl2ext.h> 28 # include <GL/glext.h> 30 # define WITH_OPENGLES2 0 38 #define CHECK_GL_ERROR() \ 42 if ((glerror = glGetError ()) != GL_NO_ERROR) \ 44 ERROR ("OpenGL error (%d) in %s:%d.", (int) glerror, \ 45 __FILE__, __LINE__); \ 66 static void draw_quad (
int,
int,
int,
int,
static void clear_scene(int w, int h)
GL::clear_scene Clear and configure OpenGL context.
Definition: aux-gl.cpp:229
static void create_texture(GLuint *)
GL::create_texture Creates a new uninitialized OpenGL texture.
Definition: aux-gl.cpp:262
unsigned int GLuint
Definition: aux-gl.h:32
static void draw_quad(int, int, int, int, GLuint, GLfloat a=1.0f)
GL::draw_quad Draws a textured rectangle.
Definition: aux-gl.cpp:364
static void init()
GL::init Initiliazes the OpenGL context.
Definition: aux-gl.cpp:131
static void delete_texture(GLuint *)
GL::delete_texture Deletes the texture.
Definition: aux-gl.cpp:302
static void update_subtexture(GLuint, int, int, int, int, unsigned char *)
GL::update_subtexture Updates subtexture with the data content.
Definition: aux-gl.cpp:338
float GLfloat
Definition: aux-gl.h:33
static void update_texture(GLuint, int, int, unsigned char *)
GL::update_texture Updates texture with the data content.
Definition: aux-gl.cpp:320
static void beginDraw()
Definition: aux-gl.cpp:201