Package engine.renderEngine
Class GuiRenderer
java.lang.Object
engine.renderEngine.GuiRenderer
GUI Renderer is responsible for rendering all UIComponents to the screen.
This includes all UIButtons and UITabs.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiRenderer
(Loader loader) Constructor which takes in the loader to create a 2D plane. -
Method Summary
-
Constructor Details
-
GuiRenderer
Constructor which takes in the loader to create a 2D plane. All UIComponents are just flat rectangles.- Parameters:
loader
-
-
-
Method Details
-
render
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.
-