Skip to content

GlVertexInput

final class GlVertexInput
Package: dev.joid.base.opengl.render.vertex · Module: base-opengl · Source: GlVertexInput.java
Backends: LWJGL 2 LWJGL 3

The vertex buffer of the OpenGL render bridge, with the vertex array that points every attribute of JOID at it.

Without vertex arrays, the attributes are pointed again at each draw.

ReturnsSignatureSummary
GlVertexInput(IGlBinding binding, boolean vertexArray)Creates the buffer, and a vertex array whose attributes point at it when the boolean is true.

ReturnsSignatureSummary
voidbind()Binds the vertex array and the buffer, or points the attributes at the buffer without a vertex array.
intgetArray()Returns the OpenGL name of the vertex array, or 0 without one.
intgetBuffer()Returns the OpenGL name of the vertex buffer.
IGlBindinggetBinding()Returns the binding that the input calls.

GlVertexInput(IGlBinding binding, boolean vertexArray)

Creates the buffer, and a vertex array whose attributes point at it when the boolean is true.

void bind()

Binds the vertex array and the buffer, or points the attributes at the buffer without a vertex array.

int getArray()

Returns the OpenGL name of the vertex array, or 0 without one.

int getBuffer()

Returns the OpenGL name of the vertex buffer.

IGlBinding getBinding()

Returns the binding that the input calls.


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