SSBM Decomp
Loading...
Searching...
No Matches
mtx.h File Reference
#include <platform.h>
#include <dolphin/mtx/types.h>

Go to the source code of this file.

Macros

#define MTXIdentity   PSMTXIdentity
 
#define MTXCopy   PSMTXCopy
 
#define MTXConcat   PSMTXConcat
 
#define MTXConcatArray   PSMTXConcatArray
 
#define MTXTranspose   PSMTXTranspose
 
#define MTXInverse   PSMTXInverse
 
#define MTXInvXpose   PSMTXInvXpose
 
#define MTXQuat   PSMTXQuat
 
#define MTXReflect   PSMTXReflect
 
#define MTXTrans   PSMTXTrans
 
#define MTXTransApply   PSMTXTransApply
 
#define MTXScale   PSMTXScale
 
#define MTXScaleApply   PSMTXScaleApply
 
#define MTXRotRad   PSMTXRotRad
 
#define MTXRotTrig   PSMTXRotTrig
 
#define MTXRotAxisRad   PSMTXRotAxisRad
 
#define MTXLightPerspective   C_MTXLightPerspective
 
#define MTXLightFrustum   C_MTXLightFrustum
 
#define MTXLightOrtho   C_MTXLightOrtho
 

Functions

void C_MTXOrtho (Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f)
 
void C_MTXPerspective (Mtx44 m, f32 fovY, f32 aspect, f32 n, f32 f)
 
void C_MTXIdentity (Mtx m)
 
void C_MTXCopy (const Mtx src, Mtx dst)
 
void C_MTXConcat (const Mtx a, const Mtx b, Mtx ab)
 
void C_MTXConcatArray (const Mtx a, const Mtx *srcBase, Mtx *dstBase, u32 count)
 
void C_MTXTranspose (const Mtx src, Mtx xPose)
 
void C_MTXFrustum (Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f)
 
u32 C_MTXInverse (const Mtx src, Mtx inv)
 
u32 C_MTXInvXpose (const Mtx src, Mtx invX)
 
void PSMTXIdentity (Mtx m)
 
void PSMTXCopy (const Mtx src, Mtx dst)
 
void PSMTXConcat (const Mtx a, const Mtx b, Mtx ab)
 
void PSMTXConcatArray (const Mtx a, const Mtx *srcBase, Mtx *dstBase, u32 count)
 
void PSMTXTranspose (const Mtx src, Mtx xPose)
 
u32 PSMTXInverse (const Mtx src, Mtx inv)
 
u32 PSMTXInvXpose (const Mtx src, Mtx invX)
 
void C_MTXQuat (Mtx m, const Quaternion *q)
 
void C_MTXReflect (Mtx m, const Vec3 *p, const Vec3 *n)
 
void C_MTXTrans (Mtx m, f32 xT, f32 yT, f32 zT)
 
void C_MTXTransApply (const Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT)
 
void C_MTXScale (Mtx m, f32 xS, f32 yS, f32 zS)
 
void C_MTXScaleApply (const Mtx src, Mtx dst, f32 xS, f32 yS, f32 zS)
 
void C_MTXRotRad (Mtx m, char axis, f32 rad)
 
void C_MTXRotTrig (Mtx m, char axis, f32 sinA, f32 cosA)
 
void C_MTXRotAxisRad (Mtx m, const Vec3 *axis, f32 rad)
 
void C_MTXLookAt (Mtx m, Vec3 *cam_pos, Vec3 *up, Vec3 *target)
 
void PSMTXQuat (Mtx m, const Quaternion *q)
 
void PSMTXReflect (Mtx m, const Vec3 *p, const Vec3 *n)
 
void PSMTXTransApply (const Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT)
 
void PSMTXScaleApply (const Mtx src, Mtx dst, f32 xS, f32 yS, f32 zS)
 
void PSMTXRotRad (Mtx m, char axis, f32 rad)
 
void PSMTXRotTrig (Mtx m, char axis, f32 sinA, f32 cosA)
 
void PSMTXRotAxisRad (Mtx m, const Vec3 *axis, f32 rad)
 
