cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
CCConfiguration contains some openGL variables. More...
#include <CCConfiguration.h>
Public Member Functions | |
virtual | ~CCConfiguration (void) |
NA NA. More... | |
int | getMaxTextureSize (void) const |
OpenGL Max texture size. More... | |
int | getMaxModelviewStackDepth (void) const |
OpenGL Max Modelview Stack Depth. More... | |
int | getMaxTextureUnits (void) const |
returns the maximum texture units More... | |
bool | supportsNPOT (void) const |
Whether or not the GPU supports NPOT (Non Power Of Two) textures. More... | |
bool | supportsPVRTC (void) const |
Whether or not PVR Texture Compressed is supported. More... | |
bool | supportsBGRA8888 (void) const |
Whether or not BGRA8888 textures are supported. More... | |
bool | supportsDiscardFramebuffer (void) const |
Whether or not glDiscardFramebufferEXT is supported. More... | |
bool | supportsShareableVAO (void) 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... | |
bool | init (void) |
const char * | getCString (const char *key, const char *default_value=NULL) const |
returns the value of a given key as a string. More... | |
bool | getBool (const char *key, bool default_value=false) const |
returns the value of a given key as a boolean. More... | |
double | getNumber (const char *key, double default_value=0.0) const |
returns the value of a given key as a double. More... | |
CCObject * | getObject (const char *key) const |
returns the value of a given key as a double More... | |
void | setObject (const char *key, CCObject *value) |
sets a new key/value pair in the configuration dictionary More... | |
void | dumpInfo (void) const |
dumps the current configuration on the console More... | |
void | gatherGPUInfo (void) |
gathers OpenGL / GPU information More... | |
void | loadConfigFile (const char *filename) |
Loads a config file. More... | |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCConfiguration * | sharedConfiguration (void) |
returns a shared instance of CCConfiguration More... | |
static void | purgeConfiguration (void) |
purge the shared instance of CCConfiguration More... | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
Protected Attributes | |
GLint | m_nMaxTextureSize |
GLint | m_nMaxModelviewStackDepth |
bool | m_bSupportsPVRTC |
bool | m_bSupportsNPOT |
bool | m_bSupportsBGRA8888 |
bool | m_bSupportsDiscardFramebuffer |
bool | m_bSupportsShareableVAO |
GLint | m_nMaxSamplesAllowed |
GLint | m_nMaxTextureUnits |
char * | m_pGlExtensions |
CCDictionary * | m_pValueDict |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
CCConfiguration contains some openGL variables.
|
virtual |
NA NA.
bool checkForGLExtension | ( | const std::string & | searchName | ) | const |
returns whether or not an OpenGL is supported
void dumpInfo | ( | void | ) | const |
dumps the current configuration on the console
void gatherGPUInfo | ( | void | ) |
gathers OpenGL / GPU information
bool getBool | ( | const char * | key, |
bool | default_value = false |
||
) | const |
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 * | default_value = NULL |
||
) | const |
returns the value of a given key as a string.
If the key is not found, it will return the default value
int getMaxModelviewStackDepth | ( | void | ) | const |
OpenGL Max Modelview Stack Depth.
int getMaxTextureSize | ( | void | ) | const |
OpenGL Max texture size.
int getMaxTextureUnits | ( | void | ) | const |
returns the maximum texture units
double getNumber | ( | const char * | key, |
double | default_value = 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
CCObject * getObject | ( | const char * | key | ) | const |
returns the value of a given key as a double
bool init | ( | void | ) |
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.
|
static |
purge the shared instance of CCConfiguration
void setObject | ( | const char * | key, |
CCObject * | value | ||
) |
sets a new key/value pair in the configuration dictionary
|
static |
returns a shared instance of CCConfiguration
bool supportsBGRA8888 | ( | void | ) | const |
Whether or not BGRA8888 textures are supported.
bool supportsDiscardFramebuffer | ( | void | ) | const |
Whether or not glDiscardFramebufferEXT is supported.
bool supportsNPOT | ( | void | ) | const |
Whether or not the GPU supports NPOT (Non Power Of Two) textures.
OpenGL ES 2.0 already supports NPOT (iOS).
bool supportsPVRTC | ( | void | ) | const |
Whether or not PVR Texture Compressed is supported.
bool supportsShareableVAO | ( | void | ) | const |
Whether or not shareable VAOs are supported.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |