openspace.openglCapabilities
Functions overview
Name |
Documentation |
---|---|
Returns all available extensions as a list of names |
|
Returns the value of a call to |
|
Returns the vendor of the main graphics card |
|
Tests whether the current instance supports the passed OpenGL version |
|
Checks is a specific |
|
Returns the largest dimension for a 2D texture on this graphics card |
|
Returns the largest dimension for a 3D texture on this graphics card |
|
Returns the maximum number of atomic counter buffer bindings that are available on the main graphics card |
|
Returns the maximum number of shader storage bindings that are available on the main graphics card |
|
Returns the maximum number of texture units that are available on the main graphics card |
|
Returns the maximum number of uniform buffer bindings that are available on the main graphics card |
|
Returns the maximum OpenGL version that is supported on this platform |
Functions
extensions
Returns all available extensions as a list of names.
Return type: String[]
openspace.openglCapabilities.extensions()
glslCompiler
Returns the value of a call to glGetString(GL_VENDOR)
. This will give detailed information about the vendor of the main graphics card. This string can be used if the automatic Vendor detection failed.
Return type: String
openspace.openglCapabilities.glslCompiler()
gpuVendor
Returns the vendor of the main graphics card.
Return type: String
openspace.openglCapabilities.gpuVendor()
hasOpenGLVersion
Tests whether the current instance supports the passed OpenGL version. The parameter has to have the form ‘X.Y’ or ‘X.Y.Z’.
version
String
Return type: Boolean
openspace.openglCapabilities.hasOpenGLVersion(version)
isExtensionSupported
Checks is a specific extension
is supported or not.
extension
String
Return type: Boolean
openspace.openglCapabilities.isExtensionSupported(extension)
max2DTextureSize
Returns the largest dimension for a 2D texture on this graphics card.
Return type: Integer
openspace.openglCapabilities.max2DTextureSize()
max3DTextureSize
Returns the largest dimension for a 3D texture on this graphics card.
Return type: Integer
openspace.openglCapabilities.max3DTextureSize()
maxAtomicCounterBufferBindings
Returns the maximum number of atomic counter buffer bindings that are available on the main graphics card.
Return type: Integer
openspace.openglCapabilities.maxAtomicCounterBufferBindings()
maxShaderStorageBufferBindings
Returns the maximum number of shader storage bindings that are available on the main graphics card.
Return type: Integer
openspace.openglCapabilities.maxShaderStorageBufferBindings()
maxTextureUnits
Returns the maximum number of texture units that are available on the main graphics card.
Return type: Integer
openspace.openglCapabilities.maxTextureUnits()
maxUniformBufferBindings
Returns the maximum number of uniform buffer bindings that are available on the main graphics card.
Return type: Integer
openspace.openglCapabilities.maxUniformBufferBindings()
openGLVersion
Returns the maximum OpenGL version that is supported on this platform.
Return type: String
openspace.openglCapabilities.openGLVersion()