RenderTarget

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs)

Supported platforms:
Available since: Gideros 2013.06

Description

RenderTarget is a texture on which provided Sprite hierarchy can be rendered. It can be used in any case in which Texture can be used.

Methods

RenderTarget.new - Creates new RenderTarget object
RenderTarget:clear - Clears rendered texture
RenderTarget:draw - Renders provided object
RenderTarget:getPixel - Returns single pixels color and alpha channel
RenderTarget:getPixels - Returns buffer containing color and alpha data from provided rectangle
RenderTarget:save - save contents of RenderTarget as image

Events

Constants