| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 所有成员列表
Configuration类 参考 Global
包含一些 openGL 变量的Configuration. 更多…
#include
类 Configuration 继承关系图:
| ## Public 成员函数 | |
| virtual | ~Configuration () |
| NA NA 更多… | |
| int | getMaxTextureSize () const |
| OpenGL 最大纹理大小. 更多… | |
| int | getMaxModelviewStackDepth () const |
| OpenGL 最大模型视图栈深度(Modelview Stack Depth). 更多… | |
| int | getMaxTextureUnits () const |
| 返回纹理单元的最大数目. 更多… | |
| bool | supportsNPOT () const |
| 无论GPU 是否支持NPOT (Non Power Of Two)纹理. 更多… | |
| bool | supportsPVRTC () const |
| 是否支持 PVR 纹理压缩(Texture Compressed) 更多… | |
| bool | supportsETC () const |
| 是否支持 ETC 纹理压缩(Texture Compressed) 更多… | |
| bool | supportsS3TC () const |
| 是否支持 S3TC 纹理压缩(Texture Compressed) 更多… | |
| bool | supportsATITC () const |
| 是否支持 ATITC 纹理压缩(Texture Compressed) 更多… | |
| bool | supportsBGRA8888 () const |
| 是否支持 BGRA8888 格式的纹理. 更多… | |
| bool | supportsDiscardFramebuffer () const |
| 是否支持 glDiscardFramebufferEXT. 更多… | |
| bool | supportsShareableVAO () const |
| 是否支持可共享 VAOs(shareable VAOs). 更多… | |
| bool | checkForGLExtension (const std::string &searchName) const |
| 检查是否支持 OpenGL 更多… | |
| bool | init () |
| const Value & | getValue (const std::string &key, const Value &defaultValue=Value::Null) const |
| 返回指定键(key)对应的值(Value) 更多… | |
| void | setValue (const std::string &key, const Value &value) |
| 在Configuration的ValueMap中设置一个新的键值对 更多… | |
| std::string | getInfo () const |
| 返回 Configuration 信息 更多… | |
| void | gatherGPUInfo () |
| 收集 OpenGL / GPU 信息 更多… | |
| void | loadConfigFile (const std::string &filename) |
| 加载配置文件到 Configuration. 更多… | |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref * | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static Configuration | getInstance () |
| 返回Configuration的单例实例. 更多… | |
| static void | destroyInstance () |
| 销毁Configuration的单例实例. 更多… | |
| static CC_DEPRECATED_ATTRIBUTE Configuration | sharedConfiguration () |
| static CC_DEPRECATED_ATTRIBUTE void | purgeConfiguration () |
| ## Protected 属性 | |
| GLint | _maxTextureSize |
| GLint | _maxModelviewStackDepth |
| bool | _supportsPVRTC |
| bool | _supportsETC1 |
| bool | _supportsS3TC |
| bool | _supportsATITC |
| bool | _supportsNPOT |
| bool | _supportsBGRA8888 |
| bool | _supportsDiscardFramebuffer |
| bool | _supportsShareableVAO |
| GLint | _maxSamplesAllowed |
| GLint | _maxTextureUnits |
| char * | _glExtensions |
| ValueMap | _valueDict |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
| ## 额外继承的成员函数 | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
详细描述
包含一些 openGL 变量的Configuration.
- 自从
- v0.99.0
构造及析构函数说明
| virtual |
NA NA
成员函数说明
| bool checkForGLExtension | ( | const std::string & | searchName | ) | const |
检查是否支持 OpenGL
| static |
销毁Configuration的单例实例.
| void gatherGPUInfo | ( | ) |
收集 OpenGL / GPU 信息
| std::string getInfo | ( | ) | const |
返回 Configuration 信息
| static |
返回Configuration的单例实例.
| int getMaxModelviewStackDepth | ( | ) | const |
OpenGL 最大模型视图栈深度(Modelview Stack Depth).
| int getMaxTextureSize | ( | ) | const |
OpenGL 最大纹理大小.
| int getMaxTextureUnits | ( | ) | const |
返回纹理单元的最大数目.
- 自从
- v2.0.0
| const Value& getValue | ( | const std::string & | key, |
| const Value & | defaultValue = Value::Null | ||
| ) | const |
返回指定键(key)对应的值(Value)
| bool init | ( | ) |
| void loadConfigFile | ( | const std::string & | filename | ) |
加载配置文件到 Configuration.
如果文件中的键已经存在于Configuration中, 将忽略文件中的值. 否则把新的键值对添加到 Configuration. 注: 英文原意为若key存在则替换value,但是代码与英文原意明显不同,请确认代码.
| static |
- 弃用:
- 使用 destroyInstance() 代替此方法
| void setValue | ( | const std::string & | key, |
| const Value & | value | ||
| ) |
在Configuration的ValueMap中设置一个新的键值对
| static |
- 弃用:
- 使用 getInstance() 代替此方法
| bool supportsATITC | ( | ) | const |
是否支持 ATITC 纹理压缩(Texture Compressed)
| bool supportsBGRA8888 | ( | ) | const |
是否支持 BGRA8888 格式的纹理.
- 自从
- v0.99.2
| bool supportsDiscardFramebuffer | ( | ) | const |
是否支持 glDiscardFramebufferEXT.
- 自从
- v0.99.2
| bool supportsETC | ( | ) | const |
是否支持 ETC 纹理压缩(Texture Compressed)
| bool supportsNPOT | ( | ) | const |
无论GPU 是否支持NPOT (Non Power Of Two)纹理.
OpenGL ES 2.0 支持 NPOT (iOS).
- 自从
- v0.99.2
| bool supportsPVRTC | ( | ) | const |
是否支持 PVR 纹理压缩(Texture Compressed)
| bool supportsS3TC | ( | ) | const |
是否支持 S3TC 纹理压缩(Texture Compressed)
| bool supportsShareableVAO | ( | ) | const |
是否支持可共享 VAOs(shareable VAOs).
- 自从
- v2.0.0
类成员变量说明
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCConfiguration.h
- cocos2d
- Configuration
- 生成于 2014年 五月 29日 星期四 09:41:44 , 为 cocos2d-x使用
1.8.6
Public 成员函数 继承自 