sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

guTranslateF.c (354B)


      1 #include "libultra_internal.h"
      2 
      3 #if !defined(VERSION_CN) || !defined(TARGET_N64)
      4 
      5 void guTranslateF(float m[4][4], float x, float y, float z) {
      6     guMtxIdentF(m);
      7     m[3][0] = x;
      8     m[3][1] = y;
      9     m[3][2] = z;
     10 }
     11 
     12 void guTranslate(Mtx *m, float x, float y, float z) {
     13     float mf[4][4];
     14     guTranslateF(mf, x, y, z);
     15     guMtxF2L(mf, m);
     16 }
     17 
     18 #endif