openspace.openglCapabilities

Functions overview

Name

Documentation

extensions

Returns all available extensions as a list of names

glslCompiler

Returns the value of a call to glGetString(GL_VENDOR)

gpuVendor

Returns the vendor of the main graphics card

hasOpenGLVersion

Tests whether the current instance supports the passed OpenGL version

isExtensionSupported

Checks is a specific extension is supported or not

max2DTextureSize

Returns the largest dimension for a 2D texture on this graphics card

max3DTextureSize

Returns the largest dimension for a 3D texture on this graphics card

maxAtomicCounterBufferBindings

Returns the maximum number of atomic counter buffer bindings that are available on the main graphics card

maxShaderStorageBufferBindings

Returns the maximum number of shader storage bindings that are available on the main graphics card

maxTextureUnits

Returns the maximum number of texture units that are available on the main graphics card

maxUniformBufferBindings

Returns the maximum number of uniform buffer bindings that are available on the main graphics card

openGLVersion

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[]

Signature
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

Signature
openspace.openglCapabilities.glslCompiler()

gpuVendor

Returns the vendor of the main graphics card.

Return type: String

Signature
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’.

Parameters
  • version String

Return type: Boolean

Signature
openspace.openglCapabilities.hasOpenGLVersion(version)

isExtensionSupported

Checks is a specific extension is supported or not.

Parameters
  • extension String

Return type: Boolean

Signature
openspace.openglCapabilities.isExtensionSupported(extension)

max2DTextureSize

Returns the largest dimension for a 2D texture on this graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.max2DTextureSize()

max3DTextureSize

Returns the largest dimension for a 3D texture on this graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.max3DTextureSize()

maxAtomicCounterBufferBindings

Returns the maximum number of atomic counter buffer bindings that are available on the main graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.maxAtomicCounterBufferBindings()

maxShaderStorageBufferBindings

Returns the maximum number of shader storage bindings that are available on the main graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.maxShaderStorageBufferBindings()

maxTextureUnits

Returns the maximum number of texture units that are available on the main graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.maxTextureUnits()

maxUniformBufferBindings

Returns the maximum number of uniform buffer bindings that are available on the main graphics card.

Return type: Integer

Signature
openspace.openglCapabilities.maxUniformBufferBindings()

openGLVersion

Returns the maximum OpenGL version that is supported on this platform.

Return type: String

Signature
openspace.openglCapabilities.openGLVersion()