|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | VU_MATRIX |
| struct | VU_VECTOR |
| struct | VU_SXYZ |
| struct | VU_SXYZF |
| struct | VU_CVECTOR |
| struct | VU_FCVECTOR |
| struct | VU_FLAT_LIGHT |
Macros | |
| #define | VU_LIGHT_TYPE_FLAT 0x10 |
| #define | ftoi4(f) ((int)((f)*16.0f)) |
| #define | deg2radian(angle) ((angle*3.1415926535f)/180) |
| #define | radian2deg(radian) ((180.0f / 3.1415926535f) * (radian)) |
Variables | |
| VU_MATRIX | VuWorldMatrix |
| VU_MATRIX | VuViewMatrix |
| VU_MATRIX | VuPrjectionMatrix |
| VU_MATRIX | VuLocalScreenMatrix |
VU library functions.
Definition in file libvux.h.
| #define radian2deg | ( | radian | ) | ((180.0f / 3.1415926535f) * (radian)) |
| void Vu0IdMatrix | ( | VU_MATRIX * | m | ) |
| void Vu0ResetMatrix | ( | VU_MATRIX * | m | ) |
| void Vu0ScaleMatrixXYZ | ( | VU_MATRIX * | m, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 136 of file vuhw.c.
References s, Vu0ScaleMatrix(), x, and y.
| void Vu0TransMatrixXYZ | ( | VU_MATRIX * | m, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 77 of file vuhw.c.
References Vu0TransMatrix(), VU_VECTOR::w, VU_VECTOR::x, x, VU_VECTOR::y, y, and VU_VECTOR::z.
| void VuSetAmbientLight | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
Definition at line 154 of file vux.c.
References VU_FCVECTOR::a, VU_FCVECTOR::b, VU_FCVECTOR::g, VU_FCVECTOR::r, and vu_light_ambient.
| void VuSetGeometryXYOffset | ( | unsigned short | x, |
| unsigned short | y | ||
| ) |
| void VuSetLocalScreenMatrix | ( | VU_MATRIX * | m | ) |
Definition at line 135 of file vux.c.
References VuLocalScreenMatrix.
Referenced by VuxUpdateLocalScreenMatrix().
| void VuSetProjection | ( | float | z | ) |
| void VuSetProjectionMatrix | ( | VU_MATRIX * | projection | ) |
| void VuSetProjectionNearPlaneWH | ( | unsigned int | w, |
| unsigned int | h | ||
| ) |
| void VuSetProjectionType | ( | unsigned int | type | ) |
Definition at line 108 of file vux.c.
References vu_projection_type.
| void VuSetViewMatrix | ( | VU_MATRIX * | view | ) |
Definition at line 125 of file vux.c.
References VuViewMatrix.
| void VuSetWorldMatrix | ( | VU_MATRIX * | world | ) |
Definition at line 383 of file vusw.c.
References VU_MATRIX::m, v0, VU_VECTOR::w, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxApplyMatrixLS().
Definition at line 484 of file vusw.c.
References v0, VuLocalScreenMatrix, and VuxApplyMatrix().
Referenced by VuxRotTrans(), VuxRotTrans3(), and VuxRotTransN().
Definition at line 396 of file vusw.c.
References VU_MATRIX::m, v0, VU_VECTOR::w, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxApplyRotMatrixLS().
Definition at line 496 of file vusw.c.
References v0, VuLocalScreenMatrix, and VuxApplyRotMatrix().
Definition at line 894 of file vusw.c.
References VU_SXYZ::x, and VU_SXYZ::y.
Referenced by VuxPersClip3(), and VuxRotTransPersClip3().
Definition at line 419 of file vusw.c.
References v0, v1, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxMakeLookAtViewMatrix().
| void VuxIdMatrix | ( | VU_MATRIX * | m | ) |
Definition at line 30 of file vusw.c.
References VuxResetMatrix().
Referenced by VuxMakeProjectionMatrix().
| int VuxLightNormal | ( | VU_VECTOR * | normal, |
| VU_CVECTOR * | col0, | ||
| void * | light, | ||
| unsigned int | light_type, | ||
| VU_CVECTOR * | out0 | ||
| ) |
Definition at line 920 of file vusw.c.
References VU_CVECTOR::a, VU_CVECTOR::b, VU_FCVECTOR::b, VU_FLAT_LIGHT::color, VU_FLAT_LIGHT::direction, VU_CVECTOR::g, VU_FCVECTOR::g, light_type, VU_CVECTOR::q, VU_CVECTOR::r, VU_FCVECTOR::r, vu_light_ambient, VU_LIGHT_TYPE_FLAT, and VuxDotProduct().
Definition at line 511 of file vusw.c.
References VuxMulMatrix().
Referenced by VuxUpdateLocalScreenMatrix().
| void VuxMakeLocalScreenMatrix2 | ( | VU_MATRIX * | out, |
| VU_MATRIX * | world, | ||
| VU_MATRIX * | view, | ||
| VU_MATRIX * | projection | ||
| ) |
Definition at line 524 of file vusw.c.
References VuxMulMatrix().
Referenced by VuxUpdateLocalScreenMatrix().
| void VuxMakeLookAtViewMatrix | ( | VU_MATRIX * | out, |
| VU_VECTOR * | eye, | ||
| VU_VECTOR * | target, | ||
| VU_VECTOR * | up | ||
| ) |
Definition at line 563 of file vusw.c.
References VU_MATRIX::m, VuxCrossProduct(), VuxDotProduct(), VuxVectorNormal(), VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
| void VuxMakeProjectionMatrix | ( | VU_MATRIX * | proj, |
| float | near_plane_w, | ||
| float | near_plane_h, | ||
| float | near_plane_z, | ||
| float | far_plane_z | ||
| ) |
Definition at line 544 of file vusw.c.
References pos, VuxInverseMatrix(), VuxResetMatrix(), VuxRotMatrix(), VuxScaleMatrix(), and VuxTransMatrix().
Definition at line 251 of file vusw.c.
Referenced by VuxMakeLocalScreenMatrix(), VuxMakeLocalScreenMatrix2(), VuxRotMatrix(), VuxRotMatrixXYZ(), VuxScaleMatrix(), and VuxScaleMatrixXYZ().
Definition at line 698 of file vusw.c.
References ftoi4, v0, vu_near_plane_h, vu_near_plane_w, vu_offset_x, vu_offset_y, vu_projection, vu_projection_type, VU_SXYZ::x, VU_SXYZ::y, and VU_SXYZ::z.
Referenced by VuxPersN(), and VuxRotTransPers().
| void VuxPers3 | ( | VU_VECTOR * | v0, |
| VU_VECTOR * | v1, | ||
| VU_VECTOR * | v2, | ||
| VU_SXYZ * | sxyz0, | ||
| VU_SXYZ * | sxyz1, | ||
| VU_SXYZ * | sxyz2 | ||
| ) |
Definition at line 724 of file vusw.c.
References ftoi4, v0, v1, vu_near_plane_h, vu_near_plane_w, vu_offset_x, vu_offset_y, vu_projection, vu_projection_type, VU_VECTOR::w, VU_VECTOR::x, VU_SXYZ::x, VU_VECTOR::y, VU_SXYZ::y, VU_VECTOR::z, and VU_SXYZ::z.
Referenced by VuxRotTransPers3(), and VuxRotTransPersClip3().
| int VuxPersClip3 | ( | VU_VECTOR * | v0, |
| VU_VECTOR * | v1, | ||
| VU_VECTOR * | v2, | ||
| VU_SXYZ * | sxyz0, | ||
| VU_SXYZ * | sxyz1, | ||
| VU_SXYZ * | sxyz2 | ||
| ) |
Definition at line 783 of file vusw.c.
References ftoi4, v0, v1, vu_near_plane_h, vu_near_plane_w, vu_offset_x, vu_offset_y, vu_projection, vu_projection_type, VuxClipSxyz(), VU_VECTOR::w, VU_VECTOR::x, VU_SXYZ::x, VU_VECTOR::y, VU_SXYZ::y, VU_VECTOR::z, and VU_SXYZ::z.
| void VuxResetMatrix | ( | VU_MATRIX * | m | ) |
Definition at line 39 of file vusw.c.
References VU_MATRIX::m.
Referenced by VuxIdMatrix(), VuxMakeViewMatrix(), VuxRotMatrix(), VuxRotMatrixXYZ(), VuxScaleMatrix(), and VuxScaleMatrixXYZ().
Definition at line 51 of file vusw.c.
References VuxMulMatrix(), VuxResetMatrix(), VuxRotMatrixX(), VuxRotMatrixY(), VuxRotMatrixZ(), VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxMakeViewMatrix().
| void VuxRotMatrixX | ( | VU_MATRIX * | m, |
| float | x | ||
| ) |
Definition at line 74 of file vusw.c.
References VU_MATRIX::m, and x.
Referenced by VuxRotMatrix(), and VuxRotMatrixXYZ().
| void VuxRotMatrixXYZ | ( | VU_MATRIX * | m, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 157 of file vusw.c.
References VuxMulMatrix(), VuxResetMatrix(), VuxRotMatrixX(), VuxRotMatrixY(), VuxRotMatrixZ(), x, and y.
| void VuxRotMatrixY | ( | VU_MATRIX * | m, |
| float | y | ||
| ) |
Definition at line 101 of file vusw.c.
References VU_MATRIX::m, and y.
Referenced by VuxRotMatrix(), and VuxRotMatrixXYZ().
| void VuxRotMatrixZ | ( | VU_MATRIX * | m, |
| float | z | ||
| ) |
Definition at line 129 of file vusw.c.
References VU_MATRIX::m.
Referenced by VuxRotMatrix(), and VuxRotMatrixXYZ().
Definition at line 662 of file vusw.c.
References v0, and VuxApplyMatrixLS().
Referenced by VuxRotTransPers().
| void VuxRotTrans3 | ( | VU_VECTOR * | v0, |
| VU_VECTOR * | v1, | ||
| VU_VECTOR * | v2, | ||
| VU_VECTOR * | tv0, | ||
| VU_VECTOR * | tv1, | ||
| VU_VECTOR * | tv2 | ||
| ) |
Definition at line 671 of file vusw.c.
References v0, v1, and VuxApplyMatrixLS().
Referenced by VuxRotTransPers3(), and VuxRotTransPersClip3().
Definition at line 829 of file vusw.c.
References v0, VuxPers(), VuxRotTrans(), and VU_VECTOR::z.
Referenced by VuxRotTransPersN().
| float VuxRotTransPers3 | ( | VU_VECTOR * | v0, |
| VU_VECTOR * | v1, | ||
| VU_VECTOR * | v2, | ||
| VU_SXYZ * | sxyz0, | ||
| VU_SXYZ * | sxyz1, | ||
| VU_SXYZ * | sxyz2 | ||
| ) |
Definition at line 843 of file vusw.c.
References v0, v1, VuxPers3(), VuxRotTrans3(), and VU_VECTOR::z.
| int VuxRotTransPersClip3 | ( | VU_VECTOR * | v0, |
| VU_VECTOR * | v1, | ||
| VU_VECTOR * | v2, | ||
| VU_SXYZ * | sxyz0, | ||
| VU_SXYZ * | sxyz1, | ||
| VU_SXYZ * | sxyz2 | ||
| ) |
Definition at line 875 of file vusw.c.
References v0, v1, VuxClipSxyz(), VuxPers3(), and VuxRotTrans3().
Definition at line 216 of file vusw.c.
References VU_MATRIX::m, s, VuxMulMatrix(), and VuxResetMatrix().
Referenced by VuxMakeViewMatrix().
| void VuxScaleMatrixXYZ | ( | VU_MATRIX * | m, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 232 of file vusw.c.
References VU_MATRIX::m, VuxMulMatrix(), VuxResetMatrix(), x, and y.
Definition at line 188 of file vusw.c.
References VU_MATRIX::m, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxMakeViewMatrix().
| void VuxTransMatrixXYZ | ( | VU_MATRIX * | m, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
| void VuxUpdateLocalScreenMatrix | ( | void | ) |
update lsm using view, world, proj
Definition at line 634 of file vusw.c.
References vu_projection_type, VuPrjectionMatrix, VuSetLocalScreenMatrix(), VuViewMatrix, VuWorldMatrix, VuxMakeLocalScreenMatrix(), and VuxMakeLocalScreenMatrix2().
| void VuxVectorNormal | ( | VU_VECTOR * | v | ) |
Definition at line 447 of file vusw.c.
References VU_VECTOR::w, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
Referenced by VuxMakeLookAtViewMatrix().
Definition at line 460 of file vusw.c.
References VU_VECTOR::w, VU_VECTOR::x, VU_VECTOR::y, and VU_VECTOR::z.
|
extern |
Definition at line 42 of file vux.c.
Referenced by VuSetLocalScreenMatrix(), VuxApplyMatrixLS(), and VuxApplyRotMatrixLS().
|
extern |
Definition at line 35 of file vux.c.
Referenced by VuSetProjectionMatrix(), and VuxUpdateLocalScreenMatrix().
|
extern |
Definition at line 28 of file vux.c.
Referenced by VuSetViewMatrix(), and VuxUpdateLocalScreenMatrix().
|
extern |
Definition at line 21 of file vux.c.
Referenced by VuSetWorldMatrix(), and VuxUpdateLocalScreenMatrix().