
org.saintandreas.scene.ShaderNode 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.shaders.Program;
public class ShaderNode extends SceneNode {
public ShaderNode(Program program, Runnable closure) {
super(()->{
program.link();
}, ()->{
program.use();
closure.run();
}, ()->{
Program.clear();
});
}
public ShaderNode(Program program) {
this(program, ()->{});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy