Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
TexturePanner.inc.c
Go to the documentation of this file.
1#include "common.h"
2
3// pan the main tile along U and V
4// (in) LVar0 : modelID
5// (in) LVar1 : tex panner ID
6// (in) LVar2 : main du
7// (in) LVar3 : main dv
8EvtScript N(EVS_TexturePanMain) = {
13 Set(LVar0, 0)
14 Set(LVar1, 0)
15 Loop(0)
19 Wait(1)
21 Return
22 End
23};
24
25// pan the main and aux tiles along U
26// (in) LVar0 : modelID
27// (in) LVar1 : tex panner ID
28// (in) LVar2 : main du
29// (in) LVar3 : aux du
30EvtScript N(EVS_TexturePanBothU) = {
35 Set(LVar0, 0)
36 Set(LVar1, 0)
37 Loop(0)
42 Wait(1)
44 Return
45 End
46};
47
48// pan the main and aux tiles along V
49// (in) LVar0 : modelID
50// (in) LVar1 : tex panner ID
51// (in) LVar2 : main dv
52// (in) LVar3 : aux dv
53EvtScript N(EVS_TexturePanBothV) = {
58 Set(LVar0, 0)
59 Set(LVar1, 0)
60 Loop(0)
65 Wait(1)
67 Return
68 End
69};
Bytecode EvtScript[]
@ TEX_PANNER_MAIN
Definition enums.h:4415
@ TEX_PANNER_AUX
Definition enums.h:4416
ApiStatus SetTexPanOffset(Evt *script, b32 isInitialCall)
Sets offsets for texture panners.
ApiStatus SetTexPanner(Evt *script, b32 isInitialCall)
Sets a model's pannerID and sets the texture pan flag.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Add(VAR, INT_VALUE)
Definition macros.h:376
#define EndLoop
Marks the end of a loop.
Definition macros.h:248
#define LVarC
Definition macros.h:160
#define LVarB
Definition macros.h:159
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define LVarA
Definition macros.h:158
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:245
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217