Skip to main content

CCConfiguration

CCConfiguration

Cocos2D

Inheritance: System.Object

Fields

m_bInited(System.Boolean)
m_bSupportsBGRA8888(System.Boolean)
m_bSupportsDiscardFramebuffer(System.Boolean)
m_bSupportsNPOT(System.Boolean)
m_bSupportsPVRTC(System.Boolean)
m_nMaxModelviewStackDepth(System.Int32)
m_nMaxSamplesAllowed(System.Int32)
m_nMaxTextureSize(System.Int32)
m_pGlExtensions(System.String)
m_uOSVersion(System.UInt32)

Properties

AppBuildVersion(System.String)
AppVersion(System.String)
DisplayStats(System.Boolean)
IsSupportsBGRA8888(System.Boolean)

Whether or not BGRA8888 textures are supported. @since v0.99.2

IsSupportsDiscardFramebuffer(System.Boolean)

Whether or not glDiscardFramebufferEXT is supported @since v0.99.2

IsSupportsNPOT(System.Boolean)

Whether or not the GPU supports NPOT (Non Power Of Two) textures. NPOT textures have the following limitations: - They can't have mipmaps - They only accept GL_CLAMP_TO_EDGE in GL_TEXTURE_WRAP_S,T @since v0.99.2

IsSupportsPVRTC(System.Boolean)

Whether or not PVR Texture Compressed is supported

MaxModelviewStackDepth(System.Int32)

OpenGL Max Modelview Stack Depth

MaxTextureSize(System.Int32)

OpenGL Max texture size.

OSVersion(System.String)

Returns the Android Version "Release" name, on iOS it returns the MonoTouch product version. @since v0.99.5

SharedConfiguration(Cocos2D.CCConfiguration)

returns a shared instance of the CCConfiguration

UseGraphPriority(System.Boolean)

Set this to true if you want to enforce graph priority for touch delegation.

Methods

CheckForGLExtension(string)

System.Boolean CheckForGLExtension(string)(System.String searchName)

returns whether or not an OpenGL is supported

Parameters:
searchName (System.String)
Returns:
System.Boolean
Example

Init()

System.Boolean Init()()
Returns:
System.Boolean

getGlesVersion()

Cocos2D.CCGlesVersion getGlesVersion()()
Returns:
Cocos2D.CCGlesVersion