Gel2D - The free/open source game creation suite

Public Member Functions
gel::GelSceneManager Class Reference

Scene manager. More...

#include <gelScene.h>

List of all members.

Public Member Functions

GelCameraaddCamera ()
 Adds a camera.
GelSpriteaddSprite (const Gel2dVec &size, const Gel2dVec &pos, float rot)
 Adds a sprite.
void drawAll ()
 Draws all objects.

Detailed Description

Scene manager.


Member Function Documentation

GelCamera* gel::GelSceneManager::addCamera ( )

Adds a camera.

Returns:
Pointer to the newly added camera.
GelSprite* gel::GelSceneManager::addSprite ( const Gel2dVec size,
const Gel2dVec pos,
float  rot 
)

Adds a sprite.

Parameters:
size: The sprite's width and height in pixels.
pos: The sprite's position in pixels.
rot: The rotation of the sprite in degrees.
Returns:
Pointer to the newly added sprite.
void gel::GelSceneManager::drawAll ( )

Draws all objects.

Objects will be drawn in the order they were added.


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