|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <cloth.hpp>
Public Member Functions | |
| void | Draw () |
| void | Clear () |
| void | Step (int step) |
| int | CreateVUData (u_int *packet) |
| void | InitParam () |
| CCloth (int grid_i=16, int grid_j=16, float grid_pitch=1.0f) | |
| virtual void | Initialize (CDataAlloc2< 1 > *alloc) |
| virtual void | Initialize (MDT_HEADER *header, CDataAlloc2< 1 > *alloc) |
| virtual int | DrawVu1 (u_int *packet, float(*matrix)[4], RenderInfo *info, VU1_PROGRAM program, u_long128 *draw_state, int unknown1, int unknown2) |
| virtual int | DrawVu1 (sceVif1Packet *packet, float(*matrix)[4], RenderInfo *info, VU1_PROGRAM program, u_long128 *draw_state, int unknown1, int unknown2) |
Public Member Functions inherited from CVisualVu1 | |
| CVisualVu1 () | |
| int | CreateVUdataFromMDT (u_int *block, u_int *data, int unknown0, int unknown1) |
| int | CreateVUdataFromMDTRemake (u_int *block, u_int *data, int unknown0) |
| virtual void | Initialize () |
| virtual void | SetMDTDataAddress (u_int *data) |
| virtual u_int * | GetMDTDataAddress () |
| virtual int | RemakeData (u_int *data) |
| CVisualVu1 & | operator= (const CVisualVu1 &src) |
| virtual void | Initialize () |
| virtual void | SetMDTDataAddress (unsigned int *data) |
| virtual unsigned int * | GetMDTDataAddress () |
| virtual int | RemakeData (unsigned int *data) |
| CVisualVu1 () | |
| int | CreateVUdataFromMDT (unsigned int *block, unsigned int *data, int unknown0, int unknown1) |
| int | CreateVUdataFromMDTRemake (unsigned int *block, unsigned int *data, int unknown0) |
Public Member Functions inherited from CVisual | |
| CVisual & | operator= (const CVisual &other) |
| CVisual () | |
| CVisual & | operator= (const CVisual &other) |
| CVisual () | |
Public Attributes | |
| int | unk_10 |
| int | unk_14 |
| u_int * | vu_data |
| u_int | vu_size |
| int | init_20 |
| u_int * | vu_block [2] |
| int | num_i |
| int | num_j |
| float | pitch |
| int | stop |
| CFrame * | frame |
| int | init_40 |
| CBound * | bound |
| int | floor_on |
| float | floor_y |
| void * | wind |
| float | wind_effect |
| float | normal_scale |
| MDT_MATERIAL | material |
| sceVu0FVECTOR | gravity |
| sceVu0FVECTOR | follow |
| sceVu0FVECTOR | stiffness |
| sceVu0FVECTOR | last_position |
| sceVu0FVECTOR | position |
| sceVu0FVECTOR | home [16][16] |
| sceVu0FVECTOR | point [16][16] |
| sceVu0FVECTOR | last [16][16] |
| sceVu0FVECTOR | rest [16][16] |
| sceVu0FVECTOR | speed [16][16] |
| sceVu0FVECTOR | normal_grid [16][16] |
| sceVu0FVECTOR | texture_coord [16][16] |
| int | polygon_divide [16] |
| int | mask [16][16] |
| sceVu0FVECTOR | world_home [16][16] |
Public Attributes inherited from CVisualVu1 | |
| int | unk_00 |
| int | unk_04 |
| u_int * | vu_data |
| u_int | vu_size |
| s32 | flags |
| s32 | unk_04 |
| s32 | unk_0C |
Public Attributes inherited from CVisual | |
| int | unk_00 |
| int | unk_04 |
| int | unk_0C |
Simulates and draws a fixed-capacity grid of cloth vertices.
| CCloth::CCloth | ( | int | grid_i = 16, |
| int | grid_j = 16, |
||
| float | grid_pitch = 1.0f |
||
| ) |
| void CCloth::Draw | ( | ) |
| void CCloth::Clear | ( | ) |
| void CCloth::Step | ( | int | step | ) |
| void CCloth::InitParam | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Rebuilds the cloth's packet for this frame and draws it through the vector unit.
Draws the cloth through the vector unit.
Reimplemented from CVisualVu1.
|
virtual |
Draws the cloth into a VIF packet.
Reimplemented from CVisualVu1.
| u_int* CCloth::vu_data |
| u_int CCloth::vu_size |
| int CCloth::init_20 |
| u_int* CCloth::vu_block[2] |
| float CCloth::pitch |
| int CCloth::stop |
| int CCloth::init_40 |
| CBound* CCloth::bound |
| int CCloth::floor_on |
| float CCloth::floor_y |
| void* CCloth::wind |
| float CCloth::wind_effect |
| float CCloth::normal_scale |
| MDT_MATERIAL CCloth::material |
| sceVu0FVECTOR CCloth::gravity |
| sceVu0FVECTOR CCloth::follow |
| sceVu0FVECTOR CCloth::stiffness |
| sceVu0FVECTOR CCloth::last_position |
| sceVu0FVECTOR CCloth::position |
| sceVu0FVECTOR CCloth::home[16][16] |
| sceVu0FVECTOR CCloth::point[16][16] |
| sceVu0FVECTOR CCloth::last[16][16] |
| sceVu0FVECTOR CCloth::rest[16][16] |
| sceVu0FVECTOR CCloth::speed[16][16] |
| sceVu0FVECTOR CCloth::normal_grid[16][16] |
| sceVu0FVECTOR CCloth::texture_coord[16][16] |
| int CCloth::polygon_divide[16] |
| int CCloth::mask[16][16] |