Skip to content

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.

IGlBinding.getFrameBufferBinding returns one per family, and GlRenderBridge uses the family that GlCapabilities.getFrameBufferFamily picks.

ReturnsSignatureSummary
intgenFramebuffer() abstractCreates a framebuffer and returns its name.
voiddeleteFramebuffer(int framebuffer) abstractDeletes a framebuffer.
voidbindFramebuffer(int target, int framebuffer) abstractBinds a framebuffer to the draw, read or both targets, 0 for the default framebuffer.
voidframebufferTexture2D(int target, int attachment, int textureTarget, int texture, int level) abstractAttaches a level of a texture to an attachment of the bound framebuffer.
intgenRenderbuffer() abstractCreates a renderbuffer and returns its name.
voiddeleteRenderbuffer(int renderbuffer) abstractDeletes a renderbuffer.
voidbindRenderbuffer(int target, int renderbuffer) abstractBinds a renderbuffer, 0 for none.
voidrenderbufferStorage(int target, int internalFormat, int width, int height) abstractAllocates the storage of the bound renderbuffer, in that format and size.
voidframebufferRenderbuffer(int target, int attachment, int renderbufferTarget, int renderbuffer) abstractAttaches a renderbuffer to an attachment of the bound framebuffer.
voidblitFramebuffer(int sourceX0, int sourceY0, int sourceX1, int sourceY1, int targetX0, int targetY0, int targetX1, int targetY1, int mask, int filter) abstractCopies a rectangle of the read framebuffer into a rectangle of the draw framebuffer, scaled with the filter.

int genFramebuffer() abstract

Creates a framebuffer and returns its name. Maps to glGenFramebuffers.

void deleteFramebuffer(int framebuffer) abstract

Deletes a framebuffer. Maps to glDeleteFramebuffers.

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.

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.

int genRenderbuffer() abstract

Creates a renderbuffer and returns its name. Maps to glGenRenderbuffers.

void deleteRenderbuffer(int renderbuffer) abstract

Deletes a renderbuffer. Maps to glDeleteRenderbuffers.

void bindRenderbuffer(int target, int renderbuffer) abstract

Binds a renderbuffer, 0 for none. Maps to glBindRenderbuffer.

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.

void framebufferRenderbuffer(int target, int attachment, int renderbufferTarget, int renderbuffer) abstract

Attaches a renderbuffer to an attachment of the bound framebuffer. Maps to glFramebufferRenderbuffer.

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

Report a problem with this page