mirror of https://github.com/axmolengine/axmol.git
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
|
|
typedef enum {
|
|
kCCDirectorProjection2D,
|
|
kCCDirectorProjection3D,
|
|
kCCDirectorProjectionCustom,
|
|
kCCDirectorProjectionDefault = kCCDirectorProjection3D,
|
|
} ccDirectorProjection;
|
|
|
|
class CCDirector : public CCObject
|
|
{
|
|
CCScene* getRunningScene(void);
|
|
|
|
double getAnimationInterval(void);
|
|
|
|
bool isDisplayStats(void);
|
|
void setDisplayStats(bool bDisplayFPS);
|
|
|
|
bool isPaused(void);
|
|
unsigned int getTotalFrames(void);
|
|
|
|
CCEGLViewProtocol* getOpenGLView(void);
|
|
|
|
CCSize getWinSize(void);
|
|
CCSize getWinSizeInPixels(void);
|
|
|
|
CCPoint convertToGL(CCPoint obPoint);
|
|
CCPoint convertToUI(CCPoint obPoint);
|
|
|
|
void pause();
|
|
void resume();
|
|
void purgeCachedData(void);
|
|
|
|
void runWithScene(CCScene *pScene);
|
|
void pushScene(CCScene *pScene);
|
|
void popScene(void);
|
|
void replaceScene(CCScene *pScene);
|
|
void end @ endToLua ();
|
|
|
|
float getContentScaleFactor(void);
|
|
|
|
CCScheduler* getScheduler();
|
|
CCActionManager* getActionManager();
|
|
CCTouchDispatcher* getTouchDispatcher();
|
|
CCKeypadDispatcher* getKeypadDispatcher();
|
|
CCAccelerometer* getAccelerometer();
|
|
|
|
void setDepthTest(bool var);
|
|
void setProjection(ccDirectorProjection kProjection);
|
|
ccDirectorProjection getProjection(void);
|
|
|
|
CCNode* getNotificationNode();
|
|
void setNotificationNode(CCNode *node);
|
|
|
|
float getZEye(void);
|
|
CCSize getVisibleSize();
|
|
CCPoint getVisibleOrigin();
|
|
|
|
static CCDirector* sharedDirector(void);
|
|
};
|