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

#import <CCConfiguration.h>

List of all members.

Public Member Functions

(BOOL) - checkForGLExtension:
(NSInteger) - runningDevice
(void) - dumpInfo

Static Public Member Functions

(CCConfiguration *) + sharedConfiguration

Protected Attributes

BOOL _openGLInitialized
GLint _maxTextureSize
BOOL _supportsPVRTC
BOOL _supportsNPOT
BOOL _supportsBGRA8888
BOOL _supportsDiscardFramebuffer
BOOL _supportsShareableVAO
GLint _maxSamplesAllowed
GLint _maxTextureUnits
unsigned int _OSVersion

Properties

GLint maxTextureSize
GLint maxTextureUnits
BOOL supportsNPOT
BOOL supportsPVRTC
BOOL supportsBGRA8888
BOOL supportsDiscardFramebuffer
BOOL supportsShareableVAO
unsigned int OSVersion

Detailed Description

CCConfiguration contains some openGL variables

Since:
v0.99.0

Member Function Documentation

- (BOOL) checkForGLExtension: (NSString *)  searchName

returns whether or not an OpenGL is supported

- (void) dumpInfo

dumps in the console the CCConfiguration information.

Since:
v2.1
- (NSInteger) runningDevice

returns the current device

returns a shared instance of the CCConfiguration


Property Documentation

- (GLint) maxTextureSize [read, assign]

OpenGL Max texture size.

- (GLint) maxTextureUnits [read, assign]

returns the maximum texture units

Since:
v2.0.0
- (unsigned int) OSVersion [read, assign]

returns the OS version.

  • On iOS devices it returns the firmware version.
  • On Mac returns the OS version
Since:
v0.99.5
- (BOOL) supportsBGRA8888 [read, assign]

Whether or not BGRA8888 textures are supported.

Since:
v0.99.2
- (BOOL) supportsDiscardFramebuffer [read, assign]

Whether or not glDiscardFramebufferEXT is supported

Since:
v0.99.2
- (BOOL) supportsNPOT [read, assign]

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

Since:
v0.99.2
- (BOOL) supportsPVRTC [read, assign]

Whether or not PVR Texture Compressed is supported

- (BOOL) supportsShareableVAO [read, assign]

Whether or not shareable VAOs are supported.

Since:
v2.0.0

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