2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCDirector : public CCObject
|
|
|
|
{
|
|
|
|
CCScene* getRunningScene(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
double getAnimationInterval(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-04-15 15:46:01 +08:00
|
|
|
bool isDisplayStats(void);
|
|
|
|
void setDisplayStats(bool bDisplayFPS);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
bool isPaused(void);
|
|
|
|
unsigned int getFrames(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
CCSize getWinSize(void);
|
|
|
|
CCSize getWinSizeInPixels(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
CCPoint convertToGL(CCPoint obPoint);
|
|
|
|
CCPoint convertToUI(CCPoint obPoint);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void runWithScene(CCScene *pScene);
|
|
|
|
void pushScene(CCScene *pScene);
|
|
|
|
void popScene(void);
|
|
|
|
void replaceScene(CCScene *pScene);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-04-15 15:46:01 +08:00
|
|
|
CCFloat getContentScaleFactor(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
static CCDirector* sharedDirector(void);
|
|
|
|
};
|