NDD_INSTANCE *ndEntryDeformVtxst(NDD_INSTANCE *isp, NDR_DEFORM *dmfp, int ofs, int gid);
Explanation
Make an entry of vertex texture coordinate deform instance.
Parameter
NDD_INSTANCE *isp;
Pointer for active vertex instance
NDR_DEFORM *dmfp;
Pointer for vertex texture coordinate deform structure
int ofs;
Offset when referring raw vertex texture coordinate data list
int gid;
Instance group ID
Return value
NDD_INSTANCE *;
Pointer for the created vertex texture coordinate deform instance
Note
This instance is linked to the exclusive parent(deform_root_instp).
3 memories are reserved inside using the system function, malloc().
Also, a call back for terminating is set, and the memory reserved by
malloc() is released inside the call back routine.
ndEntryDeformShape
関数名
ndEntryDeformShape
構文
NDD_INSTANCE *ndEntryDeformShape(NDD_INSTANCE *isp, int ofs_rawvtx, int ofs_rawvtxcol, int ofs_rawvtxnv, int ofs_rawvtxst, int gid, int flag);
説明
オブジェクトインスタンスの参照するシェープを乗っとり、変調した頂点情報
にすり替えます。
パラメータ
NDD_INSTANCE *isp;
変調対象のオブジェクトインスタンスへのポインタ
int ofs_rawvtx;
int ofs_rawvtxcol;
int ofs_rawvtxnv;
int ofs_rawvtxst;
Offset when referring each data list
int gid;
インスタンスグループID
int flag;
ビットアサインされた生成フラグ。ビットが1の時有効になります
bit 0 ... 頂点デフォームをエントリーする
bit 1 ... 頂点カラーデフォームをエントリーする
bit 2 ... 頂点法線デフォームをエントリーする
bit 3 ... Make an entry of vertex texture coordinate doform.
戻り値
NDD_INSTANCE *;
生成した、活性頂点インスタンスのポインタ
注意
The upper instance of ndEntryDeformVtx(), ndEntryDeformVtxnv(), ndEntryDeformVtxcol(), and
ndEntryDeformVtxst() are created.
関数内で、各デフォームインスタンスの生成を、パラメータの flag を
見ながら評価します。
Gfx の構築の非同期性に整合させる為、Vtx バッファは2つ持っています。
内部では3つのメモリを、システム関数の malloc()を使用して確保しています。