[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit3d](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d) / [util](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5) / [WebGLConstants](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5#webglconstants) / WebGLConstants

# Class: WebGLConstants

[util](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5).[WebGLConstants](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5#webglconstants).WebGLConstants

Utility class providing WebGL rendering capabilities and information.<br>

## Table of contents

Constructors
- [new WebGLConstants()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants.md#new webglconstants())


Methods
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#getclassname) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#getclassname-1) | [getMaxTextureSize](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#getmaxtexturesize) |
|  --- | --- | --- |
| [getMaxTextures](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#getmaxtextures) | [getSupportedRenderTargetTypes](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#getsupportedrendertargettypes) | [isIntelGPU](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#isintelgpu) |
| [isWebGL2](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#iswebgl2) | [webgl](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit3d.util-5.webglconstants.webglconstants#webgl) |


## 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`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5#webglconstants#supportedrendertargettype)

Return the list of supported Textures/RenderTarget types.<br>
While the traditional UnsignedByte format textures are widely supported, some Float-based textures might not be supported on all hardware/browser combinations.<br>
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`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit3d.util-5#webglconstants#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