DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
libvu0.h
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7typedef int qword[4] __attribute__((aligned(16)));
8typedef int sceVu0IVECTOR[4] __attribute__((aligned(16)));
9typedef float sceVu0FVECTOR[4] __attribute__((aligned(16)));
10typedef float sceVu0FMATRIX[4][4] __attribute__((aligned(16)));
11
12void sceVu0CopyVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1);
13void sceVu0CopyVectorXYZ(sceVu0FVECTOR v0, sceVu0FVECTOR v1);
14void sceVu0FTOI0Vector(sceVu0IVECTOR v0, sceVu0FVECTOR v1);
15void sceVu0FTOI4Vector(sceVu0IVECTOR v0, sceVu0FVECTOR v1);
16void sceVu0ITOF0Vector(sceVu0FVECTOR v0, sceVu0IVECTOR v1);
17void sceVu0ITOF4Vector(sceVu0FVECTOR v0, sceVu0IVECTOR v1);
18void sceVu0ScaleVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, float s);
19void sceVu0ScaleVectorXYZ(sceVu0FVECTOR v0, sceVu0FVECTOR v1, float s);
20void sceVu0AddVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2);
21void sceVu0SubVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2);
22void sceVu0MulVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2);
23void sceVu0InterVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2, float r);
24void sceVu0InterVectorXYZ(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2, float r);
25void sceVu0DivVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, float q);
26void sceVu0DivVectorXYZ(sceVu0FVECTOR v0, sceVu0FVECTOR v1, float q);
27float sceVu0InnerProduct(sceVu0FVECTOR v0, sceVu0FVECTOR v1);
28void sceVu0OuterProduct(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2);
29void sceVu0Normalize(sceVu0FVECTOR v0, sceVu0FVECTOR v1);
30void sceVu0ApplyMatrix(sceVu0FVECTOR v0, sceVu0FMATRIX m, sceVu0FVECTOR v1);
31void sceVu0UnitMatrix(sceVu0FMATRIX m);
32void sceVu0CopyMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1);
33void sceVu0TransposeMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1);
34void sceVu0MulMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1, sceVu0FMATRIX m2);
35void sceVu0InversMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1);
36void sceVu0RotMatrixX(sceVu0FMATRIX m0, sceVu0FMATRIX m1, float rx);
37void sceVu0RotMatrixY(sceVu0FMATRIX m0, sceVu0FMATRIX m1, float ry);
38void sceVu0RotMatrixZ(sceVu0FMATRIX m0, sceVu0FMATRIX m1, float rz);
39void sceVu0RotMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1, sceVu0FVECTOR rot);
40void sceVu0TransMatrix(sceVu0FMATRIX m0, sceVu0FMATRIX m1, sceVu0FVECTOR tv);
41void sceVu0CameraMatrix(sceVu0FMATRIX m, sceVu0FVECTOR p, sceVu0FVECTOR zd, sceVu0FVECTOR yd);
42void sceVu0NormalLightMatrix(sceVu0FMATRIX m, sceVu0FVECTOR l0, sceVu0FVECTOR l1, sceVu0FVECTOR l2);
43void sceVu0LightColorMatrix(sceVu0FMATRIX m, sceVu0FVECTOR c0, sceVu0FVECTOR c1, sceVu0FVECTOR c2,
44 sceVu0FVECTOR a);
45void sceVu0ViewScreenMatrix(sceVu0FMATRIX m, float scrz, float ax, float ay, float cx, float cy,
46 float zmin, float zmax, float nearz, float farz);
47void sceVu0DropShadowMatrix(sceVu0FMATRIX m, sceVu0FVECTOR lp, float a, float b, float c, int mode);
48int sceVu0ClipAll(sceVu0FVECTOR minv, sceVu0FVECTOR maxv, sceVu0FMATRIX ms, sceVu0FVECTOR *vm, int n);
49void sceVu0ClampVector(sceVu0FVECTOR v0, sceVu0FVECTOR v1, float min, float max);
50int sceVu0ClipScreen(sceVu0FVECTOR v0);
51int sceVu0ClipScreen3(sceVu0FVECTOR v0, sceVu0FVECTOR v1, sceVu0FVECTOR v2);
52void sceVu0RotTransPersN(sceVu0IVECTOR *v0, sceVu0FMATRIX m0, sceVu0FVECTOR *v1, int n, int mode);
53void sceVu0RotTransPers(sceVu0IVECTOR v0, sceVu0FMATRIX m0, sceVu0FVECTOR v1, int mode);
54void sceVpu0Reset(void);
55
56#ifdef __cplusplus
57}
58#endif