![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCConfiguration.h>
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 |
CCConfiguration contains some openGL variables
- (BOOL) checkForGLExtension: | (NSString *) | searchName |
returns whether or not an OpenGL is supported
- (void) dumpInfo |
dumps in the console the CCConfiguration information.
- (NSInteger) runningDevice |
returns the current device
returns a shared instance of the CCConfiguration
- (GLint) maxTextureSize [read, assign] |
OpenGL Max texture size.
- (GLint) maxTextureUnits [read, assign] |
returns the maximum texture units
- (unsigned int) OSVersion [read, assign] |
returns the OS version.
- (BOOL) supportsBGRA8888 [read, assign] |
Whether or not BGRA8888 textures are supported.
- (BOOL) supportsDiscardFramebuffer [read, assign] |
Whether or not glDiscardFramebufferEXT is supported
- (BOOL) supportsNPOT [read, assign] |
Whether or not the GPU supports NPOT (Non Power Of Two) textures. OpenGL ES 2.0 already supports NPOT (iOS).
- (BOOL) supportsPVRTC [read, assign] |
Whether or not PVR Texture Compressed is supported
- (BOOL) supportsShareableVAO [read, assign] |
Whether or not shareable VAOs are supported.