void PSMTXTrans (Mtx m, f32 x_trans, f32 y_trans, f32 z_trans)
 
void PSMTXScale (Mtx m, f32 x_scale, f32 y_scale, f32 z_scale)
 
void C_MTXLightPerspective (Mtx m, f32 fov, f32 aspect, f32 x_scale, f32 y_scale, f32 z_x_mult, f32 z_y_mult)
 
void C_MTXLightFrustum (Mtx m, f32 top, f32 bottom, f32 left, f32 right, f32 near, f32 x_scale, f32 y_scale, f32 z_x_mult, f32 z_y_mult)
 
void C_MTXLightOrtho (Mtx m, f32 top, f32 bottom, f32 left, f32 right, f32 x_scale, f32 y_scale, f32 z_x_mult, f32 z_y_mult)
 

Macro Definition Documentation

◆ MTXIdentity

#define MTXIdentity   PSMTXIdentity

◆ MTXCopy

#define MTXCopy   PSMTXCopy

◆ MTXConcat

#define MTXConcat   PSMTXConcat

◆ MTXConcatArray

#define MTXConcatArray   PSMTXConcatArray

◆ MTXTranspose

#define MTXTranspose   PSMTXTranspose

◆ MTXInverse

#define MTXInverse   PSMTXInverse

◆ MTXInvXpose

#define MTXInvXpose   PSMTXInvXpose

◆ MTXQuat

#define MTXQuat   PSMTXQuat

◆ MTXReflect

#define MTXReflect   PSMTXReflect

◆ MTXTrans

#define MTXTrans   PSMTXTrans

◆ MTXTransApply

#define MTXTransApply   PSMTXTransApply

◆ MTXScale

#define MTXScale   PSMTXScale

◆ MTXScaleApply

#define MTXScaleApply   PSMTXScaleApply

◆ MTXRotRad

#define MTXRotRad   PSMTXRotRad

◆ MTXRotTrig

#define MTXRotTrig   PSMTXRotTrig

◆ MTXRotAxisRad

#define MTXRotAxisRad   PSMTXRotAxisRad

◆ MTXLightPerspective

#define MTXLightPerspective   C_MTXLightPerspective

◆ MTXLightFrustum

#define MTXLightFrustum   C_MTXLightFrustum

◆ MTXLightOrtho

#define MTXLightOrtho   C_MTXLightOrtho

Function Documentation

◆ C_MTXOrtho()

void C_MTXOrtho ( Mtx44  m,
f32  t,
f32  b,
f32  l,
f32  r,
f32  n,
f32  f 
)

◆ C_MTXPerspective()

void C_MTXPerspective ( Mtx44  m,
f32  fovY,
f32  aspect,
f32  n,
f32  f 
)

◆ C_MTXIdentity()

void C_MTXIdentity ( Mtx  m)

◆ C_MTXCopy()

void C_MTXCopy ( const Mtx  src,
Mtx  dst 
)

◆ C_MTXConcat()

void C_MTXConcat ( const Mtx  a,
const Mtx  b,
Mtx  ab 
)

◆ C_MTXConcatArray()

void C_MTXConcatArray ( const Mtx  a,
const Mtx srcBase,
Mtx dstBase,
u32  count 
)

◆ C_MTXTranspose()

void C_MTXTranspose ( const Mtx  src,
Mtx  xPose 
)

◆ C_MTXFrustum()

void C_MTXFrustum ( Mtx44  m,
f32  t,
f32  b,
f32  l,
f32  r,
f32  n,
f32  f 
)

◆ C_MTXInverse()

u32 C_MTXInverse ( const Mtx  src,
Mtx  inv 
)

◆ C_MTXInvXpose()

u32 C_MTXInvXpose ( const Mtx  src,
Mtx  invX 
)

◆ PSMTXIdentity()

void PSMTXIdentity ( Mtx  m)

◆ PSMTXCopy()

void PSMTXCopy ( const Mtx  src,
Mtx  dst 
)

◆ PSMTXConcat()

void PSMTXConcat ( const Mtx  a,
const Mtx  b,
Mtx  ab 
)

