Alchemy
Loading...
Searching...
No Matches

transform.h File Reference

The 3D transform and its stack. More...

Go to the source code of this file.

Macros

#define TRANSFORM_IDENTITY_REGISTER_SETUP
 The games order the identity-register setup differently before the same stores.

Functions

void SceneTransform_RewindStack (void)
static __inline__ void Transform_SetIdentity (void *matrix)
static __inline__ void Transform_ResetCurrent (void)
 Resets the current matrix to identity.

Variables

s32 gTransform [12]
s32 gTransformStackDepth
u8 * gTransformStackTop

Detailed Description

The 3D transform and its stack.

Definition in file transform.h.

Macro Definition Documentation

◆ TRANSFORM_IDENTITY_REGISTER_SETUP

#define TRANSFORM_IDENTITY_REGISTER_SETUP
Value:
"mov r0, %1\n\tmov r1, #128\n\tmov r2, #0\n\tmov %0, #0\n\t" \
"mov r4, #0\n\tlsl r1, r1, #9\n\t"

The games order the identity-register setup differently before the same stores.

Definition at line 31 of file transform.h.

Referenced by Transform_ResetCurrent().

Function Documentation

◆ SceneTransform_RewindStack()

void SceneTransform_RewindStack ( void )

◆ Transform_SetIdentity()

◆ Transform_ResetCurrent()

__inline__ void Transform_ResetCurrent ( void )
static

Resets the current matrix to identity.

Definition at line 36 of file transform.h.

Referenced by Render_ResetTransformState(), SceneTransform_ResetMatrix(), and Transform_ResetCurrent().

Variable Documentation

◆ gTransform

◆ gTransformStackDepth

s32 gTransformStackDepth
extern

◆ gTransformStackTop

u8* gTransformStackTop
extern