Class SelectorRenderer

java.lang.Object
engine.renderEngine.SelectorRenderer

public class SelectorRenderer extends Object
This class is responsible for rendering the selector square used to select a zone.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectorRenderer(SelectorShader shader, org.joml.Matrix4f projectionMatrix)
    Constructor which starts the shader and loads the projection matrix in the shader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(Selector selector)
    Render function prepares the selector and the instance of it before drawing it to the screen and then unbinding it.

    Methods inherited from class java.lang.Object

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

    • SelectorRenderer

      public SelectorRenderer(SelectorShader shader, org.joml.Matrix4f projectionMatrix)
      Constructor which starts the shader and loads the projection matrix in the shader.
      Parameters:
      shader -
      projectionMatrix -
  • Method Details

    • render

      public void render(Selector selector)
      Render function prepares the selector and the instance of it before drawing it to the screen and then unbinding it.
      Parameters:
      selector -