Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

gl Namespace Reference

Graphics Library Wrappers. More...


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.


Detailed Description

Graphics Library Wrappers.

Function Documentation

void gl::enable_2d GLsizei    width,
GLsizei    height
 

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.

void gl::init unsigned int    width,
unsigned int    height
 

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.


Generated on Tue Feb 11 18:49:46 2003 for uber by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002