53
|
1 #ifndef INCLUDED_SCENE_GRAPH_PACK
|
|
2 #define INCLUDED_SCENE_GRAPH_PACK
|
|
3
|
84
|
4 #ifndef INCLUDED_SPU_SPAN
|
|
5 #include "spu_span.h"
|
72
|
6 #endif
|
|
7
|
53
|
8 /*
|
|
9 enum Tree{
|
|
10 PUSH,
|
|
11 POP,
|
|
12 SHIFT
|
|
13 };
|
|
14 */
|
|
15
|
|
16 typedef struct SceneGraphNode {
|
|
17 int size;
|
|
18 float vertex[36*3];
|
|
19 float texture[36*2];
|
|
20 float obj_pos[4];
|
|
21 float angle[4];
|
|
22 float translation[16];
|
68
|
23 long *tex_addr, tex_width, tex_height;
|
53
|
24 int id;
|
|
25 int move, interaction;
|
68
|
26 //void (*move)();
|
53
|
27 //int op[32]; // push pop shift => enum
|
|
28 int pn;
|
68
|
29 }SceneGraphNode, *SceneGraphNodePtr;
|
53
|
30
|
|
31 typedef struct SceneGraphInfo {
|
|
32 int size;
|
|
33 }SceneGraphInfo;
|
|
34
|
|
35 typedef struct SceneGraphPack {
|
84
|
36 SPUSPANLIST *ssl;
|
53
|
37 SceneGraphInfo info;
|
|
38 SceneGraphNode node[16]; // variable length array
|
|
39 }SceneGraphPack;
|
|
40
|
|
41
|
|
42 #endif
|