
org.saintandreas.scene.RootNode 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.MatrixStack;
public class RootNode extends SceneNode {
private int entryModelviewSize;
private int entryProjectionSize;
public RootNode() {
super();
this.preRender = () -> {
entryModelviewSize = MatrixStack.MODELVIEW.size();
entryProjectionSize = MatrixStack.PROJECTION.size();
};
this.postRender = () -> {
assert (entryModelviewSize == MatrixStack.MODELVIEW.size());
assert (entryProjectionSize == MatrixStack.PROJECTION.size());
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy