crystalspace.jbind.interfaces.ivideo.shader.shader
Interface iShader

All Superinterfaces:
iBase, iPointer, iShaderVariableContext
All Known Implementing Classes:
csShader

public interface iShader
extends iShaderVariableContext

Specific shader. Can/will be either render-specific or general The shader in this form is "compiled" and cannot be modified

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/pubapi/structiShader.php

Method Summary
 boolean activatePass(int number)
          Activate a pass for rendering.
 boolean deactivatePass()
          Completly deactivate a pass.
 java.lang.String getName()
          Retrieve name of shader.
 int getNumberOfPasses()
          Get number of passes this shader have.
 boolean setupPass(csRenderMesh mesh, iShaderVariableContext[] dynamicDomains)
          Setup a pass.
 boolean teardownPass()
          Tear down current state, and prepare for a new mesh (for which SetupPass is called);.
 
Methods inherited from interface crystalspace.jbind.interfaces.ivideo.shader.shader.iShaderVariableContext
addVariable, fillVariableList, getVariable, getVariableAdd, getVariableRecursive, getVariableRecursiveAdd
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

activatePass

public boolean activatePass(int number)
Activate a pass for rendering.

Parameters:
number -
Returns:

deactivatePass

public boolean deactivatePass()
Completly deactivate a pass.

Returns:

getName

public java.lang.String getName()
Retrieve name of shader.

Specified by:
getName in interface iBase
Returns:
See Also:
iBase.getName()

getNumberOfPasses

public int getNumberOfPasses()
Get number of passes this shader have.

Returns:

setupPass

public boolean setupPass(csRenderMesh mesh,
                         iShaderVariableContext[] dynamicDomains)
Setup a pass.

Parameters:
mesh -
dynamicDomains -
Returns:

teardownPass

public boolean teardownPass()
Tear down current state, and prepare for a new mesh (for which SetupPass is called);.

Returns: