Compounds | |
struct | gl::ttf::glyph |
A glyph stored in memory. More... | |
struct | gl::ttf::eqchar |
Functor used for gl::tff::glyph_hash. More... | |
class | gl::matrix4 |
A 4x4 matrix for use with OpenGL. More... | |
class | gl::pixel_buffer |
A off screen pixel buffer. More... | |
class | gl::texture |
OpenGL specific texture handle. More... | |
class | gl::ttf |
True type font renderer. More... | |
Functions | |
void | init (unsigned int width, unsigned int height) |
Initializes OpenGL. More... | |
void | enable_2d (GLsizei width, GLsizei height) |
Sets OpenGL to 2D (orthogonal) mode. More... | |
void | disable_2d (void) |
Disable 2D mode, restoring state before enable_2d( ) call. | |
void | render_image (const rectf &rect, const gl::texture &tex) |
Renders an image to the screen. |
|
Sets OpenGL to 2D (orthogonal) mode. Sets an orthogonal projection matrix with (0, 0) in the lower left hand corner of the screen and (width, height) in the upper right hand of the screen. Definition at line 33 of file gl.cpp. Referenced by video_base::enable_2d. |
|
Initializes OpenGL. Initializes OpenGL. Sets the current matrix to MODELVIEW. Definition at line 8 of file gl.cpp. Referenced by video_X::init, and video_sdl::init. |