|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <visual.hpp>
Public Member Functions | |
| 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) |
| 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) |
| CVisualVu1 & | operator= (const CVisualVu1 &src) |
| virtual void | Initialize () |
| virtual void | SetMDTDataAddress (unsigned int *data) |
| virtual unsigned int * | GetMDTDataAddress () |
| virtual int | RemakeData (unsigned int *data) |
| virtual int | DrawVu1 (unsigned 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) |
| 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_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 |
Geometry the Vector Unit draws from a data block built once at load time. The address of that block and its size in quadwords are what the loader reads back after asking for it, so that it can reserve exactly as much as was written and account for it.
Definition at line 70 of file visual.hpp.
| CVisualVu1::CVisualVu1 | ( | ) |
Constructs a vector-unit visual and clears it.
Definition at line 339 of file visualvu1.cpp.
| CVisualVu1::CVisualVu1 | ( | ) |
Constructs a vector-unit visual and clears it.
| int CVisualVu1::CreateVUdataFromMDT | ( | u_int * | block, |
| u_int * | data, | ||
| int | unknown0, | ||
| int | unknown1 | ||
| ) |
Builds a model's VU data block and returns its size in quadwords.
Definition at line 705 of file visualvu1.cpp.
| int CVisualVu1::CreateVUdataFromMDTRemake | ( | u_int * | block, |
| u_int * | data, | ||
| int | unknown0 | ||
| ) |
Rebuilds a VU data block from retained model data and returns its size in quadwords.
Definition at line 837 of file visualvu1.cpp.
|
virtual |
The one it takes over from its base and the five it adds, in the order the vtable holds them — which is what decides the slot each call site reaches, so the order is evidence rather than layout. Clears the vector-unit visual's packet pointers and sizes.
Clears the vector-unit visual's packet pointers and sizes.
Reimplemented from CVisual.
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
Definition at line 324 of file visualvu1.cpp.
|
virtual |
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
Definition at line 270 of file character.cpp.
|
virtual |
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
Definition at line 273 of file character.cpp.
|
virtual |
Returns zero because this visual has no retained model data to rebuild.
Reimplemented in CVisualShadow, CVisualMDTVu1, and CVisualMDTVu1.
Definition at line 167 of file visualvu1.cpp.
|
virtual |
Draws the visual into a packet through the vector unit.
Reimplemented in CCloth, CVisualMDTVu1, and CVisualShadow.
Definition at line 398 of file visualvu1.cpp.
|
virtual |
Draws the visual into a VIF packet and reserves the words it wrote.
Draws the visual into a VIF packet.
Reimplemented in CCloth, CVisualMDTVu1, and CVisualShadow.
Definition at line 221 of file visualvu1.cpp.
| CVisualVu1 & CVisualVu1::operator= | ( | const CVisualVu1 & | src | ) |
|
virtual |
Clears the vector-unit visual's packet pointers and sizes.
Reimplemented from CVisual.
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
|
virtual |
Takes the address that the model data of the object is read from. The base object keeps none.
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
|
virtual |
Gets the address that the model data of the object is read from. The base object keeps none.
Reimplemented in CVisualMDTVu1, and CVisualMDTVu1.
|
virtual |
Returns zero because this visual has no retained model data to rebuild.
Reimplemented in CVisualShadow, CVisualMDTVu1, and CVisualMDTVu1.
|
virtual |
Draws the visual into a packet through the vector unit.
Reimplemented in CCloth, CVisualMDTVu1, and CVisualShadow.
|
virtual |
Draws the visual into a VIF packet.
Reimplemented in CCloth, CVisualMDTVu1, and CVisualShadow.
| int CVisualVu1::CreateVUdataFromMDT | ( | unsigned int * | block, |
| unsigned int * | data, | ||
| int | unknown0, | ||
| int | unknown1 | ||
| ) |
Builds a model's VU data block and returns its size in quadwords.
| int CVisualVu1::CreateVUdataFromMDTRemake | ( | unsigned int * | block, |
| unsigned int * | data, | ||
| int | unknown0 | ||
| ) |
Rebuilds a VU data block from retained model data and returns its size in quadwords.
| int CVisualVu1::unk_00 |
Definition at line 72 of file visual.hpp.
| int CVisualVu1::unk_04 |
Definition at line 73 of file visual.hpp.
| u_int* CVisualVu1::vu_data |
Vector Unit command data built for this visual.
Definition at line 74 of file visual.hpp.
| u_int CVisualVu1::vu_size |
Size of the Vector Unit data in quadwords.
Definition at line 75 of file visual.hpp.
| s32 CVisualVu1::flags |
Draw flags of the base visual, cleared when it is initialised.
Definition at line 17 of file visualvu1.hpp.
| s32 CVisualVu1::unk_04 |
Definition at line 18 of file visualvu1.hpp.
| s32 CVisualVu1::unk_0C |
Definition at line 78 of file visualvu1.hpp.