Package de.coreengine.rendering.programs
Class GUIShader
- java.lang.Object
-
- de.coreengine.rendering.programs.Shader
-
- de.coreengine.rendering.programs.GUIShader
-
public class GUIShader extends Shader
Shader for the gui renderer- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.programs.Shader
SHADERS_LOCATION
-
-
Constructor Summary
Constructors Constructor Description GUIShader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addShaders()
Adding shaders to programprotected void
bindAttribs()
Binding all vbo attributes to shader attribute ("in" variable)protected void
loadUniforms()
Loading uniform locationsvoid
prepareGui(GUIPane gui, Camera cam)
Prepare shader for next gui to rendervoid
setVPMat(javax.vecmath.Matrix4f mat)
Setting the vpMat variable of the shader-
Methods inherited from class de.coreengine.rendering.programs.Shader
addShader, bindAttribute, bindTexture, bindTextureUnit, getUniformLocation, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniform, setUniformArray1f, setUniformArray1i, setUniformArray2f, setUniformArray3f, start, stop
-
-
-
-
Method Detail
-
addShaders
protected void addShaders()
Description copied from class:Shader
Adding shaders to program- Specified by:
addShaders
in classShader
-
bindAttribs
protected void bindAttribs()
Description copied from class:Shader
Binding all vbo attributes to shader attribute ("in" variable)- Specified by:
bindAttribs
in classShader
-
loadUniforms
protected void loadUniforms()
Description copied from class:Shader
Loading uniform locations- Specified by:
loadUniforms
in classShader
-
prepareGui
public void prepareGui(GUIPane gui, Camera cam)
Prepare shader for next gui to render- Parameters:
gui
- Next gui to rendercam
- 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
-
-