|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.material.Technique
public class Technique
Represents a technique instance.
コンストラクタの概要 | |
---|---|
Technique()
Serialization only. |
|
Technique(Material owner,
TechniqueDef def)
Creates a new technique instance that implements the given technique definition. |
メソッドの概要 | |
---|---|
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)
Prepares the technique for use by loading the shader and setting the proper defines based on material parameters. |
void |
read(JmeImporter im)
|
void |
write(JmeExporter ex)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Technique(Material owner, TechniqueDef def)
owner
- The material that will own this techniquedef
- The technique definition being implemented.public Technique()
メソッドの詳細 |
---|
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)
assetManager
- The asset manager to use for loading shaders.public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |