Package engine.shaders
Class GuiShader
java.lang.Object
engine.shaders.ShaderProgram
engine.shaders.GuiShader
Extends the ShaderProgram and is responsible for handling the shaders for all 2D UI components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Binds all Attributes found in the GLSL file.protected void
Finds all uniform loactions in the GLSL file.void
loadTransformation
(org.joml.Matrix4f matrix) Loads the transformation matrix to the shader.Methods inherited from class engine.shaders.ShaderProgram
bindAttribute, cleanUp, getUniformLocation, load2DVector, loadBoolean, loadFloat, loadMatrix, loadVector, start, stop
-
Constructor Details
-
GuiShader
public GuiShader()
-
-
Method Details
-
loadTransformation
public void loadTransformation(org.joml.Matrix4f matrix) Loads the transformation matrix to the shader.- Parameters:
matrix
-
-
bindAttributes
protected void bindAttributes()Binds all Attributes found in the GLSL file.- Specified by:
bindAttributes
in classShaderProgram
-
getAllUniformLocations
protected void getAllUniformLocations()Finds all uniform loactions in the GLSL file.- Specified by:
getAllUniformLocations
in classShaderProgram
-