TextureBase:update

From GiderosMobile
Revision as of 21:20, 5 September 2024 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2024.9<br/> '''Class:''' TextureBase<br/> === Description === Changes the content of an existing texture. <syntaxhighlight lang="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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