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.
Description
Section titled “Description”Without vertex arrays, the attributes are pointed again at each draw.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| GlVertexInput(IGlBinding binding, boolean vertexArray) | Creates the buffer, and a vertex array whose attributes point at it when the boolean is true. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Creation details
Section titled “Creation details”GlVertexInput
Section titled “GlVertexInput”GlVertexInput(IGlBinding binding, boolean vertexArray)
Creates the buffer, and a vertex array whose attributes point at it when the boolean is true.
Method details
Section titled “Method details”void bind()
Binds the vertex array and the buffer, or points the attributes at the buffer without a vertex array.
getArray
Section titled “getArray”int getArray()
Returns the OpenGL name of the vertex array, or 0 without one.
getBuffer
Section titled “getBuffer”int getBuffer()
Returns the OpenGL name of the vertex buffer.
getBinding
Section titled “getBinding”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
