Table Of Contents

Previous topic

17.9. The OcclusionQuery Object

Next topic

17.11. The RenderTarget Object

This Page

17.10. The RenderBuffer Object

A RenderBuffer object is a 2D container of pixel data to be used as a target for rendering, mostly to store depth information.

17.10.1. Constructor

A RenderBuffer object can be constructed with GraphicsDevice.createRenderBuffer.

17.10.2. Methods

17.10.2.1. destroy

Summary

Releases the RenderBuffer resources, the object will be invalid after the method is called.

Syntax

renderBuffer.destroy();

17.10.3. Properties

17.10.3.1. id

Summary

The unique identification number of the RenderBuffer object.

Syntax

var renderBufferId = renderBuffer.id;

Note

Read Only

17.10.3.2. width

Summary

Width of the render buffer in pixels.

Syntax

var renderBufferWidth = renderBuffer.width;

Note

Read Only

17.10.3.3. height

Summary

Height of the render buffer in pixels.

Syntax

var renderBufferHeight = renderBuffer.height;

Note

Read Only

17.10.3.4. format

Summary

Name of the format used to store the pixel data.

Syntax

var renderBufferFormat = renderBuffer.format;

Note

Read Only