annotate TaskManager/Test/simple_pack/scene_graph_pack.h @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents c2e178b3415f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
1 #ifndef INCLUDED_SCENE_GRAPH_PACK
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
2 #define INCLUDED_SCENE_GRAPH_PACK
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
3
84
c2e178b3415f create SPUSPANLIST no use task/spu_span.cpp
chiaki
parents: 72
diff changeset
4 #ifndef INCLUDED_SPU_SPAN
c2e178b3415f create SPUSPANLIST no use task/spu_span.cpp
chiaki
parents: 72
diff changeset
5 #include "spu_span.h"
72
cf36120bc158 *** empty log message ***
chiaki
parents: 68
diff changeset
6 #endif
cf36120bc158 *** empty log message ***
chiaki
parents: 68
diff changeset
7
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
8 /*
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
9 enum Tree{
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
10 PUSH,
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
11 POP,
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
12 SHIFT
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
13 };
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
14 */
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
15
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
16 typedef struct SceneGraphNode {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
17 int size;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
18 float vertex[36*3];
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
19 float texture[36*2];
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
20 float obj_pos[4];
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
21 float angle[4];
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
22 float translation[16];
68
35a6cf176c38 *** empty log message ***
chiaki
parents: 53
diff changeset
23 long *tex_addr, tex_width, tex_height;
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
24 int id;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
25 int move, interaction;
68
35a6cf176c38 *** empty log message ***
chiaki
parents: 53
diff changeset
26 //void (*move)();
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
27 //int op[32]; // push pop shift => enum
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
28 int pn;
68
35a6cf176c38 *** empty log message ***
chiaki
parents: 53
diff changeset
29 }SceneGraphNode, *SceneGraphNodePtr;
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
30
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
31 typedef struct SceneGraphInfo {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
32 int size;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
33 }SceneGraphInfo;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
34
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
35 typedef struct SceneGraphPack {
84
c2e178b3415f create SPUSPANLIST no use task/spu_span.cpp
chiaki
parents: 72
diff changeset
36 SPUSPANLIST *ssl;
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
37 SceneGraphInfo info;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
38 SceneGraphNode node[16]; // variable length array
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
39 }SceneGraphPack;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
40
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
41
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
42 #endif