A wrapper for creating a WebGLTexture. If no pixel data is passed it will create an empty texture.
name | type | arguments | Default | description |
---|---|---|---|---|
mipLevel | number |
Mip level of the texture. |
||
minFilter | number |
Filtering of the texture. |
||
magFilter | number |
Filtering of the texture. |
||
wrapT | number |
Wrapping mode of the texture. |
||
wrapS | number |
Wrapping mode of the texture. |
||
format | number |
Which format does the texture use. |
||
pixels | object |
pixel data. |
||
width | number |
Width of the texture in pixels. |
||
height | number |
Height of the texture in pixels. |
||
pma | boolean | <optional> | true |
Does the texture have premultiplied alpha? |
forceSize | boolean | <optional> | false |
If |
flipY | boolean | <optional> | false |
Sets the |
The WebGLTexture that was created.