Package engine.fontRendering
Class FontShader
java.lang.Object
engine.shaders.ShaderProgram
engine.fontRendering.FontShader
Class for the Font Shader extending the Shader Program
used mainly for texts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
binding the attributesprotected void
method needed for the rendering to get all the uniforms (glsl file)protected void
loadColour
(org.joml.Vector3f colour) method to load the colour of the textsprotected void
loadTranslation
(org.joml.Vector2f translation) loads the translation of the text when renderedMethods inherited from class engine.shaders.ShaderProgram
bindAttribute, cleanUp, getUniformLocation, load2DVector, loadBoolean, loadFloat, loadMatrix, loadVector, start, stop
-
Constructor Details
-
FontShader
public FontShader()
-
-
Method Details
-
getAllUniformLocations
protected void getAllUniformLocations()method needed for the rendering to get all the uniforms (glsl file)- Specified by:
getAllUniformLocations
in classShaderProgram
-
bindAttributes
protected void bindAttributes()binding the attributes- Specified by:
bindAttributes
in classShaderProgram
-
loadColour
protected void loadColour(org.joml.Vector3f colour) method to load the colour of the texts- Parameters:
colour
-
-
loadTranslation
protected void loadTranslation(org.joml.Vector2f translation) loads the translation of the text when rendered- Parameters:
translation
-
-