Class cc.DisplayLinkDirector
Extends
cc.Director.
Defined in: CCDirector.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display. |
Method Attributes | Method Name and Description |
---|---|
mainLoop()
main loop of director
|
|
setAnimationInterval(value)
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