モデル情報を読み出し
getmodel val,model_id,sub_id
val : 情報が代入される変数名 model_id : モデルID sub_id : モデルサブID
(プラグイン / モジュール : hgimg)
モデル情報の読み出しを行ないます。
valで指定された変数に、指定モデルID、サブIDの情報が代入されます。
変数に代入される値は、以下のC構造体のイメージがコピーされます。
これらのデータの中には、通常HSPで内容を書き換えたり参照することが難しいものも含まれています。
イメージ全体として読み書きを行なうような場合に使用されるもので、通常は使用されません。
// シーンモデル情報
typedef struct
{
VECTOR pos; // local Position
VECTOR ang; // local Angle
VECTOR scale; // local Scale
short id; // Model ID
short opt; // option (no use)
short num; // num of NODE
short nummax; // Maximum num of NODE(0=none)
PNODE **node; // Node ptr
void *sibling; // Sibling Object
void *child; // Child Object
float bound; // Bounding Box Max Length
short aindex; // Animation Max Index ( 0 = No Anim)
short anum; // Animation Frame Max ( 0 = No Anim )
ANMINF *ani; // Animation Data Array (option)
short anifr[16]; // Animation Frame Start Index (option)
short animax[16]; // Animation Frame Max Index (option)
} MODEL;
| プラグイン / モジュール | hgimg |
| バージョン | 2.61 |
| 作成日 | 2004/03/01 |
| 著作者 | onitama |
| URL | http://www.onionsoft.net/ |
| 備考 | hgimg.as(DirectX使用時はhgimgx.as)をインクルードすること。 |
| タイプ | 拡張命令 |
| グループ | 拡張画面制御命令 |
| hs ファイル | hsphelp\hgimg.hs |