
org.saintandreas.scene.GeometryNode 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.scene;
import org.saintandreas.gl.Geometry;
import org.saintandreas.gl.buffers.VertexArray;
public class GeometryNode extends SceneNode {
public GeometryNode(Geometry g, Runnable closure) {
super(()->{
g.bindVertexArray();
}, closure, ()->{
VertexArray.unbind();
});
}
public GeometryNode(Geometry g) {
this(g, ()->{ g.draw(); });
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy