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

author  Johann Sorel


Variables : -
Functions : ShaderProgram, ShaderProgram, getShader, setShader, setTransferFeedback, usesTesselationShader, usesGeometryShader, getUniform, getUniform, getVertexAttribute, getGpuID, enable, disable, isOnSystemMemory, isOnGpuMemory, loadOnSystemMemory, loadOnGpuMemory, unloadFromSystemMemory, unloadFromGpuMemory



public void ShaderProgram ()

public void ShaderProgram (Chars[] shaderTexts, Chars[] trsFeedBackVars, int trsFeedBackMode)


param  type one of Shader.SHADER_X
return
public Shader getShader (int type)

public void setShader (Shader shader, int type)

public void setTransferFeedback (Chars[] trsFeedBackVars, int trsFeedBackMode)


Indicate if this program uses the tesselation phases.
return  true if tesselation is present.
public boolean usesTesselationShader ()


Indicate if this program uses the geometry phase.
return  true if geometry is present.
public boolean usesGeometryShader ()

public Uniform getUniform (Chars name)


OpenGL constraints : GL2ES2
param  name
param  gl
param  type
return
public Uniform getUniform (Chars name, GL gl, int type)


OpenGL constraints : GL2ES2
param  name
param  gl
return
public VertexAttribute getVertexAttribute (Chars name, GL gl, int slotSize)


Get shader program id.
return  shader program id
public int getGpuID ()


Activate the program.
OpenGL constraints : GL2ES2
param  gl
public void enable (GL gl)


Desactivate the program.
OpenGL constraints : GL2ES2
param  gl
public void disable (GL gl)

public boolean isOnSystemMemory ()

public boolean isOnGpuMemory ()

public void loadOnSystemMemory (GL gl)

public void loadOnGpuMemory (GL gl)

public void unloadFromSystemMemory (GL gl)

public void unloadFromGpuMemory (GL gl)