typedef enum { kCCDirectorProjection2D, kCCDirectorProjection3D, kCCDirectorProjectionCustom, kCCDirectorProjectionDefault = kCCDirectorProjection3D, } ccDirectorProjection; class CCDirector : public CCObject { CCScene* getRunningScene(void); double getAnimationInterval(void); bool isDisplayStats(void); void setDisplayStats(bool bDisplayStats); 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 popToRootScene(); void replaceScene(CCScene *pScene); void end @ endToLua (); float getContentScaleFactor(void); void setContentScaleFactor(float scaleFactor); 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); };