A RenderTarget object is collection of renderable objects, Textures or RenderBuffers, that can be set as a rendering target.
GraphicsDevice.maxSupported(“RENDERTARGET_COLOR_TEXTURES”) can be use to check the number of supported color textures.
A RenderTarget object can be constructed with GraphicsDevice.createRenderTarget.
Summary
Get the width of the current RenderTarget object.
Syntax
var width = renderTarget.getWidth();
Summary
Get the height of the current RenderTarget object.
Syntax
var height = renderTarget.getHeight();
Summary
Releases the RenderTarget resources, the object will be invalid after the method is called.
Syntax
renderTarget.destroy();
Summary
The unique identification number of the RenderTarget object.
Syntax
var renderTargetId = renderTarget.id;
Note
Read Only
Summary
The Texture object set as the target for color rendering at index 0.
Syntax
var mainColor = renderTarget.colorTexture0;
Note
Read Only
Summary
The Texture object set as the target for color rendering at index 1.
Syntax
var color1 = renderTarget.colorTexture1;
Note
Read Only
Summary
The Texture object set as the target for color rendering at index 2.
Syntax
var color2 = renderTarget.colorTexture2;
Note
Read Only
Summary
The Texture object set as the target for color rendering at index 3.
Syntax
var color3 = renderTarget.colorTexture3;
Note
Read Only
Summary
The RenderBuffer object set as the target for depth rendering.
Syntax
var depthBuffer = renderTarget.depthBuffer;
Note
Read Only
Summary
The Texture object set as the target for depth rendering.
Syntax
var depthTexture = renderTarget.depthTexture;
Note
Read Only
Summary
The index of the destination face when using cubemaps as rendering targets.
Syntax
var faceIndex = renderTarget.face;
Note
Read Only