CrystalSpace

Public API Reference

csGraphics2DGLCommon Class Reference

Basic OpenGL version of the 2D driver class. More...

#include <csplugincommon/opengl/glcommon2d.h>

Inheritance diagram for csGraphics2DGLCommon:

List of all members.

Public Member Functions

 csGraphics2DGLCommon (iBase *iParent)
 Constructor does little, most initialization stuff happens in Initialize().
virtual bool Initialize (iObjectRegistry *object_reg)
 Initialize the plugin.
virtual ~csGraphics2DGLCommon ()
 Clear font cache etc.

Detailed Description

Basic OpenGL version of the 2D driver class.

You can look at one of the OpenGL canvas classes as an example of how to inherit and use this class. In short, inherit from this common class instead of from csGraphics2D, and override all the functions you normally would except for the 2D drawing functions, which are supplied for you here. That way all OpenGL drawing functions are unified over platforms, so that a fix or improvement will be inherited by all platforms instead of percolating via people copying code over.

Definition at line 245 of file glcommon2d.h.


Constructor & Destructor Documentation

csGraphics2DGLCommon::csGraphics2DGLCommon ( iBase iParent  ) 

Constructor does little, most initialization stuff happens in Initialize().

virtual csGraphics2DGLCommon::~csGraphics2DGLCommon (  )  [virtual]

Clear font cache etc.


Member Function Documentation

virtual bool csGraphics2DGLCommon::Initialize ( iObjectRegistry object_reg  )  [virtual]

Initialize the plugin.

Reimplemented from CS::PluginCommon::GL::Graphics2DCommon.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1