cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCDirectorDisplayLink Class Reference

#import <CCDirectorIOS.h>

+ Inheritance diagram for CCDirectorDisplayLink:
+ Collaboration diagram for CCDirectorDisplayLink:

List of all members.

Public Member Functions

(void) - mainLoop:

Protected Attributes

CADisplayLink * _displayLink
CFTimeInterval _lastDisplayTime

Detailed Description

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

Features and Limitations:

  • Only available on 3.1+
  • Scheduled timers & drawing are synchronizes with the refresh rate of the display
  • Only supports animation intervals of 1/60 1/30 & 1/15

It is the recommended Director if the SDK is 3.1 or newer


The documentation for this class was generated from the following file: