官方给的类说明是 Configuration contains some openGL variables。意思是Configuration包含了一些openGL易变的东西。
查看类内容之后发现,Configuration正如它的名字一样,提供的是一些配置信息。具体如下。
/** OpenGL Max texture size. */
int getMaxTextureSize() const;
/** OpenGL Max ModelvIEw Stack Depth. */
int getMaxModelvIEwStackDepth() const;
/** returns the maximum texture units
@since v2.0.0
*/
int getMaxTextureUnits() const;
/** Whether or not the GPU supports NPOT (Non Power Of Two) textures.
OpenGL ES 2.0 already supports NPOT (iOS).
@since v0.99.2
*/
bool supportsNPOT() const;
/** Whether or not PVR Texture Compressed is supported */
bool supportsPVRTC() const;
/** Whether or not ETC Texture Compressed is supported */
bool supportsETC() const;
/** Whether or not S3TC Texture Compressed is supported */
bool supportsS3TC() const;
/** Whether or not ATITC Texture Compressed is supported */
bool supportsATITC() const;
/** Whether or not BGRA8888 textures are supported.
@since v0.99.2
*/
bool supportsBGRA8888() const;
/** Whether or not gldiscardFramebufferEXT is supported
@since v0.99.2
*/
bool supportsdiscardFramebuffer() const;
/** Whether or not shareable VAOs are supported.
@since v2.0.0
*/
bool supportsShareableVAO() const;
/** Max support directional light in shader,for Sprite3D
@since v3.3
*/
int getMaxSupportDirlightInShader() const;
/** Max support point light in shader,for Sprite3D
*since v3.3
*/
int getMaxSupportPointlightInShader() const;
/** Max support spot light in shader,for Sprite3D
*since v3.3
*/
int getMaxSupportSpotlightInShader() const;
/** returns whether or not an OpenGL is supported */
bool checkForGLExtension(const std::string &searchname) const;
提供了一些openGL属性的获取方法。
总结以上是内存溢出为你收集整理的cocos2dx Configuration类全部内容,希望文章能够帮你解决cocos2dx Configuration类所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)