axmol/tools/tolua++/CCDirector.pkg

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2011-11-18 20:34:39 +08:00
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);
2011-06-14 14:31:25 +08:00
double getAnimationInterval(void);
2011-06-14 14:31:25 +08:00
bool isDisplayFPS(void);
void setDisplayFPS(bool bDisplayFPS);
2011-06-14 14:31:25 +08:00
bool isRetinaDisplay();
bool isPaused(void);
unsigned int getFrames(void);
2011-06-14 14:31:25 +08:00
CCSize getWinSize(void);
CCSize getWinSizeInPixels(void);
CCSize getDisplaySizeInPixels(void);
2011-06-14 14:31:25 +08:00
CCPoint convertToGL(CCPoint obPoint);
CCPoint convertToUI(CCPoint obPoint);
2011-06-14 14:31:25 +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
CGFloat getContentScaleFactor(void);
2011-06-14 14:31:25 +08:00
2011-11-18 20:34:39 +08:00
int getDeviceOrientation();
static CCDirector* sharedDirector(void);
};