Class MasterRenderer

java.lang.Object
engine.renderEngine.MasterRenderer

public class MasterRenderer extends Object
The main renderer class which starts all individual renderers and prepares the array of objects for each.
  • Constructor Details

    • MasterRenderer

      public MasterRenderer()
      Sets OPENGL Properties and starts all the renderers.
  • Method Details

    • render

      public void render(Selector selector, Camera camera, Light light)
      Calls the render function of each renderer as well as loading the camera position and light to each shader.
      Parameters:
      selector -
      camera -
      light -
    • processEntities

      public void processEntities(Entity entity)
      Processes each entity into the entity HashMap
      Parameters:
      entity -
    • processTerrain

      public void processTerrain(Terrain terrain)
      Processes each terrain into the terrain hashmap
      Parameters:
      terrain -
    • processZoneTiles

      public void processZoneTiles(ZoneTile zoneTile)
    • prepare

      public void prepare()
      Sets the OPENGL properties before rendering.
    • cleanUp

      public void cleanUp()
      Calls the cleanup methods for each shader.
    • getProjectionMatrix

      public org.joml.Matrix4f getProjectionMatrix()
      Returns:
      the current projection matrix based on the screen