|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <water.hpp>
Public Member Functions | |
| void | SetVertex (float *corner0, float *corner1, float *corner2, float *corner3) |
| void | SetSize (int rows, int columns, CDataAlloc2< 1 > *arena) |
| void | SetParam (float wave_speed, float damping, float height_scale, float distortion) |
| void | SetColor (u_char red, u_char green, u_char blue, u_char alpha) |
| void | Shake (int x, int y, float height_change) |
| void | Hamon () |
| void | DrawVu1 (RenderInfo *info, sceVif1Packet *packet, u_long128 *buffer) |
| void | SetVertex (float *v0, float *v1, float *v2, float *v3) |
| void | SetSize (int x, int y, CDataAlloc2< 1 > *buffer) |
| void | SetParam (float wave_speed, float damping, float height_scale, float distortion) |
| void | SetColor (u_char r, u_char g, u_char b, u_char a) |
| void | Shake (int x, int y, float power) |
| void | Hamon () |
| int | DrawVu1 (RenderInfo *info, sceVif1Packet *packet, u_long128 *parent_info) |
| void | SetVertex (float *corner0, float *corner1, float *corner2, float *corner3) |
| void | SetSize (int row_count, int column_count, CDataAlloc2< 1 > *arena) |
| void | SetParam (float speed, float damping_rate, float scale, float shift) |
| void | SetColor (u_char red, u_char green, u_char blue, u_char alpha) |
| void | Shake (int x, int y, float height_change) |
| void | Hamon () |
| int | DrawVu1 (RenderInfo *info, sceVif1Packet *packet, u_long128 *parent_info) |
| CWater & | operator= (CWater &src) |
| void | SetParam (float speed, float damping_rate, float scale, float shift) |
| void | SetColor (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) |
| int | CreateVUData (unsigned int *output, RenderInfo *info) |
| int | DrawVu1 (RenderInfo *info, sceVif1Packet *packet, RenderInfo *parent_info) |
| int | CheckClip () |
| void | Hamon () |
| void | SetVertex (float *corner0, float *corner1, float *corner2, float *corner3) |
| void | Shake (int row, int column, float height_change) |
| void | SetSize (int row_count, int column_count, CDataAlloc2< 1 > *arena) |
| CWater () | |
Public Attributes | |
| s32 | rows |
| s32 | columns |
| float * | height |
| float * | height_a |
| float * | height_b |
| sceVu0FVECTOR | vertex [4] |
| u_int * | packet [3] |
| CVisualPolyVu1 | visual |
| u8 | color [4] |
| float | wave_speed |
| float | damping |
| float | height_scale |
| float | distortion |
| s32 | tags_built |
| CFrameVu1 | frame |
| char | unk_00 [176] |
| CWater::CWater | ( | ) |
Clears the grid, gives the surface a half-bright white and sets the ripple constants.
| void CWater::SetVertex | ( | float * | corner0, |
| float * | corner1, | ||
| float * | corner2, | ||
| float * | corner3 | ||
| ) |
| void CWater::SetSize | ( | int | rows, |
| int | columns, | ||
| CDataAlloc2< 1 > * | arena | ||
| ) |
| void CWater::SetParam | ( | float | wave_speed, |
| float | damping, | ||
| float | height_scale, | ||
| float | distortion | ||
| ) |
| void CWater::SetColor | ( | u_char | red, |
| u_char | green, | ||
| u_char | blue, | ||
| u_char | alpha | ||
| ) |
| void CWater::SetParam | ( | float | speed, |
| float | damping_rate, | ||
| float | scale, | ||
| float | shift | ||
| ) |
Stores the ripple speed and damping and the two scales the surface is drawn with.
| void CWater::SetColor | ( | unsigned char | red, |
| unsigned char | green, | ||
| unsigned char | blue, | ||
| unsigned char | alpha | ||
| ) |
Sets the red, green, blue and alpha channels of the surface.
| int CWater::CreateVUData | ( | unsigned int * | output, |
| RenderInfo * | info | ||
| ) |
| int CWater::DrawVu1 | ( | RenderInfo * | info, |
| sceVif1Packet * | packet, | ||
| RenderInfo * | parent_info | ||
| ) |
Draws the surface through the vector unit.
| int CWater::CheckClip | ( | ) |
| void CWater::Hamon | ( | ) |
Advances the ripples one step, writing into whichever of the two height buffers is not being drawn.
| void CWater::SetVertex | ( | float * | corner0, |
| float * | corner1, | ||
| float * | corner2, | ||
| float * | corner3 | ||
| ) |
Copies four corner positions into the water surface.
| void CWater::Shake | ( | int | row, |
| int | column, | ||
| float | height_change | ||
| ) |
Raises one interior grid cell, starting a ripple from it.
| void CWater::SetSize | ( | int | row_count, |
| int | column_count, | ||
| CDataAlloc2< 1 > * | arena | ||
| ) |
Gives the surface its grid size and takes the two height buffers out of an arena.
| s32 CWater::columns |
| float * CWater::height |
| float * CWater::height_a |
| float * CWater::height_b |
| sceVu0FVECTOR CWater::vertex |
| u_int * CWater::packet |
| CVisualPolyVu1 CWater::visual |
| u8 CWater::color |
| float CWater::wave_speed |
| float CWater::height_scale |
| float CWater::distortion |
| s32 CWater::tags_built |
| CFrameVu1 CWater::frame |
| char CWater::unk_00 |
Definition at line 82 of file rushmovi.cpp.