Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
rendering_graph_node.h
Go to the documentation of this file.
1 #ifndef RENDERING_GRAPH_NODE_H
2 #define RENDERING_GRAPH_NODE_H
3 
4 #include "engine/graph_node.h"
5 
6 extern struct GraphNodeRoot *gCurGraphNodeRoot;
12 extern u16 gAreaUpdateCounter;
13 
14 // after processing an object, the type is reset to this
15 #define ANIM_TYPE_NONE 0
16 
17 // Not all parts have full animation: to save space, some animations only
18 // have xz, y, or no translation at all. All animations have rotations though
19 #define ANIM_TYPE_TRANSLATION 1
20 #define ANIM_TYPE_VERTICAL_TRANSLATION 2
21 #define ANIM_TYPE_LATERAL_TRANSLATION 3
22 #define ANIM_TYPE_NO_TRANSLATION 4
23 
24 // Every animation includes rotation, after processing any of the above
25 // translation types the type is set to this
26 #define ANIM_TYPE_ROTATION 5
27 
28 void geo_process_node_and_siblings(struct GraphNode *rootGraphNode);
29 void geo_process_root();
30 
31 #endif // RENDERING_GRAPH_NODE_H
struct GraphNodeObject * gCurGraphNodeObject
Definition: rendering_graph_node.c:122
The very root of the geo tree.
Definition: graph_node.h:93
unsigned short int u16
Definition: ultratypes.h:14
struct GraphNodeRoot * gCurGraphNodeRoot
Definition: rendering_graph_node.c:118
Definition: types.h:77
struct GraphNodePerspective * gCurGraphNodeCamFrustum
Definition: rendering_graph_node.c:120
A node that sets up a perspective projection.
Definition: graph_node.h:119
Renders the object that Mario is holding.
Definition: graph_node.h:342
void geo_process_node_and_siblings(struct GraphNode *rootGraphNode)
Process a generic geo node and its siblings.
Definition: rendering_graph_node.c:865
struct GraphNodeCamera * gCurGraphNodeCamera
Definition: rendering_graph_node.c:121
Definition: types.h:100
void geo_process_root()
struct GraphNodeMasterList * gCurGraphNodeMasterList
Definition: rendering_graph_node.c:119
struct GraphNodeHeldObject * gCurGraphNodeHeldObject
Definition: rendering_graph_node.c:123
GraphNode that specifies the location and aim of the camera.
Definition: graph_node.h:187
u16 gAreaUpdateCounter
Definition: rendering_graph_node.c:124
GraphNode that manages the 8 top-level display lists that will be drawn Each list has its own render ...
Definition: graph_node.h:143