cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
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

GLint maxTextureSize
GLint maxModelviewStackDepth
BOOL supportsNPOT
BOOL supportsPVRTC
BOOL supportsBGRA8888
BOOL supportsDiscardFramebuffer
unsigned int OSVersion

Detailed Description

CCConfiguration contains some openGL variables

Since:
v0.99.0

Definition at line 58 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

- (GLint) maxModelviewStackDepth [read, assign]

OpenGL Max Modelview Stack Depth.

Definition at line 74 of file CCConfiguration.h.

- (GLint) maxTextureSize [read, assign]

OpenGL Max texture size.

Definition at line 71 of file CCConfiguration.h.

- (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

Definition at line 106 of file CCConfiguration.h.

- (BOOL) supportsBGRA8888 [read, assign]

Whether or not BGRA8888 textures are supported.

Since:
v0.99.2

Definition at line 92 of file CCConfiguration.h.

- (BOOL) supportsDiscardFramebuffer [read, assign]

Whether or not glDiscardFramebufferEXT is supported

Since:
v0.99.2

Definition at line 98 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 83 of file CCConfiguration.h.

- (BOOL) supportsPVRTC [read, assign]

Whether or not PVR Texture Compressed is supported

Definition at line 86 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 API Reference - Generated using Doxygen 1.7.4