モデル情報を書き出し
putmodel val,model_id,sub_id
val : 情報が代入されている変数名 model_id : モデルID sub_id : モデルサブID
(プラグイン / モジュール : hgimg)
モデル情報の書き出しを行ないます。
valで指定された変数の内容が、指定モデルID、サブIDの情報として登録されます。
変数に代入される値は、以下のC構造体のイメージのコピーです。
これらのデータの中には、通常HSPで内容を書き換えたり参照することが難しいものも含まれています。
getmodel命令と組み合わせて、イメージ全体として読み書きを行なうような場合に使用されるもので、通常は使用されません。
// シーンモデル情報
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 |