Class: AxWebGLTexture2D

AxWebGLTexture2D()

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
Source:

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
Source:

Documentation generated by JSDoc 3.5.3 on Mon Feb 19 2018 20:39:27 GMT+0200 (FLE Standard Time)