Class GuiRenderer

java.lang.Object
engine.renderEngine.GuiRenderer

public class GuiRenderer extends Object
GUI Renderer is responsible for rendering all UIComponents to the screen. This includes all UIButtons and UITabs.
  • Constructor Details

    • GuiRenderer

      public GuiRenderer(Loader loader)
      Constructor which takes in the loader to create a 2D plane. All UIComponents are just flat rectangles.
      Parameters:
      loader -
  • Method Details

    • render

      public void render(List<UiButton> buttons, List<UiTab> tabs)
      Main Render function. Receives a list of buttons and tabs. Enables the Texture banks, necessary OPENGL settings and VertexAttribute arrauys for each. Starts and stops the shaders and loads the transformation matrices for each.
      Parameters:
      buttons -
      tabs -
    • cleanUp

      public void cleanUp()
      Cleans up the shader for the UIComponents.