Class RenderingManager

java.lang.Object
com.mygdx.game.Managers.RenderingManager

public final class RenderingManager
extends java.lang.Object
Responsible for all rending. Renders in layers render item layers can't be changed holds the primary sprite batch and rendering camera
  • Constructor Summary

    Constructors
    Constructor Description
    RenderingManager()  
  • Method Summary

    Modifier and Type Method Description
    static void addItem​(Component item, RenderLayer layer)
    adds item to the list of renderable and adds to the correct layer
    static void cleanUp()  
    static com.badlogic.gdx.graphics.g2d.SpriteBatch getBatch()  
    static com.badlogic.gdx.graphics.OrthographicCamera getCamera()  
    static void Initialize()  
    static void render()
    Renders all items in accordance with their layers on one sprite batch
    static void setCamera​(com.badlogic.gdx.graphics.OrthographicCamera cam)  

    Methods inherited from class java.lang.Object

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

    • RenderingManager

      public RenderingManager()
  • Method Details

    • Initialize

      public static void Initialize()
    • getCamera

      public static com.badlogic.gdx.graphics.OrthographicCamera getCamera()
    • setCamera

      public static void setCamera​(com.badlogic.gdx.graphics.OrthographicCamera cam)
    • addItem

      public static void addItem​(Component item, RenderLayer layer)
      adds item to the list of renderable and adds to the correct layer
      Parameters:
      item - component that utilises render
      layer - the layer that it will be rendered in
    • render

      public static void render()
      Renders all items in accordance with their layers on one sprite batch
    • cleanUp

      public static void cleanUp()
    • getBatch

      public static com.badlogic.gdx.graphics.g2d.SpriteBatch getBatch()