Skip to content

GlFrameBuffer

final class GlFrameBuffer
Extends: FrameBufferHandle<GlTexture>
Package: dev.joid.base.opengl.render.framebuffer · Module: base-opengl · Source: GlFrameBuffer.java
Backends: LWJGL 2 LWJGL 3

A framebuffer of OpenGL with a color texture and a 24-bit depth renderbuffer, without stencil.

ReturnsSignatureSummary
GlFrameBuffer(GlRenderBridge bridge, int width, int height)Creates the framebuffer, its color texture and its depth renderbuffer at that size in pixels; GlRenderBridge.createFrameBuffer calls it.

ReturnsSignatureSummary
intgetId()Returns the OpenGL name of the framebuffer.
intgetDepth()Returns the OpenGL name of the depth renderbuffer.
GlRenderBridgegetBridge()Returns the render bridge that created the framebuffer.
Inherited from FrameBufferHandle (5)

delete · getWidth · getHeight · getTexture · isDeleted

GlFrameBuffer(GlRenderBridge bridge, int width, int height)

Creates the framebuffer, its color texture and its depth renderbuffer at that size in pixels; GlRenderBridge.createFrameBuffer calls it.

int getId()

Returns the OpenGL name of the framebuffer.

int getDepth()

Returns the OpenGL name of the depth renderbuffer.

GlRenderBridge getBridge()

Returns the render bridge that created the framebuffer.


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

Report a problem with this page