All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.saintandreas.scene.GeometryNode Maven / Gradle / Ivy

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