Difference between revisions of "RenderTarget"
From GiderosMobile
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
RenderTarget is a texture on which provided Sprite hierarchy can be rendered. | 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. | + | It can be used in any case in which Texture can be used.{|- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === |
Revision as of 09:12, 23 August 2018
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.{|- | style="width: 50%;"|
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
| style="width: 50%;"|
Events
Constants
|}