26
|
1 #ifndef INCLUDED_SCENE_GRAPH_PACK
|
|
2 #define INCLUDED_SCENE_GRAPH_PACK
|
|
3
|
|
4 /*
|
|
5 enum Tree{
|
|
6 PUSH,
|
|
7 POP,
|
|
8 SHIFT
|
|
9 };
|
|
10 */
|
|
11
|
|
12 typedef struct SceneGraphNode {
|
|
13 int size;
|
|
14 float vertex[36*3];
|
|
15 float texture[36*2];
|
|
16 float obj_pos[4];
|
|
17 float angle[4];
|
|
18 float translation[16];
|
|
19 int id;
|
|
20 int move, interaction;
|
|
21 //int op[32]; // push pop shift => enum
|
|
22 int pn;
|
|
23 }SceneGraphNode;
|
|
24
|
|
25 typedef struct SceneGraphInfo {
|
|
26 int size;
|
|
27 }SceneGraphInfo;
|
|
28
|
|
29 typedef struct SceneGraphPack {
|
|
30 SceneGraphInfo info;
|
|
31 SceneGraphNode node[16]; // variable length array
|
|
32 }SceneGraphPack;
|
|
33
|
|
34
|
|
35 #endif
|