DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. More...
#include <CCDirector.h>
Public Member Functions | |
CCDisplayLinkDirector (void) | |
virtual void | mainLoop (void) |
virtual void | setAnimationInterval (double dValue) |
Set the FPS value. More... | |
virtual void | startAnimation (void) |
The main loop is triggered again. More... | |
virtual void | stopAnimation () |
Stops the animation. More... | |
![]() | |
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... | |
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... | |
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... | |
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... | |
![]() | |
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) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
![]() | |
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... | |
DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display.
Features and Limitations:
|
inline |
|
virtual |
Implements CCDirector.
|
virtual |
Set the FPS value.
Implements CCDirector.
|
virtual |
The main loop is triggered again.
Call this function only if [stopAnimation] was called earlier
Implements CCDirector.
|
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.
Implements CCDirector.
|
protected |