CCDirector(CC3) Category Reference
Declared in | CC3CC2Extensions.h |
Tasks
-
ccGLView
property -
– frameInterval
-
– frameRate
-
– hasScene
-
displayLinkTime
property -
– setDisplayStats:
-
view
property -
actionManager
property -
touchDispatcher
property -
scheduler
property -
– setRunLoopCommon:
-
– deviceOrientation
-
contentScaleFactor
property -
designSize
property
Properties
actionManager
Returns the CCActionManager sharedManager singleton.
@property (nonatomic, readonly) CCActionManager *actionManager
Declared In
CC3CC2Extensions.h
ccGLView
The OpenGL ES view, cast as the correct class.
@property (nonatomic, retain) CCGLView *ccGLView
Declared In
CC3CC2Extensions.h
contentScaleFactor
Content scaling factor. Does nothing, as content scaling factor only applies to CCDirectorIOS.
@property (nonatomic, assign) CGFloat contentScaleFactor
Declared In
CC3CC2Extensions.h
designSize
The size of the view.
@property (nonatomic, readonly) CGSize designSize
Declared In
CC3CC2Extensions.h
displayLinkTime
Returns the timestamp of this director as derived from the display link that provide animation.
@property (nonatomic, readonly) NSTimeInterval displayLinkTime
Declared In
CC3CC2Extensions.h
scheduler
Returns the CCScheduler sharedScheduler singleton.
@property (nonatomic, readonly) CCScheduler *scheduler
Declared In
CC3CC2Extensions.h
Instance Methods
deviceOrientation
Adds support above Cocos2D 1.x for legacy code that looks for device orientation under Cocos2D 1.x.
- (UIDeviceOrientation)deviceOrientation
Discussion
Always returns UIDeviceOrientationPortrait.
Declared In
CC3CC2Extensions.h
frameInterval
Returns the time interval in seconds between the current render frame and the previous frame.
- (CCTime)frameInterval
Declared In
CC3CC2Extensions.h
frameRate
Returns the current rendering perfromance in average frames per second.
- (CCTime)frameRate
Declared In
CC3CC2Extensions.h
hasScene
Returns whether this director has a CCScene either running or queued up.
- (BOOL)hasScene
Declared In
CC3CC2Extensions.h