Ginga  0.13.6.1771-df200
The iTV middleware.
GL Class Reference

#include <aux-gl.h>

Static Public Member Functions

static void init ()
 GL::init Initiliazes the OpenGL context. More...
 
static void beginDraw ()
 
static void clear_scene (int w, int h)
 GL::clear_scene Clear and configure OpenGL context. More...
 
static void create_texture (GLuint *)
 GL::create_texture Creates a new uninitialized OpenGL texture. More...
 
static void create_texture (GLuint *, int, int, unsigned char *)
 GL::create_texture Creates a new OpenGL texture and initializes it with the data content. More...
 
static void delete_texture (GLuint *)
 GL::delete_texture Deletes the texture. More...
 
static void update_texture (GLuint, int, int, unsigned char *)
 GL::update_texture Updates texture with the data content. More...
 
static void update_subtexture (GLuint, int, int, int, int, unsigned char *)
 GL::update_subtexture Updates subtexture with the data content. More...
 
static void draw_quad (int, int, int, int, GLuint, GLfloat a=1.0f)
 GL::draw_quad Draws a textured rectangle. More...
 
static void draw_quad (int, int, int, int, GLfloat, GLfloat, GLfloat, GLfloat)
 GL::draw_quad Draws a colored rectangle. More...
 

Member Function Documentation

void GL::beginDraw ( )
static

References ERROR_NOT_IMPLEMENTED, init(), and WARNING.

Referenced by Formatter::redraw().

void GL::clear_scene ( int  w,
int  h 
)
static

GL::clear_scene Clear and configure OpenGL context.

References CHECK_GL_ERROR, ERROR_NOT_IMPLEMENTED, and g_assert().

Referenced by Formatter::redraw().

void GL::create_texture ( GLuint gltex)
static

GL::create_texture Creates a new uninitialized OpenGL texture.

References CHECK_GL_ERROR, and ERROR_NOT_IMPLEMENTED.

Referenced by PlayerVideo::redraw(), PlayerLua::redraw(), PlayerImage::reload(), and PlayerText::reload().

void GL::create_texture ( GLuint gltex,
int  tex_w,
int  tex_h,
unsigned char *  data 
)
static

GL::create_texture Creates a new OpenGL texture and initializes it with the data content.

References CHECK_GL_ERROR, and ERROR_NOT_IMPLEMENTED.

void GL::delete_texture ( GLuint gltex)
static
void GL::draw_quad ( int  x,
int  y,
int  w,
int  h,
GLuint  gltex,
GLfloat  a = 1.0f 
)
static

GL::draw_quad Draws a textured rectangle.

References CHECK_GL_ERROR, ERROR_NOT_IMPLEMENTED, and g_assert().

Referenced by Formatter::redraw(), and Player::redraw().

void GL::draw_quad ( int  x,
int  y,
int  w,
int  h,
GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
static

GL::draw_quad Draws a colored rectangle.

References CHECK_GL_ERROR, and ERROR_NOT_IMPLEMENTED.

void GL::init ( )
static

GL::init Initiliazes the OpenGL context.

References CHECK_GL_ERROR, CHECK_SHADER_COMPILE_ERROR, ERROR, and ERROR_NOT_IMPLEMENTED.

Referenced by beginDraw().

void GL::update_subtexture ( GLuint  gltex,
int  xoffset,
int  yoffset,
int  width,
int  height,
unsigned char *  data 
)
static

GL::update_subtexture Updates subtexture with the data content.

References CHECK_GL_ERROR, and ERROR_NOT_IMPLEMENTED.

Referenced by PlayerLua::redraw().

void GL::update_texture ( GLuint  gltex,
int  tex_w,
int  tex_h,
unsigned char *  data 
)
static

GL::update_texture Updates texture with the data content.

References CHECK_GL_ERROR, ERROR_NOT_IMPLEMENTED, and g_assert().


The documentation for this class was generated from the following files: