Skip to main content

FrameBuffer

Complete API reference for FrameBuffer, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Shaders

Component: no


public class FrameBuffer

Constructors

SignatureDescription
FrameBuffer(FrameBuffer)Executes FrameBuffer and returns after the underlying engine call finishes.
FrameBuffer(int, int)Executes FrameBuffer and returns after the underlying engine call finishes.
FrameBuffer(int, int, int)Creates a new instance of FrameBuffer.
FrameBuffer(int, int, int, int)Creates a new instance of FrameBuffer.
FrameBuffer(int, int, int, int, Texture)Creates a new instance of FrameBuffer.

Attributes

NameTypeDescription
frameBufferFrameBufferRepresents the frameBuffer value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
colorTextureTexturegetVirtual attribute exposed by getColorTexture. Access it like a field to read or write the underlying value.
colorTexturesCountintgetVirtual attribute exposed by getColorTexturesCount. Access it like a field to read or write the underlying value.
depthTextureTexturegetVirtual attribute exposed by getDepthTexture. Access it like a field to read or write the underlying value.
heightintgetVirtual attribute exposed by getHeight. Access it like a field to read or write the underlying value.
maxHeightintgetVirtual attribute exposed by getMaxHeight. Access it like a field to read or write the underlying value.
maxWidthintgetVirtual attribute exposed by getMaxWidth. Access it like a field to read or write the underlying value.
renderPercentageintget/setVirtual attribute exposed by getRenderPercentage. Access it like a field to read or write the underlying value.
widthintgetVirtual attribute exposed by getWidth. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
resize(int, int)voidPerforms the resize operation using the provided parameters (width, height).
resize(int, int, int)voidPerforms the resize operation using the provided parameters (width, height, renderPercentage).
getColorTexture(int)TextureReturns the current color texture.
getColorTextureArray()Texture[]Returns the current color texture array.
extractGPUImageToBtm(ExtractCallback)voidExecutes extractGPUImageToBtm and returns after the underlying engine call finishes.
saveGPUImageToFile(File)voidExecutes saveGPUImageToFile and returns after the underlying engine call finishes.
saveGPUImageToFile(File, Runnable)voidExecutes saveGPUImageToFile and returns after the underlying engine call finishes.
destroy()voidExecutes destroy and returns after the underlying engine call finishes.
validate()booleanExecutes validate and returns after the underlying engine call finishes.