|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--com.jblend.graphics.j3d.Effect3D
描画効果の情報を表すクラス。
光源、シェーディングタイプ、半透明機能の有効/無効の情報を保持します。
フィールドの概要 | |
static int |
NORMAL_SHADING
通常シェーディング(=0) |
static int |
TOON_SHADING
トゥーンシェーディング(=1) |
コンストラクタの概要 | |
Effect3D()
Effect3Dコンストラクタ 光源の利用なし、NORMAL_SHADING、半透明機能有効となります。 |
|
Effect3D(Light light,
int shading,
boolean isEnabled,
Texture sphereMap)
Effect3Dコンストラクタ 環境マッピングを利用しない場合はnullを設定します。 |
メソッドの概要 | |
Light |
getLight()
光源を取得する。 |
int |
getShading()
シェーディングタイプを取得する。 |
Texture |
getSphereMap()
環境マッピングを取得する。 |
int |
getThreshold()
トゥーンシェーディングの現在の閾値レベルを取得する。 |
int |
getThresholdHigh()
トゥーンシェーディングの現在の「レベルが閾値以上時のRGB設定値」を取得する。 |
int |
getThresholdLow()
トゥーンシェーディングの現在の「レベルが閾値以下時のRGB設定値」を取得する。 |
boolean |
isSemiTransparentEnabled()
半透明機能の状態を取得する。 |
void |
setLight(Light light)
光源を設定する。 |
void |
setSemiTransparentEnabled(boolean isEnabled)
半透明機能の有効/無効を設定する。 |
void |
setShading(int shading)
シェーディングタイプを設定する。 |
void |
setSphereMap(Texture sphereMap)
環境マッピングを設定する。 |
void |
setThreshold(int threshold,
int high,
int low)
トゥーンシェーディングの閾値レベルを設定する。 |
クラス java.lang.Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int NORMAL_SHADING
public static final int TOON_SHADING
コンストラクタの詳細 |
public Effect3D()
public Effect3D(Light light, int shading, boolean isEnabled, Texture sphereMap)
light
- 光源(nullの場合、光源の利用なし)shading
- シェーディングタイプisEnabled
- true:半透明機能有効sphereMap
- 新しい環境マッピングjava.lang.IllegalArgumentException
- シェーディングタイプが不正な場合java.lang.IllegalArgumentException
- sphereMapが環境マッピング用テクスチャーでない場合に発生します。メソッドの詳細 |
public Light getLight()
public void setLight(Light light)
light
- 光源(nullの場合、光源の利用なし)public int getShading()
public void setShading(int shading)
shading
- シェーディングタイプjava.lang.IllegalArgumentException
- シェーディングタイプが不正な場合public int getThreshold()
public int getThresholdHigh()
public int getThresholdLow()
public void setThreshold(int threshold, int high, int low)
threshold
- 閾値レベル(0〜255)high
- レベルが閾値以上時のRGB設定値(0〜255;255で100%)low
- レベルが閾値以下時のRGB設定値(0〜255;255で100%)java.lang.IllegalArgumentException
- 各値に範囲外の値が指定された場合public boolean isSemiTransparentEnabled()
public void setSemiTransparentEnabled(boolean isEnabled)
isEnabled
- true:半透明機能有効public Texture getSphereMap()
public void setSphereMap(Texture sphereMap)
sphereMap
- 新しい環境マッピングjava.lang.IllegalArgumentException
- sphereMapが環境マッピング用テクスチャーでない場合に発生します。
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |