com.jme3.material
クラス Technique

java.lang.Object
  上位を拡張 com.jme3.material.Technique
すべての実装されたインタフェース:
Savable

public class Technique
extends java.lang.Object
implements Savable

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
 

コンストラクタの詳細

Technique

public Technique(Material owner,
                 TechniqueDef def)
Creates a new technique instance that implements the given technique definition.

パラメータ:
owner - The material that will own this technique
def - The technique definition being implemented.

Technique

public Technique()
Serialization only. Do not use.

メソッドの詳細

getDef

public TechniqueDef getDef()
Returns the technique definition that is implemented by this technique instance.

戻り値:
the technique definition that is implemented by this technique instance.

getShader

public Shader getShader()
Returns the shader currently used by this technique instance.

Shaders are typically loaded dynamically when the technique is first used, therefore, this variable will most likely be null most of the time.

戻り値:
the shader currently used by this technique instance.

getWorldBindUniforms

public java.util.List<Uniform> getWorldBindUniforms()
Returns a list of uniforms that implements the world parameters that were requested by the material definition.

戻り値:
a list of uniforms implementing the world parameters.

isNeedReload

public boolean isNeedReload()
Returns true if the technique must be reloaded.

If a technique needs to reload, then the Material should call makeCurrent(com.jme3.asset.AssetManager) on this technique.

戻り値:
true if the technique must be reloaded.

makeCurrent

public void makeCurrent(AssetManager assetManager)
Prepares the technique for use by loading the shader and setting the proper defines based on material parameters.

パラメータ:
assetManager - The asset manager to use for loading shaders.

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException