Inherits from NSObject
Declared in CCConfiguration.h

Overview

CCConfiguration contains some openGL variables

Tasks

Other Methods

Other Methods

Properties

OSVersion

returns the OS version.

- On iOS devices it returns the firmware version.
- On Mac returns the OS version
@property (nonatomic, readonly) unsigned int OSVersion

Availability

Declared In

CCConfiguration.h

loadingBundle

the bundle we load everything from

@property (nonatomic, readwrite, assign) NSBundle *loadingBundle

Declared In

CCConfiguration.h

maxModelviewStackDepth

OpenGL Max Modelview Stack Depth.

@property (nonatomic, readonly) GLint maxModelviewStackDepth

Declared In

CCConfiguration.h

maxTextureSize

OpenGL Max texture size.

@property (nonatomic, readonly) GLint maxTextureSize

Declared In

CCConfiguration.h

maxTextureUnits

returns the maximum texture units

@property (nonatomic, readonly) GLint maxTextureUnits

Availability

Declared In

CCConfiguration.h

supportsBGRA8888

Whether or not BGRA8888 textures are supported.

@property (nonatomic, readonly) BOOL supportsBGRA8888

Availability

Declared In

CCConfiguration.h

supportsDiscardFramebuffer

Whether or not glDiscardFramebufferEXT is supported

@property (nonatomic, readonly) BOOL supportsDiscardFramebuffer

Availability

Declared In

CCConfiguration.h

supportsNPOT

Whether or not the GPU supports NPOT (Non Power Of Two) textures. OpenGL ES 2.0 already supports NPOT (iOS).

@property (nonatomic, readonly) BOOL supportsNPOT

Availability

Declared In

CCConfiguration.h

supportsPVRTC

Whether or not PVR Texture Compressed is supported

@property (nonatomic, readonly) BOOL supportsPVRTC

Declared In

CCConfiguration.h

supportsShareableVAO

Whether or not shareable VAOs are supported.

@property (nonatomic, readonly) BOOL supportsShareableVAO

Availability

Declared In

CCConfiguration.h

Class Methods

sharedConfiguration

returns a shared instance of the CCConfiguration

+ (CCConfiguration *)sharedConfiguration

Declared In

CCConfiguration.h

Instance Methods

checkForGLExtension:

returns whether or not an OpenGL is supported

- (BOOL)checkForGLExtension:(NSString *)searchName

Declared In

CCConfiguration.h

dumpInfo

dumps in the console the CCConfiguration information.

- (void)dumpInfo

Availability

Declared In

CCConfiguration.h

runningDevice

returns the current device

- (NSInteger)runningDevice

Declared In

CCConfiguration.h