DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
cloth.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
7#include "dataalloc.hpp"
8#include "mdt.hpp"
9#include "visualvu1.hpp"
10
11class CBound;
12class CFrame;
13
17class CCloth : public CVisualVu1 {
18public:
19 int unk_10;
20 int unk_14;
21 u_int *vu_data;
22 u_int vu_size;
23 int init_20;
24 u_int *vu_block[2];
25 int num_i;
26 int num_j;
27 float pitch;
28 int stop;
30 int init_40;
33 float floor_y;
34 void *wind;
38 sceVu0FVECTOR gravity;
39 sceVu0FVECTOR follow;
40 sceVu0FVECTOR stiffness;
41 sceVu0FVECTOR last_position;
42 sceVu0FVECTOR position;
43 sceVu0FVECTOR home[16][16];
44 sceVu0FVECTOR point[16][16];
45 sceVu0FVECTOR last[16][16];
46 sceVu0FVECTOR rest[16][16];
47 sceVu0FVECTOR speed[16][16];
48 sceVu0FVECTOR normal_grid[16][16];
49 sceVu0FVECTOR texture_coord[16][16];
51 int mask[16][16];
52 sceVu0FVECTOR world_home[16][16];
61 void Draw();
62
63 void Clear();
64 void Step(int step);
65 int CreateVUData(u_int *packet);
66 void InitParam();
67
75 CCloth(int grid_i = 16, int grid_j = 16, float grid_pitch = 1.0f);
76
77 virtual void Initialize(CDataAlloc2<1> *alloc);
78 virtual void Initialize(MDT_HEADER *header, CDataAlloc2<1> *alloc);
86 virtual int DrawVu1(u_int *packet, float (*matrix)[4], RenderInfo *info, VU1_PROGRAM program, u_long128 *draw_state, int unknown1, int unknown2);
87 virtual int DrawVu1(sceVif1Packet *packet, float (*matrix)[4], RenderInfo *info, VU1_PROGRAM program, u_long128 *draw_state, int unknown1, int unknown2);
88};
void Clear()
Definition cloth.cpp:61
u_int * vu_block[2]
Definition cloth.hpp:24
int floor_on
Definition cloth.hpp:32
float normal_scale
Definition cloth.hpp:36
int init_40
Definition cloth.hpp:30
u_int * vu_data
Definition cloth.hpp:21
sceVu0FVECTOR point[16][16]
Definition cloth.hpp:44
MDT_MATERIAL material
Definition cloth.hpp:37
float pitch
Definition cloth.hpp:27
sceVu0FVECTOR stiffness
Definition cloth.hpp:40
int num_i
Definition cloth.hpp:25
sceVu0FVECTOR world_home[16][16]
Definition cloth.hpp:52
sceVu0FVECTOR speed[16][16]
Definition cloth.hpp:47
virtual int DrawVu1(u_int *packet, float(*matrix)[4], RenderInfo *info, VU1_PROGRAM program, u_long128 *draw_state, int unknown1, int unknown2)
Definition cloth.cpp:463
sceVu0FVECTOR home[16][16]
Definition cloth.hpp:43
sceVu0FVECTOR normal_grid[16][16]
Definition cloth.hpp:48
sceVu0FVECTOR last_position
Definition cloth.hpp:41
float floor_y
Definition cloth.hpp:33
float wind_effect
Definition cloth.hpp:35
void Draw()
Definition cloth.cpp:19
int init_20
Definition cloth.hpp:23
void Step(int step)
Definition cloth.cpp:144
int num_j
Definition cloth.hpp:26
int polygon_divide[16]
Definition cloth.hpp:50
int stop
Definition cloth.hpp:28
void InitParam()
Definition cloth.cpp:608
sceVu0FVECTOR last[16][16]
Definition cloth.hpp:45
sceVu0FVECTOR rest[16][16]
Definition cloth.hpp:46
u_int vu_size
Definition cloth.hpp:22
int mask[16][16]
Definition cloth.hpp:51
sceVu0FVECTOR gravity
Definition cloth.hpp:38
void * wind
Definition cloth.hpp:34
CFrame * frame
Definition cloth.hpp:29
sceVu0FVECTOR follow
Definition cloth.hpp:39
CBound * bound
Definition cloth.hpp:31
sceVu0FVECTOR texture_coord[16][16]
Definition cloth.hpp:49
sceVu0FVECTOR position
Definition cloth.hpp:42
virtual void Initialize()