Declared in CC3CC2Extensions.h

Overview

Extension category to support Cocos3D functionality.

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

touchDispatcher

Returns the CCTouchDispatcher sharedDispatcher singleton.

@property (nonatomic, readonly) CCTouchDispatcher *touchDispatcher

Declared In

CC3CC2Extensions.h

view

Consistent naming alias for the OpenGL ES view.

@property (nonatomic, retain) CCGLView *view

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

setDisplayStats:

Alias to setDisplayFPS:

- (void)setDisplayStats:(BOOL)displayFPS

Declared In

CC3CC2Extensions.h

setRunLoopCommon:

Added for runtime compatibility with Cocos2D version 1.1 features.

- (void)setRunLoopCommon:(BOOL)common

Discussion

In Cocos2D versions prior to 1.1, this method does nothing.

Declared In

CC3CC2Extensions.h