Public Member Functions | Protected Member Functions | Protected Attributes
cinder::gl::TileRender Class Reference

#include <TileRender.h>

List of all members.

Public Member Functions

 TileRender (int32_t imageWidth, int32_t imageHeight, int32_t tileWidth=512, int32_t tileHeight=512)
bool nextTile ()
int32_t getImageWidth () const
int32_t getImageHeight () const
float getImageAspectRatio () const
Area getCurrentTileArea () const
Surface getSurface () const
void setMatricesWindow (int32_t windowWidth, int32_t windowHeight)
void setMatricesWindow (const Vec2i &windowSize)
void setMatricesWindowPersp (int screenWidth, int screenHeight, float fovDegrees=60.0f, float nearPlane=1.0f, float farPlane=1000.0f)
void setMatricesWindowPersp (const Vec2i &windowSize, float fovDegrees=60.0f, float nearPlane=1.0f, float farPlane=1000.0f)
void setMatrices (const Camera &camera)
void frustum (float left, float right, float bottom, float top, float nearPlane, float farPlane)
void ortho (float left, float right, float bottom, float top, float nearPlane, float farPlane)

Protected Member Functions

void updateFrustum ()

Protected Attributes

int32_t mImageWidth
int32_t mImageHeight
int32_t mTileWidth
int32_t mTileHeight
int32_t mNumTilesX
int32_t mNumTilesY
int32_t mCurrentTile
Area mCurrentArea
Rectf mCurrentFrustumCoords
float mCurrentFrustumNear
float mCurrentFrustumFar
bool mCurrentFrustumPersp
Area mSavedViewport
Surface mSurface

Constructor & Destructor Documentation

cinder::gl::TileRender::TileRender ( int32_t  imageWidth,
int32_t  imageHeight,
int32_t  tileWidth = 512,
int32_t  tileHeight = 512 
)

Member Function Documentation

void cinder::gl::TileRender::setMatricesWindow ( int32_t  windowWidth,
int32_t  windowHeight 
)
void cinder::gl::TileRender::setMatricesWindow ( const Vec2i windowSize)
void cinder::gl::TileRender::setMatricesWindowPersp ( int  screenWidth,
int  screenHeight,
float  fovDegrees = 60.0f,
float  nearPlane = 1.0f,
float  farPlane = 1000.0f 
)
void cinder::gl::TileRender::setMatricesWindowPersp ( const Vec2i windowSize,
float  fovDegrees = 60.0f,
float  nearPlane = 1.0f,
float  farPlane = 1000.0f 
)
void cinder::gl::TileRender::setMatrices ( const Camera camera)
void cinder::gl::TileRender::frustum ( float  left,
float  right,
float  bottom,
float  top,
float  nearPlane,
float  farPlane 
)
void cinder::gl::TileRender::ortho ( float  left,
float  right,
float  bottom,
float  top,
float  nearPlane,
float  farPlane 
)

Member Data Documentation


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