Public Member Functions

gfx::GFX Class Reference

OpenGL abstraction. More...

#include <_src_gfx_gfx.hh>

List of all members.

Public Member Functions

CLASS_METHOD void Begin2D (const Rect< int > &rect)
CLASS_METHOD void Begin2D (void)
CLASS_METHOD void End2D (void)
CLASS_METHOD void DrawBox (const Rect< int > &rect, const RGBA color, const bool drawX=false)
CLASS_METHOD void Vertex2D (fp x, fp y)

Detailed Description

OpenGL abstraction.

The GFX class is intended for when low-level OpenGL functions are called by an osg::Operation functor. OSG allows changes to OpenGL state in that situation and GFX makes no attempt to save/restore OpenGL state.


Member Function Documentation

void gfx::GFX::Begin2D ( const Rect< int > &  rect  ) 

Begin/end 2D drawing mode.

void gfx::GFX::Begin2D ( void   ) 
void gfx::GFX::DrawBox ( const Rect< int > &  rect,
const RGBA  color,
const bool  drawX = false 
)

Draw 2D box.

void gfx::GFX::End2D ( void   ) 
CLASS_METHOD void gfx::GFX::Vertex2D ( fp  x,
fp  y 
) [inline]

Send 2D vertex.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11