mirror of https://github.com/axmolengine/axmol.git
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
|
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);
|
|
|
|
bool isDisplayFPS(void);
|
|
void setDisplayFPS(bool bDisplayFPS);
|
|
|
|
bool isRetinaDisplay();
|
|
bool isPaused(void);
|
|
unsigned int getFrames(void);
|
|
|
|
CCSize getWinSize(void);
|
|
CCSize getWinSizeInPixels(void);
|
|
CCSize getDisplaySizeInPixels(void);
|
|
|
|
CCPoint convertToGL(CCPoint obPoint);
|
|
CCPoint convertToUI(CCPoint obPoint);
|
|
|
|
void runWithScene(CCScene *pScene);
|
|
void pushScene(CCScene *pScene);
|
|
void popScene(void);
|
|
void replaceScene(CCScene *pScene);
|
|
|
|
CGFloat getContentScaleFactor(void);
|
|
|
|
int getDeviceOrientation();
|
|
|
|
static CCDirector* sharedDirector(void);
|
|
};
|