comparison TaskManager/Test/simple_render/scene_graph_pack.h @ 85:9b96b190cb73

*** empty log message ***
author gongo
date Wed, 27 Feb 2008 04:25:04 +0900
parents e949a536a68d
children 5c194c71eca8
comparison
equal deleted inserted replaced
84:c2e178b3415f 85:9b96b190cb73
1 #ifndef INCLUDED_SCENE_GRAPH_PACK 1 #ifndef INCLUDED_SCENE_GRAPH_PACK
2 #define INCLUDED_SCENE_GRAPH_PACK 2 #define INCLUDED_SCENE_GRAPH_PACK
3
4 #ifndef INCLUDED_SPU_SPAN
5 #include "spu_span.h"
6 #endif
3 7
4 /* 8 /*
5 enum Tree{ 9 enum Tree{
6 PUSH, 10 PUSH,
7 POP, 11 POP,
14 float vertex[36*3]; 18 float vertex[36*3];
15 float texture[36*2]; 19 float texture[36*2];
16 float obj_pos[4]; 20 float obj_pos[4];
17 float angle[4]; 21 float angle[4];
18 float translation[16]; 22 float translation[16];
23 long *tex_addr, tex_width, tex_height;
19 int id; 24 int id;
20 int move, interaction; 25 int move, interaction;
26 //void (*move)();
21 //int op[32]; // push pop shift => enum 27 //int op[32]; // push pop shift => enum
22 int pn; 28 int pn;
23 } SceneGraphNode, *SceneGraphNodePtr; 29 }SceneGraphNode, *SceneGraphNodePtr;
24 30
25 typedef struct SceneGraphInfo { 31 typedef struct SceneGraphInfo {
26 int size; 32 int size;
27 }SceneGraphInfo; 33 }SceneGraphInfo;
28 34
29 typedef struct SceneGraphPack { 35 typedef struct SceneGraphPack {
36 SPUSPANLIST *ssl;
30 SceneGraphInfo info; 37 SceneGraphInfo info;
31 SceneGraphNode node[16]; // variable length array 38 SceneGraphNode node[16]; // variable length array
32 }SceneGraphPack; 39 }SceneGraphPack;
33 40
34 41