Skip to main content
Version: Phaser v4.0.0-rc.6

WebGLShaderSetterWrapper

This class stores data necessary for setting WebGL shader uniforms

and attributes. Most of it is static. Its purpose as a class is to

load the WebGL functions provided by the rendering context.

Constructor

new WebGLShaderSetterWrapper(renderer)

Parameters

nametypeoptionaldescription
rendererPhaser.Renderer.WebGL.WebGLRendererNoThe WebGLRenderer instance that owns this WebGLShaderSetterWrapper.

Scope: static

Source: src/renderer/webgl/wrappers/WebGLShaderSetterWrapper.js#L9
Since: 4.0.0

Public Members

constants

constants: Phaser.Types.Renderer.WebGL.Wrappers.ShaderSetterConstants

Description:

Map of GL Constants to their setter functions and relevant data sizes.

Source: src/renderer/webgl/wrappers/WebGLShaderSetterWrapper.js#L27
Since: 4.0.0