Skip to content

Types

FrameBuffer ​

Defined in: createFrameBuffer.js:30

Render targets made by createFrameBuffer.

Properties ​

PropertyTypeDescription
delete() => voidFrees the framebuffers, their textures and depth buffers.
heightnumberHeight in pixels.
readRenderTargetThe target to read from.
resize(width, height) => voidReplaces the targets with empty ones of the new size.
swap() => voidSwaps read and write, after drawing into write.
widthnumberWidth in pixels.
writeRenderTarget | nullThe target to draw into; null with singular.