
org.saintandreas.gl.buffers.VertexArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glamour-lwjgl Show documentation
Show all versions of glamour-lwjgl Show documentation
Class wrappers for geometry, texture, shaders, etc
The newest version!
package org.saintandreas.gl.buffers;
import static org.lwjgl.opengl.GL30.*;
public class VertexArray {
int vao = -1;
public VertexArray() {
vao = glGenVertexArrays();
}
public void bind() {
glBindVertexArray(vao);
}
public static void unbind() {
glBindVertexArray(0);
}
public void destroy() {
glDeleteVertexArrays(vao);
vao = -1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy