Link m_lib.c

This commit is contained in:
Cuyler36
2023-06-13 06:56:43 -04:00
parent 0d7104e296
commit e504495d73
6 changed files with 16 additions and 7 deletions
+1
View File
@@ -8,6 +8,7 @@
#define M_PI 3.14159265358979323846f
s16 sins(u16);
s16 coss(u16);
f32 fatan2(f32, f32);
+1
View File
@@ -10,6 +10,7 @@
#include "libultra/os_timer.h"
#include "libultra/os_thread.h"
#include "libultra/initialize.h"
#include "libc/math.h" /* TODO: sins and coss belong in libultra */
#define N64_SCREEN_HEIGHT 240
#define N64_SCREEN_WIDTH 320
+4 -2
View File
@@ -1,5 +1,5 @@
#ifndef SYS_MATH_H
#define SYS_MATH_H
#ifndef SYS_MATH3D_H
#define SYS_MATH3D_H
#include "types.h"
#include "m_lib.h"
@@ -8,6 +8,8 @@
extern "C" {
#endif
extern f32 Math3DVecLength(xyz_t* vec);
extern xyz_t ZeroVec;
#ifdef __cplusplus
+2 -2
View File
@@ -21,8 +21,8 @@ extern void new_Matrix(GAME* game);
extern void Matrix_softcv3_mult(xyz_t* src, s_xyz* dest);
extern Mtx* _MtxF_to_Mtx(MtxF* src, Mtx* dest);
extern void Matrix_mult(MtxF* m, s8 flag);
extern void Matrix_Position(xyz_t* wpos, xyz_t* screen_pos);
#ifdef __cplusplus
}