Class FontShader

java.lang.Object
engine.shaders.ShaderProgram
engine.fontRendering.FontShader

public class FontShader extends ShaderProgram
Class for the Font Shader extending the Shader Program used mainly for texts
  • 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 class ShaderProgram
    • bindAttributes

      protected void bindAttributes()
      binding the attributes
      Specified by:
      bindAttributes in class ShaderProgram
    • 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 -