Camera specializing in isometric viewports. More...
#include <IsoCamera.h>
Public Member Functions | |
| IsoCamera (int viewportW, int viewportH, int worldspaceW, int worldspaceH, int tileW, int tileH, int tileMaxH) | |
| IsoCamera () | |
| ~IsoCamera () | |
| int | getNumYTileLoops () const |
Private Attributes | |
| int | mHalfTileHeight |
Camera specializing in isometric viewports.
The regular camera provides most of the functionality necessary for rendering tile maps but there are some specialized calculations involved in isometric tile maps. This version of the camera takes those special calculations into account by overriding two functions from the base Camera class and returning the values specific to isometric drawing.
| IsoCamera::IsoCamera | ( | int | viewportW, | |
| int | viewportH, | |||
| int | worldspaceW, | |||
| int | worldspaceH, | |||
| int | tileW, | |||
| int | tileH, | |||
| int | tileMaxH | |||
| ) |
| IsoCamera::IsoCamera | ( | ) |
| IsoCamera::~IsoCamera | ( | ) | [inline] |
| int IsoCamera::getNumYTileLoops | ( | ) | const [virtual] |
Returns the number of tiles needed to be drawn along the Y-Coordinate to fill a viewport.
Reimplemented from Camera.
int IsoCamera::mHalfTileHeight [private] |
Half of a Tile height.
1.7.1