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

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

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