Last updated

API / geotoolkit3d / util / WebGLConstants / WebGLConstants

Class: WebGLConstants

util.WebGLConstants.WebGLConstants

Utility class providing WebGL rendering capabilities and information.

Table of contents

Constructors
Methods

Contents

Constructors

new WebGLConstants()

new WebGLConstants()

Methods

getClassName

getClassName(): string

Returns

string


getClassName

Static getClassName(): string

Returns

string


getMaxTextureSize

Static getMaxTextureSize(): number

Get the WebGL maximum texture size this browser/device can theoretically use (not taking memory usage into account)

Returns

number

size


getMaxTextures

Static getMaxTextures(): number

Get the WebGL maximum number of textures

Returns

number

maxTextures number


getSupportedRenderTargetTypes

Static getSupportedRenderTargetTypes(): SupportedRenderTargetType

Return the list of supported Textures/RenderTarget types.
While the traditional UnsignedByte format textures are widely supported, some Float-based textures might not be supported on all hardware/browser combinations.
This utility class performs an actual test to make sure these types are supported, which is more reliable than just consulting WebGL extensions.

Returns

SupportedRenderTargetType


isIntelGPU

Static isIntelGPU(): boolean

Check if it is intel graphic card

Returns

boolean

isIntelGPU


isWebGL2

Static isWebGL2(): boolean

Check if the browser supports WebGL 2.0

Returns

boolean

isWebGL2


webgl

Static webgl(): boolean

Check if the browser supports WebGL 1.0

Returns

boolean

webgl