Mario Kart 64
Loading...
Searching...
No Matches
Matrix.cpp File Reference
#include <libultraship.h>
#include <libultra/gbi.h>
#include "engine/World.h"
#include "src/port/interpolation/FrameInterpolation.h"
#include "common_structs.h"
#include "math_util.h"
#include "math_util_2.h"
Include dependency graph for Matrix.cpp:

Functions

void AddMatrix (std::vector< Mtx > &stack, Mat4 mtx, s32 flags)
 
Mtx * GetMatrix (std::vector< Mtx > &stack)
 
void AddMatrixFixed (std::vector< Mtx > &stack, s32 flags)
 
void SetTextMatrix (Mat4 mf, f32 x, f32 y, f32 arg3, f32 arg4)
 
Gfx * AddTextMatrix (Gfx *displayListHead, Mat4 mtx)
 
void ApplyMatrixTransformations (Mat4 mtx, FVector pos, IRotator rot, FVector scale)
 
void AddLocalRotation (Mat4 mat, IRotator rot)
 
void AddHudMatrix (Mat4 mtx, s32 flags)
 
void AddPerspMatrix (Mat4 mtx, s32 flags)
 
void AddLookAtMatrix (Mat4 mtx, s32 flags)
 
void AddObjectMatrix (Mat4 mtx, s32 flags)
 
void AddShadowMatrix (Mat4 mtx, s32 flags)
 
void AddKartMatrix (Mat4 mtx, s32 flags)
 
void AddEffectMatrix (Mat4 mtx, s32 flags)
 
void AddEffectMatrixFixed (s32 flags)
 
void AddEffectMatrixOrtho (void)
 
Mtx * GetEffectMatrix (void)
 
void ClearMatrixPools (void)
 
void ClearHudMatrixPool (void)
 
void ClearEffectsMatrixPool (void)
 
void ClearObjectsMatrixPool (void)
 

Function Documentation

◆ AddEffectMatrix()

void AddEffectMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddEffectMatrixFixed()

void AddEffectMatrixFixed ( s32 flags)
Here is the call graph for this function:

◆ AddEffectMatrixOrtho()

void AddEffectMatrixOrtho ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddHudMatrix()

void AddHudMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddKartMatrix()

void AddKartMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddLocalRotation()

void AddLocalRotation ( Mat4 mat,
IRotator rot )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddLookAtMatrix()

void AddLookAtMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:

◆ AddMatrix()

void AddMatrix ( std::vector< Mtx > & stack,
Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddMatrixFixed()

void AddMatrixFixed ( std::vector< Mtx > & stack,
s32 flags )

Use GetMatrix() first

Here is the caller graph for this function:

◆ AddObjectMatrix()

void AddObjectMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddPerspMatrix()

void AddPerspMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:

◆ AddShadowMatrix()

void AddShadowMatrix ( Mat4 mtx,
s32 flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddTextMatrix()

Gfx * AddTextMatrix ( Gfx * displayListHead,
Mat4 mtx )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyMatrixTransformations()

void ApplyMatrixTransformations ( Mat4 mtx,
FVector pos,
IRotator rot,
FVector scale )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearEffectsMatrixPool()

void ClearEffectsMatrixPool ( void )
Here is the caller graph for this function:

◆ ClearHudMatrixPool()

void ClearHudMatrixPool ( void )
Here is the caller graph for this function:

◆ ClearMatrixPools()

void ClearMatrixPools ( void )

Note that the game doesn't seem to clear all of these at the beginning of a new frame. We might need to adjust which ones we clear.

Here is the caller graph for this function:

◆ ClearObjectsMatrixPool()

void ClearObjectsMatrixPool ( void )
Here is the caller graph for this function:

◆ GetEffectMatrix()

Mtx * GetEffectMatrix ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMatrix()

Mtx * GetMatrix ( std::vector< Mtx > & stack)
Here is the caller graph for this function:

◆ SetTextMatrix()

void SetTextMatrix ( Mat4 mf,
f32 x,
f32 y,
f32 arg3,
f32 arg4 )
Here is the call graph for this function:
Here is the caller graph for this function: