ModelRenderable

パブリック クラス ModelRenderable

3D モデルを setRenderable(Renderable)Node にアタッチして、3D モデルをレンダリングします。

future = ModelRenderable.builder().setSource(context, R.raw.renderable).build();
 renderable = future.thenAccept(...);
 

ネストされたクラス

クラス ModelRenderable.Builder ModelRenderable のファクトリー クラス。 

継承される定数

継承されるフィールド

パブリック メソッド

static ModelRenderable.Builder
builder()
ModelRenderable を作成します。
AnimationData
getAnimationData(int インデックス)
この ModelRenderable にパッケージ化された、指定された位置にある AnimationData を返します。
AnimationData
getAnimationDataString 名)
一致する名前または null を含む AnimationData を返します。
整数
getAnimationDataCount()
この ModelRenderable でパッケージ化された AnimationData の合計数を返します。
整数
getBoneCount()
このレンダリング可能ファイルのスキン(スキン)の場合、ボーンの数を返します。
文字列
getBoneName(int boneIndex)
指定されたボーン インデックスのボーンの名前を返します。
整数
getBoneParentIndex(int boneIndex)
指定されたボーン インデックスの親ボーンのインデックスを返します。
ModelRenderable
makeCopy()
この ModelRenderable の新しいインスタンスを作成します。

継承されるメソッド

パブリック メソッド

public static ModelRenderable.Builder builder ()

ModelRenderable を作成します。

public AnimationData getAnimationData (int インデックス)

この ModelRenderable にパッケージ化された、指定された位置にある AnimationData を返します。

パラメータ
index
スロー値
IndexOutOfBoundsException} - インデックスが範囲外の場合(index < 0 || index >= getAnimationDataCount())。

public AnimationData getAnimationData (String name)

一致する名前または null を含む AnimationData を返します。

パラメータ
name

public int getAnimationDataCount ()

この ModelRenderable でパッケージ化された AnimationData の合計数を返します。

public int getBoneCount ()

このレンダリング可能ファイルのスキン(スキン)の場合、ボーンの数を返します。このレンダリング可能要素がスキンされていない場合は、0 を返します。

public String getBoneName (int boneIndex)

指定されたボーン インデックスのボーンの名前を返します。

パラメータ
boneIndex
スロー値
IndexOutOfBoundsException boneIndex が >= getBoneCount() の場合。

public int getBoneParentIndex (int boneIndex)

指定されたボーン インデックスの親ボーンのインデックスを返します。ボーンに親がない場合はルートボーンであり、-1 が返されます。

パラメータ
boneIndex
スロー値
IndexOutOfBoundsException boneIndex が >= getBoneCount() の場合。

public ModelRenderable makeCopy ()

この ModelRenderable の新しいインスタンスを作成します。

新しいレンダリング可能アイテムには、すべての変更可能な状態の一意のコピーが含まれます。ModelRenderable で参照されているすべてのマテリアルもインスタンス化されます。不変のデータは、インスタンス間で共有されます。