TextureBase:update

From GiderosMobile

Available since: Gideros 2024.9
Class: TextureBase

Description

Changes the content of an existing texture.

(number) = TextureBase:update(pixels,width,height)

Parameters

pixels: (string) the string buffer of the new TextureBase content
width: (number) the width of the new TextureBase content
height: (number) the height of the new TextureBase content

Return values

Returns (TextureBase) the updated TextureBase

See also

RenderTarget:getPixels