src/core1: renamed matrix math library

umbenannt:      include/ml/mtx.h -> include/core1/mlmtx.h
        umbenannt:      src/core1/code_13990.c -> src/core1/mlmtx.c
This commit is contained in:
mariob92
2024-10-17 17:00:39 +02:00
parent d0aa736acc
commit d9439b9cef
21 changed files with 15 additions and 37 deletions

View File

@@ -13,6 +13,7 @@
#include "core1/main.h"
#include "core1/mem.h"
#include "core1/ml.h"
#include "core1/mlmtx.h"
#include "core1/pfsmanager.h"
#include "core1/rarezip.h"
#include "core1/sns.h"

View File

@@ -1,9 +1,5 @@
#ifndef __ML_MTX__
#define __ML_MTX__
typedef struct {
f32 m[4][4];
} MtxF;
#ifndef BANJO_KAZOOIE_CORE1_MLMTX_H
#define BANJO_KAZOOIE_CORE1_MLMTX_H
void mlMtxGet(MtxF *dst);
MtxF *mlMtx_get_stack_pointer(void);

View File

@@ -1,11 +1,6 @@
#ifndef BANJO_KAZOOIE_CORE1_VIEWPORT_H
#define BANJO_KAZOOIE_CORE1_VIEWPORT_H
#include <ultra64.h>
#include <prop.h> // for Cube
#include "ml/mtx.h" // for MtxF
void viewport_moveAlongZAxis(f32 offset);
f32 viewport_getDistance(f32 arg0[3]);
void viewport_getLookVector(f32 arg0[3]);

View File

@@ -3,7 +3,6 @@
#include <ultra64.h>
#include "generic.h"
#include "ml/mtx.h"
#ifndef NONMATCHING
#define animctrl_start(this, file, line) _animctrl_start(this, file, line)

View File

@@ -14,7 +14,6 @@
#include "core2/core2.h"
#include "math.h" // ToDo: sort out actual dependencies
#include "ml/mtx.h"
#include "bs_funcs.h"
#include "bsint.h"

View File

@@ -47,6 +47,10 @@ typedef struct freelist_s{
#define FREE_LIST(T) struct freelist_s
//^defined to keep element type with sla
typedef struct {
f32 m[4][4];
} MtxF;
typedef struct bk_sprite_s{
s16 frameCnt;
s16 type;