Class that creates and handle the main Window and manages how and when to execute the Scenes. More...
#include <CCDirector.h>
Public Member Functions | |
CCDirector (void) | |
ctor () | |
virtual | ~CCDirector (void) |
virtual bool | init (void) |
virtual long | getClassTypeInfo () |
CCScene * | getRunningScene (void) |
Get current running Scene. More... | |
var | getRunningScene () |
Get current running Scene. More... | |
local | getRunningScene () |
Get current running Scene. More... | |
double | getAnimationInterval (void) |
Get the FPS value. More... | |
local | getAnimationInterval () |
Get the FPS value. More... | |
virtual void | setAnimationInterval (double dValue)=0 |
Set the FPS value. More... | |
local | setAnimationInterval ( local dValue) |
Set the FPS value. More... | |
bool | isDisplayStats (void) |
Whether or not to display the FPS on the bottom-left corner. More... | |
var | isDisplayStats () |
Whether or not to display the FPS on the bottom-left corner. More... | |
local | isDisplayStats () |
Whether or not to display the FPS on the bottom-left corner. More... | |
void | setDisplayStats (bool bDisplayStats) |
Display the FPS on the bottom-left corner. More... | |
var | setDisplayStats ( var bDisplayStats) |
Display the FPS on the bottom-left corner. More... | |
local | setDisplayStats ( local bDisplayStats) |
Display the FPS on the bottom-left corner. More... | |
float | getSecondsPerFrame () |
seconds per frame More... | |
var | getSecondsPerFrame () |
seconds per frame More... | |
local | getSecondsPerFrame () |
seconds per frame More... | |
CCEGLView * | getOpenGLView (void) |
Get the CCEGLView, where everything is rendered. More... | |
local | getOpenGLView () |
Get the CCEGLView, where everything is rendered. More... | |
void | setOpenGLView (CCEGLView *pobOpenGLView) |
bool | isNextDeltaTimeZero (void) |
var | isNextDeltaTimeZero () |
local | isNextDeltaTimeZero () |
void | setNextDeltaTimeZero (bool bNextDeltaTimeZero) |
var | setNextDeltaTimeZero ( var bNextDeltaTimeZero) |
local | setNextDeltaTimeZero ( local bNextDeltaTimeZero) |
bool | isPaused (void) |
Whether or not the Director is paused. More... | |
var | isPaused () |
Whether or not the Director is paused. More... | |
local | isPaused () |
Whether or not the Director is paused. More... | |
unsigned int | getTotalFrames (void) |
How many frames were called since the director started. More... | |
var | getTotalFrames () |
How many frames were called since the director started. More... | |
local | getTotalFrames () |
How many frames were called since the director started. More... | |
ccDirectorProjection | getProjection (void) |
Sets an OpenGL projection. More... | |
local | getProjection () |
Sets an OpenGL projection. More... | |
void | setProjection (ccDirectorProjection kProjection) |
local | setProjection ( local kProjection) |
void | reshapeProjection (const CCSize &newWindowSize) |
reshape projection matrix when canvas has been change" More... | |
var | reshapeProjection ( var newWindowSize) |
reshape projection matrix when canvas has been change" More... | |
local | reshapeProjection ( local newWindowSize) |
reshape projection matrix when canvas has been change" More... | |
void | setViewport () |
Sets the glViewport. More... | |
var | setViewport () |
Sets the glViewport. More... | |
local | setViewport () |
Sets the glViewport. More... | |
bool | isSendCleanupToScene (void) |
How many frames were called since the director started. More... | |
CCNode * | getNotificationNode () |
This object will be visited after the main scene is visited. More... | |
void | setNotificationNode (CCNode *node) |
var | setNotificationNode ( var node) |
local | setNotificationNode ( local node) |
CCDirectorDelegate * | getDelegate () const |
CCDirector delegate. More... | |
void | setDelegate (CCDirectorDelegate *pDelegate) |
var | setDelegate ( var pDelegate) |
local | setDelegate ( local pDelegate) |
CCSize | getWinSize (void) |
returns the size of the OpenGL view in points. More... | |
var | getWinSize () |
returns the size of the OpenGL view in points. More... | |
local | getWinSize () |
returns the size of the OpenGL view in points. More... | |
CCSize | getWinSizeInPixels (void) |
returns the size of the OpenGL view in pixels. More... | |
var | getWinSizeInPixels () |
returns the size of the OpenGL view in pixels. More... | |
local | getWinSizeInPixels () |
returns the size of the OpenGL view in pixels. More... | |
CCSize | getVisibleSize () |
returns visible size of the OpenGL view in points. More... | |
CCPoint | getVisibleOrigin () |
returns visible origin of the OpenGL view in points. More... | |
var | getVisibleOrigin () |
returns visible origin of the OpenGL view in points. More... | |
local | getVisibleOrigin () |
returns visible origin of the OpenGL view in points. More... | |
CCPoint | convertToGL (const CCPoint &obPoint) |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape) More... | |
var | convertToGL ( var obPoint) |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape) More... | |
local | convertToGL ( local obPoint) |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape) More... | |
CCPoint | convertToUI (const CCPoint &obPoint) |
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor More... | |
var | convertToUI ( var obPoint) |
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor More... | |
local | convertToUI ( local obPoint) |
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor More... | |
float | getZEye (void) |
XXX: missing description. More... | |
var | getZEye () |
XXX: missing description. More... | |
local | getZEye () |
XXX: missing description. More... | |
void | runWithScene (CCScene *pScene) |
Enters the Director's main loop with the given Scene. More... | |
void | pushScene (CCScene *pScene) |
Suspends the execution of the running scene, pushing it on the stack of suspended scenes. More... | |
void | popScene (void) |
Pops out a scene from the queue. More... | |
void | popToRootScene (void) |
Pops out all scenes from the queue until the root scene in the queue. More... | |
void | popToSceneStackLevel (int level) |
Pops out all scenes from the queue until it reaches level . More... | |
void | replaceScene (CCScene *pScene) |
Replaces the running scene with a new one. More... | |
void | end (void) |
Ends the execution, releases the running scene. More... | |
void | pause (void) |
Pauses the running scene. More... | |
void | resume (void) |
Resumes the paused scene The scheduled timers will be activated again. More... | |
virtual void | stopAnimation (void)=0 |
Stops the animation. More... | |
local | stopAnimation () |
Stops the animation. More... | |
virtual void | startAnimation (void)=0 |
The main loop is triggered again. More... | |
local | startAnimation () |
The main loop is triggered again. More... | |
void | drawScene (void) |
Draw the scene. More... | |
var | drawScene () |
Draw the scene. More... | |
local | drawScene () |
Draw the scene. More... | |
void | purgeCachedData (void) |
Removes cached all cocos2d cached data. More... | |
void | setDefaultValues (void) |
sets the default values based on the CCConfiguration info More... | |
var | setDefaultValues () |
sets the default values based on the CCConfiguration info More... | |
local | setDefaultValues () |
sets the default values based on the CCConfiguration info More... | |
void | setGLDefaultValues (void) |
sets the OpenGL default values More... | |
var | setGLDefaultValues () |
sets the OpenGL default values More... | |
local | setGLDefaultValues () |
sets the OpenGL default values More... | |
void | setAlphaBlending (bool bOn) |
enables/disables OpenGL alpha blending More... | |
var | setAlphaBlending ( var bOn) |
enables/disables OpenGL alpha blending More... | |
local | setAlphaBlending ( local bOn) |
enables/disables OpenGL alpha blending More... | |
void | setDepthTest (bool bOn) |
enables/disables OpenGL depth test More... | |
var | setDepthTest ( var bOn) |
enables/disables OpenGL depth test More... | |
local | setDepthTest ( local bOn) |
enables/disables OpenGL depth test More... | |
virtual void | mainLoop (void)=0 |
var | mainLoop () |
local | mainLoop () |
void | setContentScaleFactor (float scaleFactor) |
The size in pixels of the surface. More... | |
var | setContentScaleFactor ( var scaleFactor) |
The size in pixels of the surface. More... | |
local | setContentScaleFactor ( local scaleFactor) |
The size in pixels of the surface. More... | |
float | getContentScaleFactor (void) |
var | getContentScaleFactor () |
local | getContentScaleFactor () |
virtual CCScheduler * | getScheduler (void) |
getScheduler More... | |
var | getScheduler () |
getScheduler More... | |
local | getScheduler () |
getScheduler More... | |
virtual void | setScheduler (CCScheduler *var) |
setScheduler More... | |
virtual CCActionManager * | getActionManager (void) |
getActionManager More... | |
var | getActionManager () |
getActionManager More... | |
local | getActionManager () |
getActionManager More... | |
virtual void | setActionManager (CCActionManager *var) |
setActionManager More... | |
local | setActionManager ( local var) |
setActionManager More... | |
virtual CCTouchDispatcher * | getTouchDispatcher (void) |
getTouchDispatcher More... | |
local | getTouchDispatcher () |
getTouchDispatcher More... | |
virtual void | setTouchDispatcher (CCTouchDispatcher *var) |
setTouchDispatcher More... | |
virtual CCKeypadDispatcher * | getKeypadDispatcher (void) |
getKeypadDispatcher More... | |
local | getKeypadDispatcher () |
getKeypadDispatcher More... | |
virtual void | setKeypadDispatcher (CCKeypadDispatcher *var) |
setKeypadDispatcher More... | |
virtual CCAccelerometer * | getAccelerometer (void) |
virtual void | setAccelerometer (CCAccelerometer *var) |
setAccelerometer More... | |
local | setAccelerometer ( local var) |
setAccelerometer More... | |
virtual float | getDeltaTime (void) |
getDeltaTime More... | |
Public Member Functions inherited from CCObject | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
Public Member Functions inherited from CCCopying | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCDirector * | sharedDirector (void) |
returns a shared instance of the director More... | |
var | getInstance () |
returns a shared instance of the director More... | |
local | sharedDirector () |
returns a shared instance of the director More... | |
Protected Member Functions | |
void | purgeDirector () |
void | setNextScene (void) |
var | setNextScene () |
local | setNextScene () |
void | showStats () |
void | createStatsLabel () |
var | createStatsLabel () |
local | createStatsLabel () |
void | calculateMPF () |
var | calculateMPF () |
local | calculateMPF () |
void | getFPSImageData (unsigned char **datapointer, unsigned int *length) |
var | getFPSImageData ( var datapointer, var length) |
local | getFPSImageData ( local datapointer, local length) |
void | calculateDeltaTime () |
calculates delta time since last time it was called More... | |
var | calculateDeltaTime () |
calculates delta time since last time it was called More... | |
local | calculateDeltaTime () |
calculates delta time since last time it was called More... | |
Friends | |
class | CCEGLViewProtocol |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
unsigned int | m_uID |
int | m_nLuaID |
Class that creates and handle the main Window and manages how and when to execute the Scenes.
The CCDirector is also responsible for:
Since the CCDirector is a singleton, the standard way to use it is by calling: _ CCDirector::sharedDirector()->methodName();
The CCDirector also sets the default OpenGL context:
CCDirector | ( | void | ) |
var ctor | ( | ) |
|
virtual |
|
protected |
calculates delta time since last time it was called
|
protected |
calculates delta time since last time it was called
|
protected |
calculates delta time since last time it was called
|
protected |
|
protected |
|
protected |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape)
var convertToGL | ( | var | obPoint) |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape)
local convertToGL | ( | local | obPoint) |
converts a UIKit coordinate to an OpenGL coordinate Useful to convert (multi) touch coordinates to the current layout (portrait or landscape)
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor
var convertToUI | ( | var | obPoint) |
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor
local convertToUI | ( | local | obPoint) |
converts an OpenGL coordinate to a UIKit coordinate Useful to convert node points to window points for calls such as glScissor
|
protected |
|
protected |
|
protected |
void drawScene | ( | void | ) |
Draw the scene.
This method is called every frame. Don't call it manually.
var drawScene | ( | ) |
Draw the scene.
This method is called every frame. Don't call it manually.
local drawScene | ( | ) |
Draw the scene.
This method is called every frame. Don't call it manually.
void end | ( | void | ) |
Ends the execution, releases the running scene.
It doesn't remove the OpenGL view from its parent. You have to do it manually.
var end | ( | ) |
Ends the execution, releases the running scene.
It doesn't remove the OpenGL view from its parent. You have to do it manually.
local end | ( | ) |
Ends the execution, releases the running scene.
It doesn't remove the OpenGL view from its parent. You have to do it manually.
|
virtual |
|
virtual |
getActionManager
|
virtual |
getActionManager
|
virtual |
getActionManager
|
inline |
Get the FPS value.
|
inline |
Get the FPS value.
|
inline |
Get the FPS value.
|
inlinevirtual |
Implements TypeInfo.
float getContentScaleFactor | ( | void | ) |
var getContentScaleFactor | ( | ) |
local getContentScaleFactor | ( | ) |
CCDirectorDelegate* getDelegate | ( | ) | const |
var getDelegate | ( | ) |
local getDelegate | ( | ) |
|
virtual |
getDeltaTime
|
virtual |
getDeltaTime
|
virtual |
getDeltaTime
|
protected |
|
protected |
|
protected |
|
virtual |
getKeypadDispatcher
|
virtual |
getKeypadDispatcher
|
virtual |
getKeypadDispatcher
CCNode* getNotificationNode | ( | ) |
This object will be visited after the main scene is visited.
This object MUST implement the "visit" selector. Useful to hook a notification object, like CCNotifications (http://github.com/manucorporat/CCNotifications)
var getNotificationNode | ( | ) |
This object will be visited after the main scene is visited.
This object MUST implement the "visit" selector. Useful to hook a notification object, like CCNotifications (http://github.com/manucorporat/CCNotifications)
local getNotificationNode | ( | ) |
This object will be visited after the main scene is visited.
This object MUST implement the "visit" selector. Useful to hook a notification object, like CCNotifications (http://github.com/manucorporat/CCNotifications)
|
inline |
Get the CCEGLView, where everything is rendered.
|
inline |
Sets an OpenGL projection.
|
inline |
Sets an OpenGL projection.
|
inline |
Get current running Scene.
Director can only run one Scene at the time
|
inline |
Get current running Scene.
Director can only run one Scene at the time
|
inline |
Get current running Scene.
Director can only run one Scene at the time
|
virtual |
getScheduler
|
virtual |
getScheduler
|
virtual |
getScheduler
|
inline |
seconds per frame
|
inline |
seconds per frame
|
inline |
seconds per frame
|
inline |
How many frames were called since the director started.
|
inline |
How many frames were called since the director started.
|
inline |
How many frames were called since the director started.
|
virtual |
getTouchDispatcher
|
virtual |
getTouchDispatcher
|
virtual |
getTouchDispatcher
CCPoint getVisibleOrigin | ( | ) |
returns visible origin of the OpenGL view in points.
var getVisibleOrigin | ( | ) |
returns visible origin of the OpenGL view in points.
local getVisibleOrigin | ( | ) |
returns visible origin of the OpenGL view in points.
CCSize getVisibleSize | ( | ) |
returns visible size of the OpenGL view in points.
the value is equal to getWinSize if don't invoke CCEGLView::setDesignResolutionSize()
var getVisibleSize | ( | ) |
returns visible size of the OpenGL view in points.
the value is equal to getWinSize if don't invoke CCEGLView::setDesignResolutionSize()
local getVisibleSize | ( | ) |
returns visible size of the OpenGL view in points.
the value is equal to getWinSize if don't invoke CCEGLView::setDesignResolutionSize()
CCSize getWinSize | ( | void | ) |
returns the size of the OpenGL view in points.
var getWinSize | ( | ) |
returns the size of the OpenGL view in points.
local getWinSize | ( | ) |
returns the size of the OpenGL view in points.
CCSize getWinSizeInPixels | ( | void | ) |
returns the size of the OpenGL view in pixels.
var getWinSizeInPixels | ( | ) |
returns the size of the OpenGL view in pixels.
local getWinSizeInPixels | ( | ) |
returns the size of the OpenGL view in pixels.
float getZEye | ( | void | ) |
XXX: missing description.
var getZEye | ( | ) |
XXX: missing description.
local getZEye | ( | ) |
XXX: missing description.
|
virtual |
|
virtual |
|
virtual |
|
inline |
Whether or not to display the FPS on the bottom-left corner.
|
inline |
Whether or not to display the FPS on the bottom-left corner.
|
inline |
Whether or not to display the FPS on the bottom-left corner.
|
inline |
|
inline |
|
inline |
|
inline |
Whether or not the Director is paused.
|
inline |
Whether or not the Director is paused.
|
inline |
Whether or not the Director is paused.
|
inline |
How many frames were called since the director started.
Whether or not the replaced scene will receive the cleanup message. If the new scene is pushed, then the old scene won't receive the "cleanup" message. If the new scene replaces the old one, the it will receive the "cleanup" message.
|
inline |
How many frames were called since the director started.
Whether or not the replaced scene will receive the cleanup message. If the new scene is pushed, then the old scene won't receive the "cleanup" message. If the new scene replaces the old one, the it will receive the "cleanup" message.
|
inline |
How many frames were called since the director started.
Whether or not the replaced scene will receive the cleanup message. If the new scene is pushed, then the old scene won't receive the "cleanup" message. If the new scene replaces the old one, the it will receive the "cleanup" message.
|
pure virtual |
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Implemented in CCDisplayLinkDirector.
void pause | ( | void | ) |
Pauses the running scene.
The running scene will be drawed but all scheduled timers will be paused While paused, the draw rate will be 4 FPS to reduce CPU consumption
var pause | ( | ) |
Pauses the running scene.
The running scene will be drawed but all scheduled timers will be paused While paused, the draw rate will be 4 FPS to reduce CPU consumption
local pause | ( | ) |
Pauses the running scene.
The running scene will be drawed but all scheduled timers will be paused While paused, the draw rate will be 4 FPS to reduce CPU consumption
void popScene | ( | void | ) |
Pops out a scene from the queue.
This scene will replace the running one. The running scene will be deleted. If there are no more scenes in the stack the execution is terminated. ONLY call it if there is a running scene.
var popScene | ( | ) |
Pops out a scene from the queue.
This scene will replace the running one. The running scene will be deleted. If there are no more scenes in the stack the execution is terminated. ONLY call it if there is a running scene.
local popScene | ( | ) |
Pops out a scene from the queue.
This scene will replace the running one. The running scene will be deleted. If there are no more scenes in the stack the execution is terminated. ONLY call it if there is a running scene.
void popToRootScene | ( | void | ) |
Pops out all scenes from the queue until the root scene in the queue.
This scene will replace the running one. Internally it will call popToSceneStackLevel(1)
var popToRootScene | ( | ) |
Pops out all scenes from the queue until the root scene in the queue.
This scene will replace the running one. Internally it will call popToSceneStackLevel(1)
local popToRootScene | ( | ) |
Pops out all scenes from the queue until the root scene in the queue.
This scene will replace the running one. Internally it will call popToSceneStackLevel(1)
void popToSceneStackLevel | ( | int | level) |
Pops out all scenes from the queue until it reaches level
.
If level is 0, it will end the director. If level is 1, it will pop all scenes until it reaches to root scene. If level is <= than the current stack level, it won't do anything.
var popToSceneStackLevel | ( | var | level) |
Pops out all scenes from the queue until it reaches level
.
If level is 0, it will end the director. If level is 1, it will pop all scenes until it reaches to root scene. If level is <= than the current stack level, it won't do anything.
local popToSceneStackLevel | ( | local | level) |
Pops out all scenes from the queue until it reaches level
.
If level is 0, it will end the director. If level is 1, it will pop all scenes until it reaches to root scene. If level is <= than the current stack level, it won't do anything.
void purgeCachedData | ( | void | ) |
Removes cached all cocos2d cached data.
It will purge the CCTextureCache, CCSpriteFrameCache, CCLabelBMFont cache
var purgeCachedData | ( | ) |
Removes cached all cocos2d cached data.
It will purge the CCTextureCache, CCSpriteFrameCache, CCLabelBMFont cache
local purgeCachedData | ( | ) |
Removes cached all cocos2d cached data.
It will purge the CCTextureCache, CCSpriteFrameCache, CCLabelBMFont cache
|
protected |
|
protected |
|
protected |
void pushScene | ( | CCScene * | pScene) |
Suspends the execution of the running scene, pushing it on the stack of suspended scenes.
The new scene will be executed. Try to avoid big stacks of pushed scenes to reduce memory allocation. ONLY call it if there is a running scene.
var pushScene | ( | var | pScene) |
Suspends the execution of the running scene, pushing it on the stack of suspended scenes.
The new scene will be executed. Try to avoid big stacks of pushed scenes to reduce memory allocation. ONLY call it if there is a running scene.
local pushScene | ( | local | pScene) |
Suspends the execution of the running scene, pushing it on the stack of suspended scenes.
The new scene will be executed. Try to avoid big stacks of pushed scenes to reduce memory allocation. ONLY call it if there is a running scene.
void replaceScene | ( | CCScene * | pScene) |
Replaces the running scene with a new one.
The running scene is terminated. ONLY call it if there is a running scene.
var replaceScene | ( | var | pScene) |
Replaces the running scene with a new one.
The running scene is terminated. ONLY call it if there is a running scene.
local replaceScene | ( | local | pScene) |
Replaces the running scene with a new one.
The running scene is terminated. ONLY call it if there is a running scene.
void reshapeProjection | ( | const CCSize & | newWindowSize) |
reshape projection matrix when canvas has been change"
var reshapeProjection | ( | var | newWindowSize) |
reshape projection matrix when canvas has been change"
local reshapeProjection | ( | local | newWindowSize) |
reshape projection matrix when canvas has been change"
void resume | ( | void | ) |
Resumes the paused scene The scheduled timers will be activated again.
The "delta time" will be 0 (as if the game wasn't paused)
var resume | ( | ) |
Resumes the paused scene The scheduled timers will be activated again.
The "delta time" will be 0 (as if the game wasn't paused)
local resume | ( | ) |
Resumes the paused scene The scheduled timers will be activated again.
The "delta time" will be 0 (as if the game wasn't paused)
void runWithScene | ( | CCScene * | pScene) |
Enters the Director's main loop with the given Scene.
Call it to run only your FIRST scene. Don't call it if there is already a running scene.
It will call pushScene: and then it will call startAnimation
var runWithScene | ( | var | pScene) |
Enters the Director's main loop with the given Scene.
Call it to run only your FIRST scene. Don't call it if there is already a running scene.
It will call pushScene: and then it will call startAnimation
local runWithScene | ( | local | pScene) |
Enters the Director's main loop with the given Scene.
Call it to run only your FIRST scene. Don't call it if there is already a running scene.
It will call pushScene: and then it will call startAnimation
|
virtual |
setAccelerometer
|
virtual |
setAccelerometer
|
virtual |
setAccelerometer
|
virtual |
setActionManager
|
virtual |
setActionManager
|
virtual |
setActionManager
void setAlphaBlending | ( | bool | bOn) |
enables/disables OpenGL alpha blending
var setAlphaBlending | ( | var | bOn) |
enables/disables OpenGL alpha blending
local setAlphaBlending | ( | local | bOn) |
enables/disables OpenGL alpha blending
|
pure virtual |
Set the FPS value.
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Set the FPS value.
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Set the FPS value.
Implemented in CCDisplayLinkDirector.
void setContentScaleFactor | ( | float | scaleFactor) |
The size in pixels of the surface.
It could be different than the screen size. High-res devices might have a higher surface size than the screen size. Only available when compiled using SDK >= 4.0.
var setContentScaleFactor | ( | var | scaleFactor) |
The size in pixels of the surface.
It could be different than the screen size. High-res devices might have a higher surface size than the screen size. Only available when compiled using SDK >= 4.0.
local setContentScaleFactor | ( | local | scaleFactor) |
The size in pixels of the surface.
It could be different than the screen size. High-res devices might have a higher surface size than the screen size. Only available when compiled using SDK >= 4.0.
void setDefaultValues | ( | void | ) |
sets the default values based on the CCConfiguration info
var setDefaultValues | ( | ) |
sets the default values based on the CCConfiguration info
local setDefaultValues | ( | ) |
sets the default values based on the CCConfiguration info
void setDelegate | ( | CCDirectorDelegate * | pDelegate) |
var setDelegate | ( | var | pDelegate) |
local setDelegate | ( | local | pDelegate) |
void setDepthTest | ( | bool | bOn) |
enables/disables OpenGL depth test
var setDepthTest | ( | var | bOn) |
enables/disables OpenGL depth test
local setDepthTest | ( | local | bOn) |
enables/disables OpenGL depth test
|
inline |
Display the FPS on the bottom-left corner.
|
inline |
Display the FPS on the bottom-left corner.
|
inline |
Display the FPS on the bottom-left corner.
void setGLDefaultValues | ( | void | ) |
sets the OpenGL default values
var setGLDefaultValues | ( | ) |
sets the OpenGL default values
local setGLDefaultValues | ( | ) |
sets the OpenGL default values
|
virtual |
setKeypadDispatcher
|
virtual |
setKeypadDispatcher
|
virtual |
setKeypadDispatcher
void setNextDeltaTimeZero | ( | bool | bNextDeltaTimeZero) |
var setNextDeltaTimeZero | ( | var | bNextDeltaTimeZero) |
local setNextDeltaTimeZero | ( | local | bNextDeltaTimeZero) |
|
protected |
|
protected |
|
protected |
void setNotificationNode | ( | CCNode * | node) |
var setNotificationNode | ( | var | node) |
local setNotificationNode | ( | local | node) |
void setOpenGLView | ( | CCEGLView * | pobOpenGLView) |
var setOpenGLView | ( | var | pobOpenGLView) |
local setOpenGLView | ( | local | pobOpenGLView) |
void setProjection | ( | ccDirectorProjection | kProjection) |
var setProjection | ( | var | kProjection) |
local setProjection | ( | local | kProjection) |
|
virtual |
setScheduler
|
virtual |
setScheduler
|
virtual |
setScheduler
|
virtual |
setTouchDispatcher
|
virtual |
setTouchDispatcher
|
virtual |
setTouchDispatcher
void setViewport | ( | ) |
Sets the glViewport.
var setViewport | ( | ) |
Sets the glViewport.
local setViewport | ( | ) |
Sets the glViewport.
|
static |
returns a shared instance of the director
|
static |
returns a shared instance of the director
|
static |
returns a shared instance of the director
|
protected |
|
protected |
|
protected |
|
pure virtual |
The main loop is triggered again.
Call this function only if [stopAnimation] was called earlier
Implemented in CCDisplayLinkDirector.
|
pure virtual |
The main loop is triggered again.
Call this function only if [stopAnimation] was called earlier
Implemented in CCDisplayLinkDirector.
|
pure virtual |
The main loop is triggered again.
Call this function only if [stopAnimation] was called earlier
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Stops the animation.
Nothing will be drawn. The main loop won't be triggered anymore. If you don't want to pause your animation call [pause] instead.
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Stops the animation.
Nothing will be drawn. The main loop won't be triggered anymore. If you don't want to pause your animation call [pause] instead.
Implemented in CCDisplayLinkDirector.
|
pure virtual |
Stops the animation.
Nothing will be drawn. The main loop won't be triggered anymore. If you don't want to pause your animation call [pause] instead.
Implemented in CCDisplayLinkDirector.
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Whether or not the Director is paused.
|
protected |
Whether or not the Director is paused.
|
protected |
Whether or not the Director is paused.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
CCAccelerometer associated with this director.
|
protected |
CCAccelerometer associated with this director.
|
protected |
CCAccelerometer associated with this director.
|
protected |
CCActionManager associated with this director.
|
protected |
CCActionManager associated with this director.
|
protected |
CCActionManager associated with this director.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
CCKeypadDispatcher associated with this director.
|
protected |
CCKeypadDispatcher associated with this director.
|
protected |
CCKeypadDispatcher associated with this director.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
CCScheduler associated with this director.
|
protected |
CCScheduler associated with this director.
|
protected |
CCScheduler associated with this director.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
CCTouchDispatcher associated with this director.
|
protected |
CCTouchDispatcher associated with this director.
|
protected |
CCTouchDispatcher associated with this director.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |