Package com.jme3.material
Class Technique
java.lang.Object
com.jme3.material.Technique
Represents a technique instance.
-
Constructor Summary
ConstructorsConstructorDescriptionTechnique(Material owner, TechniqueDef def) Creates a new technique instance that implements the given technique definition. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getDef()Returns the technique definition that is implemented by this technique instance.Get theDefineListfor dynamic defines.intCompute the sort ID.
-
Constructor Details
-
Technique
Creates a new technique instance that implements the given technique definition.- Parameters:
owner- The material that will own this techniquedef- The technique definition being implemented.
-
-
Method Details
-
getDef
Returns the technique definition that is implemented by this technique instance.- Returns:
- the technique definition that is implemented by this technique instance.
-
getDynamicDefines
Get theDefineListfor dynamic defines. Dynamic defines are used to implement material parameter -- define bindings as well asTechniqueDefLogicspecific functionality.- Returns:
- all dynamic defines.
-
getAllDefines
Deprecated.Preset defines are precompiled intoTechniqueDef.getShaderPrologue(), whereas dynamic defines are available viagetDynamicDefines().- Returns:
- nothing.
-
getSortId
public int getSortId()Compute the sort ID. Similar toObject.hashCode()but used for sorting geometries for rendering.- Returns:
- the sort ID for this technique instance.
-
TechniqueDef.getShaderPrologue(), whereas dynamic defines are available viagetDynamicDefines().