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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| 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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Inherited from FrameBufferHandle (5)
delete · getWidth · getHeight · getTexture · isDeleted
Creation details
Section titled “Creation details”GlFrameBuffer
Section titled “GlFrameBuffer”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.
Method details
Section titled “Method details”int getId()
Returns the OpenGL name of the framebuffer.
getDepth
Section titled “getDepth”int getDepth()
Returns the OpenGL name of the depth renderbuffer.
getBridge
Section titled “getBridge”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