◆ PSMTXConcatArray()

void PSMTXConcatArray ( const Mtx  a,
const Mtx srcBase,
Mtx dstBase,
u32  count 
)

◆ PSMTXTranspose()

void PSMTXTranspose ( const Mtx  src,
Mtx  xPose 
)

◆ PSMTXInverse()

u32 PSMTXInverse ( const Mtx  src,
Mtx  inv 
)

◆ PSMTXInvXpose()

u32 PSMTXInvXpose ( const Mtx  src,
Mtx  invX 
)

◆ C_MTXQuat()

void C_MTXQuat ( Mtx  m,
const Quaternion *  q 
)

◆ C_MTXReflect()

void C_MTXReflect ( Mtx  m,
const Vec3 p,
const Vec3 n 
)

◆ C_MTXTrans()

void C_MTXTrans ( Mtx  m,
f32  xT,
f32  yT,
f32  zT 
)

◆ C_MTXTransApply()

void C_MTXTransApply ( const Mtx  src,
Mtx  dst,
f32  xT,
f32  yT,
f32  zT 
)

◆ C_MTXScale()

void C_MTXScale ( Mtx  m,
f32  xS,
f32  yS,
f32  zS 
)

◆ C_MTXScaleApply()

void C_MTXScaleApply ( const Mtx  src,
Mtx  dst,
f32  xS,
f32  yS,
f32  zS 
)

◆ C_MTXRotRad()

void C_MTXRotRad ( Mtx  m,
char  axis,
f32  rad 
)

◆ C_MTXRotTrig()

void C_MTXRotTrig ( Mtx  m,
char  axis,
f32  sinA,
f32  cosA 
)

◆ C_MTXRotAxisRad()

void C_MTXRotAxisRad ( Mtx  m,
const Vec3 axis,
f32  rad 
)

◆ C_MTXLookAt()

void C_MTXLookAt ( Mtx  m,
Vec3 cam_pos,
Vec3 up,
Vec3 target 
)

◆ PSMTXQuat()

void PSMTXQuat ( Mtx  m,
const Quaternion *  q 
)

◆ PSMTXReflect()

void PSMTXReflect ( Mtx  m,
const Vec3 p,
const Vec3 n 
)

◆ PSMTXTransApply()

void PSMTXTransApply ( const Mtx  src,
Mtx  dst,
f32  xT,
f32  yT,
f32  zT 
)

◆ PSMTXScaleApply()

void PSMTXScaleApply ( const Mtx  src,
Mtx  dst,
f32  xS,
f32  yS,
f32  zS 
)

◆ PSMTXRotRad()

void PSMTXRotRad ( Mtx  m,
char  axis,
f32  rad 
)

◆ PSMTXRotTrig()

void PSMTXRotTrig ( Mtx  m,
char  axis,
f32  sinA,
f32  cosA 
)

◆ PSMTXRotAxisRad()

void PSMTXRotAxisRad ( Mtx  m,
const Vec3 axis,
f32  rad 
)

◆ PSMTXTrans()

void PSMTXTrans ( Mtx  m,
f32  x_trans,
f32  y_trans,
f32  z_trans 
)

◆ PSMTXScale()

void PSMTXScale ( Mtx  m,
f32  x_scale,
f32  y_scale,
f32  z_scale 
)

◆ C_MTXLightPerspective()

void C_MTXLightPerspective ( Mtx  m,
f32  fov,
f32  aspect,
f32  x_scale,
f32  y_scale,
f32  z_x_mult,
f32  z_y_mult 
)

◆ C_MTXLightFrustum()

void C_MTXLightFrustum ( Mtx  m,
f32  top,
f32  bottom,
f32  left,
f32  right,
f32  near,
f32  x_scale,
f32  y_scale,
f32  z_x_mult,
f32  z_y_mult 
)

◆ C_MTXLightOrtho()

void C_MTXLightOrtho ( Mtx  m,
f32  top,
f32  bottom,
f32  left,
f32  right,
f32  x_scale,
f32  y_scale,
f32  z_x_mult,
f32  z_y_mult 
)