IGlFrameBufferBinding
interface IGlFrameBufferBinding
Known subtypes: JournalGlFrameBufferBinding, Lwjgl2CoreGlFrameBufferBinding, Lwjgl2ExtGlFrameBufferBinding, Lwjgl3CoreGlFrameBufferBinding, Lwjgl3ExtGlFrameBufferBinding
Package: dev.joid.base.opengl.binding · Module: base-opengl · Source: IGlFrameBufferBinding.java
Backends: LWJGL 2 LWJGL 3
The framebuffer calls of OpenGL for one family: the core functions or those of GL_EXT_framebuffer_object.
Description
Section titled “Description”IGlBinding.getFrameBufferBinding returns one per family, and GlRenderBridge uses the family that GlCapabilities.getFrameBufferFamily picks.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | genFramebuffer() abstract | Creates a framebuffer and returns its name. |
void | deleteFramebuffer(int framebuffer) abstract | Deletes a framebuffer. |
void | bindFramebuffer(int target, int framebuffer) abstract | Binds a framebuffer to the draw, read or both targets, 0 for the default framebuffer. |
void | framebufferTexture2D(int target, int attachment, int textureTarget, int texture, int level) abstract | Attaches a level of a texture to an attachment of the bound framebuffer. |
int | genRenderbuffer() abstract | Creates a renderbuffer and returns its name. |
void | deleteRenderbuffer(int renderbuffer) abstract | Deletes a renderbuffer. |
void | bindRenderbuffer(int target, int renderbuffer) abstract | Binds a renderbuffer, 0 for none. |
void | renderbufferStorage(int target, int internalFormat, int width, int height) abstract | Allocates the storage of the bound renderbuffer, in that format and size. |
void | framebufferRenderbuffer(int target, int attachment, int renderbufferTarget, int renderbuffer) abstract | Attaches a renderbuffer to an attachment of the bound framebuffer. |
void | blitFramebuffer(int sourceX0, int sourceY0, int sourceX1, int sourceY1, int targetX0, int targetY0, int targetX1, int targetY1, int mask, int filter) abstract | Copies a rectangle of the read framebuffer into a rectangle of the draw framebuffer, scaled with the filter. |
Method details
Section titled “Method details”genFramebuffer
Section titled “genFramebuffer”int genFramebuffer() abstract
Creates a framebuffer and returns its name.
Maps to glGenFramebuffers.
deleteFramebuffer
Section titled “deleteFramebuffer”void deleteFramebuffer(int framebuffer) abstract
Deletes a framebuffer.
Maps to glDeleteFramebuffers.
bindFramebuffer
Section titled “bindFramebuffer”void bindFramebuffer(int target, int framebuffer) abstract
Binds a framebuffer to the draw, read or both targets, 0 for the default framebuffer.
Maps to glBindFramebuffer.
framebufferTexture2D
Section titled “framebufferTexture2D”void framebufferTexture2D(int target, int attachment, int textureTarget, int texture, int level) abstract
Attaches a level of a texture to an attachment of the bound framebuffer.
Maps to glFramebufferTexture2D.
genRenderbuffer
Section titled “genRenderbuffer”int genRenderbuffer() abstract
Creates a renderbuffer and returns its name.
Maps to glGenRenderbuffers.
deleteRenderbuffer
Section titled “deleteRenderbuffer”void deleteRenderbuffer(int renderbuffer) abstract
Deletes a renderbuffer.
Maps to glDeleteRenderbuffers.
bindRenderbuffer
Section titled “bindRenderbuffer”void bindRenderbuffer(int target, int renderbuffer) abstract
Binds a renderbuffer, 0 for none.
Maps to glBindRenderbuffer.
renderbufferStorage
Section titled “renderbufferStorage”void renderbufferStorage(int target, int internalFormat, int width, int height) abstract
Allocates the storage of the bound renderbuffer, in that format and size.
Maps to glRenderbufferStorage.
framebufferRenderbuffer
Section titled “framebufferRenderbuffer”void framebufferRenderbuffer(int target, int attachment, int renderbufferTarget, int renderbuffer) abstract
Attaches a renderbuffer to an attachment of the bound framebuffer.
Maps to glFramebufferRenderbuffer.
blitFramebuffer
Section titled “blitFramebuffer”void blitFramebuffer(int sourceX0, int sourceY0, int sourceX1, int sourceY1, int targetX0, int targetY0, int targetX1, int targetY1, int mask, int filter) abstract
Copies a rectangle of the read framebuffer into a rectangle of the draw framebuffer, scaled with the filter.
Maps to glBlitFramebuffer.
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
