CCConfiguration contains some openGL variables
Class CCConfiguration
#include <Geode/cocos/CCConfiguration.h>
Examples0
Public static methods2
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
returns the maximum texture units
boolsupportsNPOT()const
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
Whether or not BGRA8888 textures are supported.
boolsupportsDiscardFramebuffer()const
Whether or not glDiscardFramebufferEXT is supported
boolcheckForGLExtension(gd::stringconst&searchName)const
returns whether or not an OpenGL is supported
boolinit()
charconst*getCString(charconst*key,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(charconst*key,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(charconst*key,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(charconst*key)const
returns the value of a given key as a double
voidsetObject(charconst*key,cocos2d::CCObject*value)
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.