axmol/tools/tolua++/CCDirector.pkg

55 lines
1.6 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);
void setAnimationInterval(double dValue);
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);
bool isSendCleanupToScene(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
float getZEye(void);
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
void pause(void);
void resume(void);
2011-06-14 14:31:25 +08:00
void drawScene(void);
void purgeCachedData(void);
2011-06-14 14:31:25 +08:00
void setContentScaleFactor(CGFloat scaleFactor);
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);
};