ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
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().
int VuxClipW | ( | VU_VECTOR * | tv0 | ) |
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.