Maven module :un.engine : engine-opengl-util :
Class : un.impl.opengl.shader.ShaderUtils
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : -
Functions : loadShader, loadShaders, loadShaders, loadShaderProgram, getCharsFromStream, GLSLtoGLType




OpenGL constraints : GL2ES2
param  gl
param  shaderType : GLC.GLSL.SHADER.X
param  shaderCode
return
public int loadShader (GL gl, int shaderType, Chars shaderCode)

public int loadShaders (GL gl, Chars vertexShaderCode, Chars tessControlShaderCode, Chars tessEvalShaderCode, Chars geometryShaderCode, Chars fragmentShaderCode)

public int loadShaders (GL gl, Chars vertexShaderCode, Chars tessControlShaderCode, Chars tessEvalShaderCode, Chars geometryShaderCode, Chars fragmentShaderCode, Chars[] trsFeedbackVars, int trsFeedBAckMode)

public int loadShaderProgram (GL gl, int vertexShaderGlid, int tessControlShaderGlid, int tessEvalShaderGlid, int geometryShaderGlid, int fragmentShaderGlid, Chars[] trsFeedbackVars, int trsFeedBAckMode)


Reads the given stream and return an array of Strings.
param  stream input stream
return  String array
throws  IOException
public Chars getCharsFromStream (ByteInputStream stream)

public Integer GLSLtoGLType (Chars typeName)