annotate old/simple_render/scene_graph_pack.h @ 1740:5a294d8e5643 draft

fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 12 Nov 2013 16:56:43 +0900
parents 3bc98f6d31ff
children
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
85
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
4 #ifndef INCLUDED_SPU_SPAN
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 85
diff changeset
5 #include "SpuSpan.h"
85
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
6 #endif
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
7
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
8 /*
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
9 enum Tree{
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
10 PUSH,
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
11 POP,
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
12 SHIFT
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
13 };
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
14 */
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
15
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
16 typedef struct SceneGraphNode {
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
17 int size;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
18 float vertex[36*3];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
19 float texture[36*2];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
20 float obj_pos[4];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
21 float angle[4];
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
22 float translation[16];
85
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
23 long *tex_addr, tex_width, tex_height;
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
24 int id;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
25 int move, interaction;
85
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
26 //void (*move)();
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
27 //int op[32]; // push pop shift => enum
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
28 int pn;
85
9b96b190cb73 *** empty log message ***
gongo
parents: 29
diff changeset
29 }SceneGraphNode, *SceneGraphNodePtr;
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
30
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
31 typedef struct SceneGraphInfo {
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
32 int size;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
33 }SceneGraphInfo;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
34
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
35 typedef struct SceneGraphPack {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 85
diff changeset
36 SpuSpan *ssl;
26
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
37 SceneGraphInfo info;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
38 SceneGraphNode node[16]; // variable length array
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
39 }SceneGraphPack;
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
40
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
41
3f68b2ef4fb0 *** empty log message ***
gongo
parents:
diff changeset
42 #endif