Class Renderer

java.lang.Object
xyz.jeremynoesen.pseudo3d.core.graphics.Renderer

public class Renderer
extends java.lang.Object
Scene renderer which will render a Scene onto a JavaFX Canvas
  • Constructor Summary

    Constructors
    Constructor Description
    Renderer​(Scene scene)
    Create a new Renderer for the specified Scene
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)
    Check if two Renderer objects are equal
    void render​(javafx.scene.canvas.GraphicsContext graphicsContext, float deltaTime)
    Render the next full frame

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Renderer

      public Renderer​(Scene scene)
      Create a new Renderer for the specified Scene
      Parameters:
      scene - Scene to render
  • Method Details

    • render

      public void render​(javafx.scene.canvas.GraphicsContext graphicsContext, float deltaTime)
      Render the next full frame
      Parameters:
      graphicsContext - GraphicsContext to draw to
      deltaTime - Time elapsed in last frame, used for Sprite updating
    • equals

      public boolean equals​(java.lang.Object o)
      Check if two Renderer objects are equal
      Overrides:
      equals in class java.lang.Object
      Parameters:
      o - Renderer to check
      Returns:
      True if equal