Class Index | File Index

Classes


Class cc.DisplayLinkDirector


Extends cc.Director.

Defined in: CCDirector.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display.

Method Summary
Method Attributes Method Name and Description
 
main loop of director
 
set Animation Interval
 
start Animation
 
stop animation
Methods borrowed from class cc.Director:
addRegionToDirtyRegion, calculateDeltaTime, convertToGL, convertToUI, ctor, drawScene, enableRetinaDisplay, end, getAccelerometer, getActionManager, getAnimationInterval, getContentScaleFactor, getKeyboardDispatcher, getMouseDispatcher, getNotificationNode, getOpenGLView, getProjection, getRunningScene, getScheduler, getSecondsPerFrame, getTotalFrames, getTouchDispatcher, getWinSize, getWinSizeInPixels, getZEye, init, isDisplayStats, isNextDeltaTimeZero, isPaused, isSendCleanupToScene, pause, popScene, popToRootScene, purgeCachedData, purgeDirector, pushScene, rectIsInDirtyRegion, replaceScene, reshapeProjection, resume, runWithScene, setAccelerometer, setActionManager, setAlphaBlending, setContentScaleFactor, setDepthTest, setDisplayStats, setGLDefaultValues, setKeyboardDispatcher, setMouseDispatcher, setNextDeltaTimeZero, setNextScene, setNotificationNode, setOpenGLView, setProjection, setScheduler, setTouchDispatcher, setWatcherCallbackFun, updateContentScaleFactor
Class Detail
cc.DisplayLinkDirector()

DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display.
Features and Limitations:
- Scheduled timers & drawing are synchronizes with the refresh rate of the display
- Only supports animation intervals of 1/60 1/30 & 1/15

Method Detail
mainLoop()
main loop of director

setAnimationInterval(value)
set Animation Interval
Parameters:
{Number} value

startAnimation()
start Animation

stopAnimation()
stop animation

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:50 GMT-0800 (PST)