typedef enum { /// Device oriented vertically, home button on the bottom kCCDeviceOrientationPortrait = 0, // UIDeviceOrientationPortrait, /// Device oriented vertically, home button on the top kCCDeviceOrientationPortraitUpsideDown = 1, // UIDeviceOrientationPortraitUpsideDown, /// Device oriented horizontally, home button on the right kCCDeviceOrientationLandscapeLeft = 2, // UIDeviceOrientationLandscapeLeft, /// Device oriented horizontally, home button on the left kCCDeviceOrientationLandscapeRight = 3, // UIDeviceOrientationLandscapeRight, } ccDeviceOrientation; class CCDirector : public CCObject { CCScene* getRunningScene(void); double getAnimationInterval(void); void setAnimationInterval(double dValue); bool isDisplayFPS(void); void setDisplayFPS(bool bDisplayFPS); bool isRetinaDisplay(); bool isPaused(void); bool isSendCleanupToScene(void); unsigned int getFrames(void); CCSize getWinSize(void); CCSize getWinSizeInPixels(void); CCSize getDisplaySizeInPixels(void); CCPoint convertToGL(CCPoint obPoint); CCPoint convertToUI(CCPoint obPoint); float getZEye(void); void runWithScene(CCScene *pScene); void pushScene(CCScene *pScene); void popScene(void); void replaceScene(CCScene *pScene); void pause(void); void resume(void); void drawScene(void); void purgeCachedData(void); void setContentScaleFactor(CGFloat scaleFactor); CGFloat getContentScaleFactor(void); int getDeviceOrientation(); static CCDirector* sharedDirector(void); };