Public Member Functions | Static Public Member Functions | Properties

CCConfiguration Class Reference

#import <CCConfiguration.h>

List of all members.

Public Member Functions

(BOOL) - checkForGLExtension:

Static Public Member Functions

(CCConfiguration *) + sharedConfiguration

Properties

NSBundle * loadingBundle
GLint maxTextureSize
GLint maxModelviewStackDepth
BOOL supportsNPOT
BOOL supportsPVRTC
BOOL supportsBGRA8888
BOOL supportsDiscardFramebuffer

Detailed Description

CCConfiguration contains some openGL variables

Since:
v0.99.0

Definition at line 33 of file CCConfiguration.h.


Member Function Documentation

- (BOOL) checkForGLExtension: (NSString *)  searchName  

returns whether or not an OpenGL is supported

+ (CCConfiguration *) sharedConfiguration  

returns a shared instance of the CCConfiguration


Property Documentation

- (NSBundle*) loadingBundle [read, write, assign]

the bundle we load everything from

Definition at line 46 of file CCConfiguration.h.

- (GLint) maxModelviewStackDepth [read, assign]

OpenGL Max Modelview Stack Depth.

Definition at line 52 of file CCConfiguration.h.

- (GLint) maxTextureSize [read, assign]

OpenGL Max texture size.

Definition at line 49 of file CCConfiguration.h.

- (BOOL) supportsBGRA8888 [read, assign]

Whether or not BGRA8888 textures are supported.

Since:
v0.99.2

Definition at line 70 of file CCConfiguration.h.

- (BOOL) supportsDiscardFramebuffer [read, assign]

Whether or not glDiscardFramebufferEXT is supported

Since:
v0.99.2

Definition at line 76 of file CCConfiguration.h.

- (BOOL) supportsNPOT [read, assign]

Whether or not the GPU supports NPOT (Non Power Of Two) textures. NPOT textures have the following limitations:

  • They can't have mipmaps
  • They only accept GL_CLAMP_TO_EDGE in GL_TEXTURE_WRAP_{S,T}
Since:
v0.99.2

Definition at line 61 of file CCConfiguration.h.

- (BOOL) supportsPVRTC [read, assign]

Whether or not PVR Texture Compressed is supported

Definition at line 64 of file CCConfiguration.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1