Class CCConfiguration

#include <Geode/cocos/CCConfiguration.h>
classCCConfiguration:publiccocos2d::CCObject{ ... }

Since v0.99.0

CCConfiguration contains some openGL variables

Examples0
Public static methods2
staticcocos2d::CCConfiguration*sharedConfiguration()

returns a shared instance of CCConfiguration

staticvoidpurgeConfiguration()

purge the shared instance of CCConfiguration

Public member functions18
intgetMaxTextureSize()const

OpenGL Max texture size.

intgetMaxModelviewStackDepth()const

OpenGL Max Modelview Stack Depth.

intgetMaxTextureUnits()const

Since v2.0.0

returns the maximum texture units

boolsupportsNPOT()const

Since v0.99.2

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

boolsupportsPVRTC()const

Whether or not PVR Texture Compressed is supported

boolsupportsBGRA8888()const

Since v0.99.2

Whether or not BGRA8888 textures are supported.

boolsupportsDiscardFramebuffer()const

Since v0.99.2

Whether or not glDiscardFramebufferEXT is supported

boolsupportsShareableVAO()const

Since v2.0.0

Whether or not shareable VAOs are supported.

boolcheckForGLExtension()const

returns whether or not an OpenGL is supported

boolinit()
No description provided
charconst*getCString(,
charconst*default_value
)
const

returns the value of a given key as a string. If the key is not found, it will return the default value

boolgetBool(,
booldefault_value
)
const

returns the value of a given key as a boolean. If the key is not found, it will return the default value

doublegetNumber(,
doubledefault_value
)
const

returns the value of a given key as a double. If the key is not found, it will return the default value

cocos2d::CCObject*getObject()const

returns the value of a given key as a double

voidsetObject(,)

sets a new key/value pair in the configuration dictionary

voiddumpInfo()const

dumps the current configuration on the console

voidgatherGPUInfo()

gathers OpenGL / GPU information

voidloadConfigFile(
charconst*filename
)

Loads a config file. If the keys are already present, then they are going to be replaced. Otherwise the new keys are added.

Fields0
Protected member functions0
Protected fields11
_::GLintm_nMaxTextureSize
;
No description provided
_::GLintm_nMaxModelviewStackDepth
;
No description provided
boolm_bSupportsPVRTC
;
No description provided
boolm_bSupportsNPOT
;
No description provided
boolm_bSupportsBGRA8888
;
No description provided
boolm_bSupportsDiscardFramebuffer
;
No description provided
boolm_bSupportsShareableVAO
;
No description provided
_::GLintm_nMaxSamplesAllowed
;
No description provided
_::GLintm_nMaxTextureUnits
;
No description provided
char*m_pGlExtensions
;
No description provided
;
No description provided