Package de.coreengine.rendering.programs
Class FontShader
- java.lang.Object
-
- de.coreengine.rendering.programs.Shader
-
- de.coreengine.rendering.programs.FontShader
-
public class FontShader extends Shader
Shader for the font renderer- Author:
- Darius Dinger
-
-
Field Summary
-
Fields inherited from class de.coreengine.rendering.programs.Shader
SHADERS_LOCATION
-
-
Constructor Summary
Constructors Constructor Description FontShader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddShaders()Adding shaders to programprotected voidbindAttribs()Binding all vbo attributes to shader attribute ("in" variable)protected voidloadUniforms()Loading uniform locationsvoidprepareChar(GUIChar c)Prepare shader fo one next char to rendervoidprepareText(GUIPane pane, Camera cam)Prepare shader for next text to rendervoidsetVPMat(javax.vecmath.Matrix4f vpMat)-
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:ShaderAdding shaders to program- Specified by:
addShadersin classShader
-
bindAttribs
protected void bindAttribs()
Description copied from class:ShaderBinding all vbo attributes to shader attribute ("in" variable)- Specified by:
bindAttribsin classShader
-
loadUniforms
protected void loadUniforms()
Description copied from class:ShaderLoading uniform locations- Specified by:
loadUniformsin classShader
-
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 textcam- Current set camera
-
prepareChar
public void prepareChar(GUIChar c)
Prepare shader fo one next char to render- Parameters:
c- Char to render
-
-