#include <pg_mdl_data.h>
Classes | |
| struct | ModelDataHeader |
| struct | NodeInfo |
Public Types | |
| enum | ModelDataMode { MODE_READ, MODE_WRITE } |
Public Member Functions | |
| pgDefineException (ExceptionInvalidArgument) | |
| pgDefineException (ExceptionInvalidCall) | |
| pgDefineException (ExceptionInvalidData) | |
| pgDefineException (ExceptionNotInitialized) | |
| void | initAsReader (const void *data, u32 data_size) |
| void | initAsWriter (u16 node_num, u16 vert_num, pgID tex_id, bool has_normal) |
| ModelDataMode | getMode () const |
| u16 | getNodeNum () const |
| u16 | getVertNum () const |
| bool | hasNormal () const |
| pgID | getTextureID () const |
| u16 | getNodeParentIndex (u16 node_index) const |
| void | setNodeParentIndex (u16 node_index, u16 parent_index) |
| void | setNodeParentIndex_noParent (u16 node_index) |
| const pgMat & | getNodeLocal (u16 node_index) const |
| void | setNodeLocal (u16 node_index, const pgMat &local) |
| pgPrim::PrimMode | getNodePrimMode (u16 node_index) const |
| void | setNodePrimMode (u16 node_index, pgPrim::PrimMode prim_mode) |
| u16 | getNodeVertIndex (u16 node_index) const |
| u16 | getNodeVertNum (u16 node_index) const |
| void | setNodeVertInfo (u16 node_index, u16 vert_index, u16 vert_num) |
| const pgPrim::PrimData * | getNodePrimData (u16 node_index) const |
| const pgVec * | getNodeNormalData (u16 node_index) const |
| pgPrim::BlendMode | getNodeBlendMode (u16 node_index) const |
| void | setNodeBlendMode (u16 node_index, pgPrim::BlendMode blend_mode) |
| const pgVec & | getNodeClipBoundMinForReader (u16 node_index) const |
| const pgVec & | getNodeClipBoundMaxForReader (u16 node_index) const |
| const pgVec & | getVertPos (u16 vert_index) const |
| void | setVertPos (u16 vert_index, const pgVec &pos) |
| pgCol | getVertCol (u16 vert_index) const |
| void | setVertCol (u16 vert_index, pgCol col) |
| r32 | getVertU (u16 vert_index) const |
| r32 | getVertV (u16 vert_index) const |
| void | setVertUV (u16 vert_index, r32 u, r32 v) |
| const pgVec & | getVertN (u16 vert_index) const |
| void | setVertN (u16 vert_index, const pgVec &n) |
| void | calcNormalAsTriangles (bool is_smoothing) |
| void | registerAsResource (pgID res_id) |
Static Public Attributes | |
| static const u32 | MODEL_DATA_VERSION = 50 |
1.5.8