Declared in CC3IOSExtensions.h

Overview

Extension category to support Cocos3D functionality.

Class Methods

clearCurrentContext

Clears the GL context for the currently running thread.

+ (void)clearCurrentContext

Declared In

CC3IOSExtensions.h

Instance Methods

asSharedContext

Returns a GL context that shares GL content with this context.

- (CC3GLContext *)asSharedContext

Discussion

The returned context can be used wherever a separate GL context that shares common GL content with this is required. Typically, this method is used to retrieve a secondary GL context to be used for background loading on a different thread.

Declared In

CC3IOSExtensions.h

ensureCurrentContext

Ensures this GL context is the GL context for the currently running thread.

- (void)ensureCurrentContext

Declared In

CC3IOSExtensions.h