Class GUIShader


  • public class GUIShader
    extends Shader
    Shader for the gui renderer
    Author:
    Darius Dinger
    • Constructor Detail

      • GUIShader

        public GUIShader()
    • 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
      • prepareGui

        public void prepareGui​(GUIPane gui,
                               Camera cam)
        Prepare shader for next gui to render
        Parameters:
        gui - Next gui to render
        cam - Current set camera
      • setVPMat

        public void setVPMat​(javax.vecmath.Matrix4f mat)
        Setting the vpMat variable of the shader
        Parameters:
        mat - Matrix to set as vpMat