FrameBufferHandle
abstract class FrameBufferHandle<T extends Texture>
Implements: IFrameBuffer
Known subtypes: GlFrameBuffer, VulkanFrameBuffer
Package: dev.joid.lib.bridge.render.framebuffer · Module: core · Source: FrameBufferHandle.java
The base class of a framebuffer, which owns its color texture and deletes it with its own handle.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| FrameBufferHandle(T texture) protected | Creates the framebuffer around its color texture. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | delete() | Deletes the handle, then the color texture; does nothing the second time. |
int | getWidth() | Returns the width of the color texture, in pixels. |
int | getHeight() | Returns the height of the color texture, in pixels. |
T | getTexture() | Returns the color texture, which a shader samples once the framebuffer is drawn. |
boolean | isDeleted() | If true, the framebuffer is deleted. |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
void | deleteHandle() hook abstract protected | JOID calls it once, from delete(), before it deletes the color texture. |
Creation details
Section titled “Creation details”FrameBufferHandle
Section titled “FrameBufferHandle”FrameBufferHandle(T texture) protected
Creates the framebuffer around its color texture.
Method details
Section titled “Method details”delete
Section titled “delete”void delete()
Deletes the handle, then the color texture; does nothing the second time.
getWidth
Section titled “getWidth”int getWidth()
Returns the width of the color texture, in pixels.
getHeight
Section titled “getHeight”int getHeight()
Returns the height of the color texture, in pixels.
getTexture
Section titled “getTexture”T getTexture()
Returns the color texture, which a shader samples once the framebuffer is drawn.
isDeleted
Section titled “isDeleted”boolean isDeleted()
If true, the framebuffer is deleted.
deleteHandle
Section titled “deleteHandle”void deleteHandle() hook abstract protected
JOID calls it once, from delete(), before it deletes the color texture.
Delete the framebuffer and its depth buffer.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
