Phaser API Documentation

  Version: 
bindTexture([target], [unit])

Description:

Activates the given WebGL Texture and binds it to the requested texture slot.

Parameters:

name type arguments description
target WebGLTexture <optional>

The WebGLTexture to activate and bind.

unit number <optional>

The WebGL texture ID to activate. Defaults to gl.TEXTURE0.

Returns:
Description:

This WebGL Pipeline instance.

Since: 3.50.0