Class FontShader


  • public class FontShader
    extends Shader
    Shader for the font renderer
    Author:
    Darius Dinger
    • Constructor Detail

      • FontShader

        public FontShader()
    • Method Detail

      • addShaders

        protected void addShaders()
        Description copied from class: Shader
        Adding shaders to program
        Specified by:
        addShaders in class Shader
      • bindAttribs

        protected void bindAttribs()
        Description copied from class: Shader
        Binding all vbo attributes to shader attribute ("in" variable)
        Specified by:
        bindAttribs in class Shader
      • loadUniforms

        protected void loadUniforms()
        Description copied from class: Shader
        Loading uniform locations
        Specified by:
        loadUniforms in class Shader
      • setVPMat

        public void setVPMat​(javax.vecmath.Matrix4f vpMat)
        Parameters:
        vpMat - View projection matrix to load
      • prepareText

        public void prepareText​(GUIPane pane,
                                Camera cam)
        Prepare shader for next text to render
        Parameters:
        pane - Pane that contains the text
        cam - Current set camera
      • prepareChar

        public void prepareChar​(GUIChar c)
        Prepare shader fo one next char to render
        Parameters:
        c - Char to render