Difference between revisions of "TextureBase:update"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2024.9<br/> '''Class:''' TextureBase<br/> === Description === Changes the content of an existing texture. <syntaxhighlight lang="...")
 
(No difference)

Latest revision as of 21:20, 5 September 2024

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