new AxWebGLTexture2D()
Creates a new graphics device 2D texture
This constructor shouldn't be called explicity, but instead the graphics device should create its texture
- Source:
Methods
GetData(data)
Gets the pixel data of a texture
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array | The data buffer into which to store the texture's pixel data |
Update(data, width, height, renderTarget)
Updates the texture with the given data
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array | The pixel data to update the texture with |
width |
Integer | The width in pixels of the texture data |
height |
Integer | The height in pixels of the texture data |
renderTarget |
Boolean | Denotes whether the texture is to be used as a render target |