Package com.jme3.material
Class Technique
java.lang.Object
com.jme3.material.Technique
Represents a technique instance.
- 
Constructor SummaryConstructorsConstructorDescriptionTechnique(Material owner, TechniqueDef def) Creates a new technique instance that implements the given technique definition.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.getDef()Returns the technique definition that is implemented by this technique instance.Get theDefineListfor dynamic defines.intCompute the sort ID.
- 
Constructor Details- 
TechniqueCreates a new technique instance that implements the given technique definition.- Parameters:
- owner- The material that will own this technique
- def- The technique definition being implemented.
 
 
- 
- 
Method Details- 
getDefReturns the technique definition that is implemented by this technique instance.- Returns:
- the technique definition that is implemented by this technique instance.
 
- 
getDynamicDefinesGet theDefineListfor dynamic defines. Dynamic defines are used to implement material parameter -- define bindings as well asTechniqueDefLogicspecific functionality.- Returns:
- all dynamic defines.
 
- 
getAllDefinesDeprecated.Preset defines are precompiled intoTechniqueDef.getShaderPrologue(), whereas dynamic defines are available viagetDynamicDefines().- Returns:
- nothing.
 
- 
getSortIdpublic 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().