Public Member Functions | Private Attributes

IsoCamera Class Reference

Camera specializing in isometric viewports. More...

#include <IsoCamera.h>

Inheritance diagram for IsoCamera:
Camera

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

IsoCamera::IsoCamera ( int  viewportW,
int  viewportH,
int  worldspaceW,
int  worldspaceH,
int  tileW,
int  tileH,
int  tileMaxH 
)
IsoCamera::IsoCamera (  ) 
IsoCamera::~IsoCamera (  )  [inline]

Member Function Documentation

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.


Member Data Documentation

Half of a Tile height.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines