|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.material.Technique
public class Technique
Represents a technique instance.
Constructor Summary | |
---|---|
Technique()
Serialization only. |
|
Technique(Material owner,
TechniqueDef def)
Creates a new technique instance that implements the given technique definition. |
Method Summary | |
---|---|
TechniqueDef |
getDef()
Returns the technique definition that is implemented by this technique instance. |
Shader |
getShader()
Returns the shader currently used by this technique instance. |
java.util.List<Uniform> |
getWorldBindUniforms()
Returns a list of uniforms that implements the world parameters that were requested by the material definition. |
boolean |
isNeedReload()
Returns true if the technique must be reloaded. |
void |
makeCurrent(AssetManager assetManager,
boolean techniqueSwitched)
Prepares the technique for use by loading the shader and setting the proper defines based on material parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Technique(Material owner, TechniqueDef def)
owner
- The material that will own this techniquedef
- The technique definition being implemented.public Technique()
Method Detail |
---|
public TechniqueDef getDef()
public Shader getShader()
Shaders are typically loaded dynamically when the technique is first used, therefore, this variable will most likely be null most of the time.
public java.util.List<Uniform> getWorldBindUniforms()
public boolean isNeedReload()
If a technique needs to reload, then the Material
should
call #makeCurrent(com.jme3.asset.AssetManager)
on this
technique.
public void makeCurrent(AssetManager assetManager, boolean techniqueSwitched)
assetManager
- The asset manager to use for loading shaders.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |