#include <GLRenderSystem.h>
Inheritance diagram for green::GLRenderSystem:
Public Member Functions | |
void | StartFrame () |
void | FinishFrame () |
void | DrawObject (Graphic object, double x, double y, double rot) |
void | Reshape (int width, int height) |
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
width | The new width of the window | |
height | The new height of the window |
Reimplemented from green::RenderSystem.