green::GLRenderSystem Class Reference

#include <GLRenderSystem.h>

Inheritance diagram for green::GLRenderSystem:

green::RenderSystem List of all members.

Public Member Functions

void StartFrame ()
void FinishFrame ()
void DrawObject (Graphic object, double x, double y, double rot)
void Reshape (int width, int height)

Detailed Description

This is the GLRenderSystem class, which implements the RenderSystem class using OpenGL as the rendering backend.


Member Function Documentation

void green::GLRenderSystem::StartFrame (  )  [inline, virtual]

StartFrame is called before other rendering commands are called to prepare the frame. For example, this might be implemented to clear the frame or reset graphics flags to their default values, etc..

Reimplemented from green::RenderSystem.

void green::GLRenderSystem::FinishFrame (  )  [inline, virtual]

FinishFrame is called after other rendering commands are called to finish drawing the frame and perform other post processing. It also waits for async. rendering commands to finish before continuing.

Reimplemented from green::RenderSystem.

void green::GLRenderSystem::DrawObject ( Graphic  object,
double  x,
double  y,
double  rot 
) [inline, virtual]

TEMPORARY DrawObject is a temporary method to draw a specific kind of object at a certain location with a certain rotation. In the future this will be replaced by more sophisticated methods.

Reimplemented from green::RenderSystem.

void green::GLRenderSystem::Reshape ( int  width,
int  height 
) [inline, virtual]

This function is called when the viewport changes. This version simply sets the projection to orthographic with a -1.0 to 1.0 coordinate system for x and y

Parameters:
width The new width of the window
height The new height of the window

Reimplemented from green::RenderSystem.


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 10:27:38 2007 for Green Engine by  doxygen 1.5.1