Configuration contains some openGL variables. More...
#include <CCConfiguration.h>
Public Member Functions | |
| virtual | ~Configuration () |
| int | getMaxTextureSize () const |
| OpenGL Max texture size. More... | |
| var | getMaxTextureSize () |
| OpenGL Max texture size. More... | |
| local | getMaxTextureSize () |
| OpenGL Max texture size. More... | |
| int | getMaxModelviewStackDepth () const |
| OpenGL Max Modelview Stack Depth. More... | |
| int | getMaxTextureUnits () const |
| returns the maximum texture units More... | |
| bool | supportsNPOT () const |
| Whether or not the GPU supports NPOT (Non Power Of Two) textures. More... | |
| bool | supportsPVRTC () const |
| Whether or not PVR Texture Compressed is supported. More... | |
| bool | supportsETC () const |
| Whether or not ETC Texture Compressed is supported. More... | |
| bool | supportsS3TC () const |
| Whether or not S3TC Texture Compressed is supported. More... | |
| bool | supportsATITC () const |
| Whether or not ATITC Texture Compressed is supported. More... | |
| bool | supportsBGRA8888 () const |
| Whether or not BGRA8888 textures are supported. More... | |
| var | supportsBGRA8888 () |
| Whether or not BGRA8888 textures are supported. More... | |
| local | supportsBGRA8888 () |
| Whether or not BGRA8888 textures are supported. More... | |
| bool | supportsDiscardFramebuffer () const |
| Whether or not glDiscardFramebufferEXT is supported. More... | |
| bool | supportsShareableVAO () const |
| Whether or not shareable VAOs are supported. More... | |
| bool | checkForGLExtension (const std::string &searchName) const |
| returns whether or not an OpenGL is supported More... | |
| var | checkForGLExtension ( var searchName) |
| returns whether or not an OpenGL is supported More... | |
| local | checkForGLExtension ( local searchName) |
| returns whether or not an OpenGL is supported More... | |
| bool | init () |
| const char * | getCString (const char *key, const char *defaultValue=nullptr) const |
| returns the value of a given key as a string. More... | |
| local | getCString ( local key, local nullptr) |
| returns the value of a given key as a string. More... | |
| bool | getBool (const char *key, bool defaultValue=false) const |
| returns the value of a given key as a boolean. More... | |
| double | getNumber (const char *key, double defaultValue=0.0) const |
| returns the value of a given key as a double. More... | |
| Object * | getObject (const char *key) const |
| returns the value of a given key as a double More... | |
| void | setObject (const char *key, Object *value) |
| sets a new key/value pair in the configuration dictionary More... | |
| void | dumpInfo () const |
| dumps the current configuration on the console More... | |
| void | gatherGPUInfo () |
| gathers OpenGL / GPU information More... | |
| void | loadConfigFile (const char *filename) |
| Loads a config file. More... | |
Public Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Static Public Member Functions | |
| static Configuration * | getInstance () |
| returns a shared instance of Configuration More... | |
| local | getInstance () |
| returns a shared instance of Configuration More... | |
| static void | destroyInstance () |
| purge the shared instance of Configuration More... | |
| var | destroyInstance () |
| purge the shared instance of Configuration More... | |
| local | destroyInstance () |
| purge the shared instance of Configuration More... | |
| static CC_DEPRECATED_ATTRIBUTE Configuration * | sharedConfiguration () |
| local | sharedConfiguration () |
| static CC_DEPRECATED_ATTRIBUTE void | purgeConfiguration () |
| local | purgeConfiguration () |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
Configuration contains some openGL variables.
|
virtual |
| bool checkForGLExtension | ( | const std::string & | searchName) | const |
returns whether or not an OpenGL is supported
| var checkForGLExtension | ( | var | searchName) |
returns whether or not an OpenGL is supported
| local checkForGLExtension | ( | local | searchName) |
returns whether or not an OpenGL is supported
|
static |
purge the shared instance of Configuration
|
static |
purge the shared instance of Configuration
|
static |
purge the shared instance of Configuration
| void dumpInfo | ( | ) | const |
dumps the current configuration on the console
| var dumpInfo | ( | ) |
dumps the current configuration on the console
| local dumpInfo | ( | ) |
dumps the current configuration on the console
| void gatherGPUInfo | ( | ) |
gathers OpenGL / GPU information
| var gatherGPUInfo | ( | ) |
gathers OpenGL / GPU information
| local gatherGPUInfo | ( | ) |
gathers OpenGL / GPU information
| bool getBool | ( | const char * | key, |
| bool | defaultValue = false |
||
| ) | const |
returns the value of a given key as a boolean.
If the key is not found, it will return the default value
| var getBool | ( | var | key, |
| var | defaultValue = false |
||
| ) |
returns the value of a given key as a boolean.
If the key is not found, it will return the default value
| local getBool | ( | local | key, |
| local | defaultValue = false |
||
| ) |
returns the value of a given key as a boolean.
If the key is not found, it will return the default value
| const char* getCString | ( | const char * | key, |
| const char * | defaultValue = nullptr |
||
| ) | const |
returns the value of a given key as a string.
If the key is not found, it will return the default value
| var getCString | ( | var | key, |
| var | defaultValue = nullptr |
||
| ) |
returns the value of a given key as a string.
If the key is not found, it will return the default value
| local getCString | ( | local | key, |
| local | defaultValue = nullptr |
||
| ) |
returns the value of a given key as a string.
If the key is not found, it will return the default value
|
static |
returns a shared instance of Configuration
|
static |
returns a shared instance of Configuration
|
static |
returns a shared instance of Configuration
| int getMaxModelviewStackDepth | ( | ) | const |
OpenGL Max Modelview Stack Depth.
| var getMaxModelviewStackDepth | ( | ) |
OpenGL Max Modelview Stack Depth.
| local getMaxModelviewStackDepth | ( | ) |
OpenGL Max Modelview Stack Depth.
| int getMaxTextureSize | ( | ) | const |
OpenGL Max texture size.
| var getMaxTextureSize | ( | ) |
OpenGL Max texture size.
| local getMaxTextureSize | ( | ) |
OpenGL Max texture size.
| int getMaxTextureUnits | ( | ) | const |
returns the maximum texture units
| var getMaxTextureUnits | ( | ) |
returns the maximum texture units
| local getMaxTextureUnits | ( | ) |
returns the maximum texture units
| double getNumber | ( | const char * | key, |
| double | defaultValue = 0.0 |
||
| ) | const |
returns the value of a given key as a double.
If the key is not found, it will return the default value
| var getNumber | ( | var | key, |
| var | defaultValue = 0.0 |
||
| ) |
returns the value of a given key as a double.
If the key is not found, it will return the default value
| local getNumber | ( | local | key, |
| local | defaultValue = 0.0 |
||
| ) |
returns the value of a given key as a double.
If the key is not found, it will return the default value
| Object* getObject | ( | const char * | key) | const |
returns the value of a given key as a double
| var getObject | ( | var | key) |
returns the value of a given key as a double
| local getObject | ( | local | key) |
returns the value of a given key as a double
| bool init | ( | ) |
| var init | ( | ) |
| local init | ( | ) |
| void loadConfigFile | ( | const char * | filename) |
Loads a config file.
If the keys are already present, then they are going to be replaced. Otherwise the new keys are added.
| var loadConfigFile | ( | var | filename) |
Loads a config file.
If the keys are already present, then they are going to be replaced. Otherwise the new keys are added.
| local loadConfigFile | ( | local | filename) |
Loads a config file.
If the keys are already present, then they are going to be replaced. Otherwise the new keys are added.
|
static |
|
static |
|
static |
| void setObject | ( | const char * | key, |
| Object * | value | ||
| ) |
sets a new key/value pair in the configuration dictionary
| var setObject | ( | var | key, |
| var | value | ||
| ) |
sets a new key/value pair in the configuration dictionary
| local setObject | ( | local | key, |
| local | value | ||
| ) |
sets a new key/value pair in the configuration dictionary
|
static |
|
static |
|
static |
| bool supportsATITC | ( | ) | const |
Whether or not ATITC Texture Compressed is supported.
| var supportsATITC | ( | ) |
Whether or not ATITC Texture Compressed is supported.
| local supportsATITC | ( | ) |
Whether or not ATITC Texture Compressed is supported.
| bool supportsBGRA8888 | ( | ) | const |
Whether or not BGRA8888 textures are supported.
| var supportsBGRA8888 | ( | ) |
Whether or not BGRA8888 textures are supported.
| local supportsBGRA8888 | ( | ) |
Whether or not BGRA8888 textures are supported.
| bool supportsDiscardFramebuffer | ( | ) | const |
Whether or not glDiscardFramebufferEXT is supported.
| var supportsDiscardFramebuffer | ( | ) |
Whether or not glDiscardFramebufferEXT is supported.
| local supportsDiscardFramebuffer | ( | ) |
Whether or not glDiscardFramebufferEXT is supported.
| bool supportsETC | ( | ) | const |
Whether or not ETC Texture Compressed is supported.
| var supportsETC | ( | ) |
Whether or not ETC Texture Compressed is supported.
| local supportsETC | ( | ) |
Whether or not ETC Texture Compressed is supported.
| bool supportsNPOT | ( | ) | const |
Whether or not the GPU supports NPOT (Non Power Of Two) textures.
OpenGL ES 2.0 already supports NPOT (iOS).
| var supportsNPOT | ( | ) |
Whether or not the GPU supports NPOT (Non Power Of Two) textures.
OpenGL ES 2.0 already supports NPOT (iOS).
| local supportsNPOT | ( | ) |
Whether or not the GPU supports NPOT (Non Power Of Two) textures.
OpenGL ES 2.0 already supports NPOT (iOS).
| bool supportsPVRTC | ( | ) | const |
Whether or not PVR Texture Compressed is supported.
| var supportsPVRTC | ( | ) |
Whether or not PVR Texture Compressed is supported.
| local supportsPVRTC | ( | ) |
Whether or not PVR Texture Compressed is supported.
| bool supportsS3TC | ( | ) | const |
Whether or not S3TC Texture Compressed is supported.
| var supportsS3TC | ( | ) |
Whether or not S3TC Texture Compressed is supported.
| local supportsS3TC | ( | ) |
Whether or not S3TC Texture Compressed is supported.
| bool supportsShareableVAO | ( | ) | const |
Whether or not shareable VAOs are supported.
| var supportsShareableVAO | ( | ) |
Whether or not shareable VAOs are supported.
| local supportsShareableVAO | ( | ) |
Whether or not shareable VAOs are supported.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |