sm64

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

guScaleF.c (367B)


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