annotate TaskManager/Test/simple_render/scene_graph_pack.h @ 29:e949a536a68d

*** empty log message ***
author gongo
date Mon, 11 Feb 2008 17:33:38 +0900
parents 3f68b2ef4fb0
children 9b96b190cb73
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_SCENE_GRAPH_PACK
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_SCENE_GRAPH_PACK
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
3
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
4 /*
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
5 enum Tree{
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
6 PUSH,
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
7 POP,
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
8 SHIFT
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
9 };
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
10 */
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
11
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
12 typedef struct SceneGraphNode {
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
13 int size;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
14 float vertex[36*3];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
15 float texture[36*2];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
16 float obj_pos[4];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
17 float angle[4];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
18 float translation[16];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
19 int id;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
20 int move, interaction;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
21 //int op[32]; // push pop shift => enum
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
22 int pn;
29
e949a536a68d *** empty log message ***
gongo
parents: 26
diff changeset
23 } SceneGraphNode, *SceneGraphNodePtr;
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
24
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
25 typedef struct SceneGraphInfo {
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
26 int size;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
27 }SceneGraphInfo;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
28
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
29 typedef struct SceneGraphPack {
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
30 SceneGraphInfo info;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
31 SceneGraphNode node[16]; // variable length array
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
32 }SceneGraphPack;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
33
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
34
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
35 #endif