annotate Renderer/Test/property_universe.h @ 1029:22d7263cec2d

copy script add.
author tkaito
date Mon, 15 Nov 2010 22:39:25 +0900
parents 2a00c1f470b7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
767
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #include <math.h>
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #include <stdlib.h>
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 #include "SceneGraphRoot.h"
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #include "Application.h"
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 #include "MainLoop.h"
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 #include "viewer.h"
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 typedef struct {
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 float xyz[3]; // 12 byte
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 float angle[3];
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 float stack_xyz[3];
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 int property_index;
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13 int parent_index;
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 int have_parent;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
15 /*
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
16 SceneGraphPtr parent;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
17 SceneGraphPtr children;
767
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
18 SceneGraphPtr node;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
19 */
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
20 memaddr parent;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
21 memaddr children;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 767
diff changeset
22 memaddr node;
767
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 const char *name;
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
24 } *PropertyPtr, Property;
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
25
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
26 class property_universe : public Application {
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
27
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
29
e4d635b1f018 add spe/univers_move
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
30 };