PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
PGE_LevelCamera Class Reference

Public Member Functions

 PGE_LevelCamera (const PGE_LevelCamera &cam)
 
int w ()
 Width.
 
int h ()
 Height.
 
qreal posX ()
 Position X.
 
qreal posY ()
 Position Y.
 
void init (float x, float y, float w, float h)
 
void setPos (float x, float y)
 
void setCenterPos (float x, float y)
 
void setSize (int w, int h)
 
void setOffset (int x, int y)
 
void update (float ticks)
 
void drawBackground ()
 
void drawForeground ()
 
void changeSection (LVL_Section *sct, bool isInit=false)
 
void changeSectionBorders (long left, long top, long right, long bottom)
 
void resetLimits ()
 
PGE_RenderList & renderObjects ()
 
void resetAutoscroll ()
 
void processAutoscroll (float tickTime)
 

Public Attributes

LevelSectionsection
 
LVL_Sectioncur_section
 
PGE_RectF posRect
 
float offset_x
 
float offset_y
 
PGE_Fader fader
 
bool isAutoscroll
 
float _autoscrollVelocityX_max
 
float _autoscrollVelocityY_max
 
float _autoscrollVelocityX
 
float _autoscrollVelocityY
 
PGE_RectF limitBox
 

Static Public Attributes

static const float _smbxTickTime =1000.0f/65.f
 

Friends

class LVL_Background
 
class LVL_Section
 

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