|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <visual.hpp>
Public Member Functions | |
| CVisualMDTVu1 () | |
| 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) |
| void | SetMDTDataAddress (unsigned int *) |
| void | GetMDTDataAddress () |
| void | Initialize () |
| CVisualMDTVu1 () | |
| void | DrawVu1 (unsigned int *, float(*)[4], RenderInfo *, VU1_PROGRAM, RenderInfo *, int, int) |
| void | DrawVu1 (sceVif1Packet *, float(*)[4], RenderInfo *, VU1_PROGRAM, sceVif1Packet *, int, int) |
| int | RemakeData (unsigned int *) |
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) |
| CVisualVu1 & | operator= (const CVisualVu1 &src) |
| 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 | |
| u_int * | data |
| int | copy_on_draw |
| u_int * | vu_data_buffer [2] |
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 |
The same with a copy of the model file kept beside the built block, which is what lets the geometry be rebuilt later without the loader. Both vu_data_buffer entries are the same address unless a second block was built for the model, and then they are the two of them.
Definition at line 143 of file visual.hpp.
| CVisualMDTVu1::CVisualMDTVu1 | ( | ) |
Constructs a model visual and clears it.
Definition at line 387 of file visualvu1.cpp.
| CVisualMDTVu1::CVisualMDTVu1 | ( | ) |
|
virtual |
Clears the model visual's data pointer and packet buffers.
Clears the model visual's data pointer and packet.
Reimplemented from CVisualVu1.
Definition at line 372 of file visualvu1.cpp.
|
virtual |
Points the visual at the model data it draws from.
Reimplemented from CVisualVu1.
Definition at line 350 of file visualvu1.cpp.
|
virtual |
Gives the model data the visual draws from.
Reimplemented from CVisualVu1.
Definition at line 361 of file visualvu1.cpp.
|
virtual |
Rebuilds VU data and returns its size in quadwords, or zero if no MDT model is retained.
Reimplemented from CVisualVu1.
Reimplemented in CVisualShadow.
Definition at line 967 of file visualvu1.cpp.
|
virtual |
Draws the model, from a copy of this frame's block when the visual asks for one.
Reimplemented from CVisualVu1.
Reimplemented in CVisualShadow.
Definition at line 939 of file visualvu1.cpp.
|
virtual |
Draws the model into a VIF packet, choosing the buffer the frame is using.
Reimplemented from CVisualVu1.
Reimplemented in CVisualShadow.
Definition at line 962 of file visualvu1.cpp.
|
virtual |
Reimplemented from CVisualVu1.
|
virtual |
Reimplemented from CVisualVu1.
|
virtual |
Reimplemented from CVisualVu1.
| void CVisualMDTVu1::DrawVu1 | ( | unsigned int * | , |
| float(*) | [4], | ||
| RenderInfo * | , | ||
| VU1_PROGRAM | , | ||
| RenderInfo * | , | ||
| int | , | ||
| int | |||
| ) |
| void CVisualMDTVu1::DrawVu1 | ( | sceVif1Packet * | , |
| float(*) | [4], | ||
| RenderInfo * | , | ||
| VU1_PROGRAM | , | ||
| sceVif1Packet * | , | ||
| int | , | ||
| int | |||
| ) |
|
virtual |
Rebuilds VU data and returns its size in quadwords, or zero if no MDT model is retained.
Reimplemented from CVisualVu1.
Reimplemented in CVisualShadow.
| u_int* CVisualMDTVu1::data |
Retained source MDT image used to rebuild the visual.
Definition at line 145 of file visual.hpp.
| int CVisualMDTVu1::copy_on_draw |
Whether each draw works from a copy of the built block in the frame's data arena.
Definition at line 146 of file visual.hpp.
| u_int* CVisualMDTVu1::vu_data_buffer[2] |
Built block each display buffer draws from.
Definition at line 147 of file visual.hpp.