Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.0 KiB

6 years ago
  1. #ifndef _ULTRA64_GU_H_
  2. #define _ULTRA64_GU_H_
  3. #define GU_PI 3.1415926
  4. /* Functions */
  5. void guPerspectiveF(float mf[4][4], u16 *perspNorm, float fovy, float aspect,
  6. float near, float far, float scale);
  7. void guPerspective(Mtx *m, u16 *perspNorm, float fovy, float aspect, float near,
  8. float far, float scale);
  9. void guOrtho(Mtx *m, float left, float right, float bottom, float top,
  10. float near, float far, float scale);
  11. void guTranslate(Mtx *m, float x, float y, float z);
  12. void guRotate(Mtx *m, float a, float x, float y, float z);
  13. void guScale(Mtx *m, float x, float y, float z);
  14. void guMtxF2L(float mf[4][4], Mtx *m);
  15. void guMtxIdent(Mtx *m);
  16. void guMtxIdentF(float mf[4][4]);
  17. void guMtxL2F(float mf[4][4], Mtx *m);
  18. void guNormalize(float *, float *, float *);
  19. /* Used only in Fast3DEX2 */
  20. void guLookAtReflect (Mtx *m, LookAt *l, float xEye, float yEye, float zEye,
  21. float xAt, float yAt, float zAt,
  22. float xUp, float yUp, float zUp);
  23. #endif