crystalspace.jbind.interfaces.ivideo.shader.shader
Interface iShaderVariableContext

All Superinterfaces:
iBase, iPointer
All Known Subinterfaces:
iMaterial, iShader
All Known Implementing Classes:
csMaterial, csShader, csShaderVariableContext

public interface iShaderVariableContext
extends iBase

This is a baseclass for all interfaces which provides shadervariables both dynamically and static.

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

Method Summary
 void addVariable(csShaderVariable variable)
          Add a variable to this context.
 int fillVariableList(csShaderVariableProxyList list)
          Fill a csShaderVariableList.
 csShaderVariable getVariable(int name)
          Get a named variable from this context.
 csShaderVariable getVariableAdd(int name)
          Like GetVariable();, but it also adds it if doesn't exist already.
 csShaderVariable getVariableRecursive(int name)
          Get a named variable from this context, and any context above/outer.
 csShaderVariable getVariableRecursiveAdd(int name)
          Like GetVariable();, but it also adds it if doesn't exist already.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

addVariable

public void addVariable(csShaderVariable variable)
Add a variable to this context. Referenced by GetVariableAdd();, and GetVariableRecursiveAdd();.

Parameters:
variable -

fillVariableList

public int fillVariableList(csShaderVariableProxyList list)
Fill a csShaderVariableList. Return number of variables filled.

Parameters:
list -
Returns:

getVariable

public csShaderVariable getVariable(int name)
Get a named variable from this context. Referenced by GetVariableAdd();.

Parameters:
name -
Returns:

getVariableAdd

public csShaderVariable getVariableAdd(int name)
Like GetVariable();, but it also adds it if doesn't exist already. Definition at line 69 of file shader.h. References AddVariable();, csStringID, and GetVariable();.

Parameters:
name -
Returns:

getVariableRecursive

public csShaderVariable getVariableRecursive(int name)
Get a named variable from this context, and any context above/outer. Referenced by GetVariableRecursiveAdd();.

Parameters:
name -
Returns:

getVariableRecursiveAdd

public csShaderVariable getVariableRecursiveAdd(int name)
Like GetVariable();, but it also adds it if doesn't exist already. Definition at line 84 of file shader.h. References AddVariable();, csStringID, and GetVariableRecursive();

Parameters:
name -
Returns: