annotate Renderer/Test/property_chain.cc @ 1029:22d7263cec2d

copy script add.
author tkaito
date Mon, 15 Nov 2010 22:39:25 +0900
parents 8dd9fe36e206
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #include <math.h>
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #include <stdlib.h>
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 #include "SceneGraphRoot.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #include "MainLoop.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 #include "property_chain.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 #include "types.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 #include "Func.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 #include "sys.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 #include "SgChange.h"
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 #define FALSE 0
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 #define TRUE !FALSE
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
13 static const int PROPERTY_LENGTH = 50;
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
14 static double chain_width = 10;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16 typedef struct {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
17 float xyz[3];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
18 float angle[3];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19 float stack_xyz[3];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 float next_xyz[3];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
21 float v_xyz[3];
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
22 float next_v_xyz[3];
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 int property_index;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
24 int parent_index;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
25 int have_parent;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
26 int can_move;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
27 memaddr parent;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28 memaddr children;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
29 memaddr node;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
30 int sgid;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
31 } *PropertyPtr, Property;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
32
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
33
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
34 Property *property, *update_property;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
35
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
36 // prototype
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
37 static void collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
38 static void move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
39 static void createSceneGraphFromProperty(SchedTask *s, void *sgroot, void *arg1);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
40 static void set_property(Property *p, SceneGraphPtr sg, int index);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
41 static void apply_property(SceneGraphPtr sg, Property *p);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
42 static void regist_task(SceneGraphRoot *sgroot);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
43 static void set_relation(SceneGraphPtr parent, SceneGraphPtr child);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
44
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
45 static void
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
46 init_chain(Property *p) {
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
47 for (int i = 0; i < 3; i++) {
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
48 p->xyz[i] = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
49 p->angle[i] = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
50 p->stack_xyz[i] = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
51 p->next_xyz[i] = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
52 p->v_xyz[i] = 0;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
53 p->next_v_xyz[i] = 0;
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
54 }
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
55
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
56 p->property_index = 0;
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
57 p->parent_index = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
58 p->have_parent = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
59 p->can_move = TRUE;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
60 p->parent = NULL;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
61 p->children = NULL;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
62 p->node = NULL;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
63 }
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
64
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
65 static void
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
66 move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
67 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
68 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
69 HTaskPtr property_task = sgroot->move_exec_task;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
70
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
71 property_task->add_inData(property, sizeof(Property)*PROPERTY_LENGTH);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
72 property_task->add_outData(update_property, sizeof(Property)*PROPERTY_LENGTH);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
73 property_task->set_cpu(SPE_ANY);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
74 property_task->set_post(createSceneGraphFromProperty, (void *)sgroot, 0);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
75 property_task->spawn();
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
76 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
77
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
78 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
79 collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
80 SceneGraphPtr tree)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
81 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
82 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
83
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
84 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
85 createSceneGraphFromProperty(SchedTask *s, void *sgroot_, void *arg1)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
86 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
87 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
88 SceneGraphPtr camera = sgroot->camera;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
89 SceneGraphPtr p_node;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
90 SceneGraphPtr root;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
91
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
92 // ここが allExecute の tree をたどって clone して行くところに相当する
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
93 Property *p;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
94
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
95 for (int i = 0; i < PROPERTY_LENGTH; i++) {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
96 p = &update_property[i];
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
97 SceneGraphPtr node = sgroot->createSceneGraph(p->sgid);
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
98 apply_property(node, p);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
99 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
100
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
101 for (int j = 0; j < PROPERTY_LENGTH; j++) {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
102 p = &update_property[j];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
103 p_node = (SceneGraphPtr)p->node;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
104 if (p->have_parent) {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
105 SceneGraphPtr parent = (SceneGraphPtr)update_property[p->parent_index].node;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
106 parent->addChild(p_node);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
107 get_matrix(p_node->matrix, p_node->angle, p_node->xyz, parent->matrix);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
108 get_matrix(p_node->real_matrix, p_node->angle, p_node->xyz, parent->real_matrix);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
109 } else {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
110 get_matrix(p_node->matrix, p_node->angle, p_node->xyz, camera->matrix);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
111 get_matrix(p_node->real_matrix, p_node->angle, p_node->xyz, camera->real_matrix);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
112 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
113 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
114
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
115 root = (SceneGraphPtr)update_property[0].node;
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
116 root->set_move_collision(move, collision);
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
117 sgroot->setSceneData(root);
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
118
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
119 Property *tmp = property;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
120 property = update_property;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
121 update_property = tmp;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
122
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
123 sgroot->move_finish();
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
124 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
125
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
126 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
127 apply_property(SceneGraphPtr node, Property *p)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
128 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
129 for (int i = 0; i < 3; i++) {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
130 node->xyz[i] = p->xyz[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
131 node->angle[i] = p->angle[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
132 node->stack_xyz[i] = p->stack_xyz[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
133 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
134 p->node = (memaddr)node;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
135 node->property = (memaddr)p;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
136 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
137
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
138 /*
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
139 ここで必要な値をプロパティに格納
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
140 */
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
141 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
142 set_property(Property *p, SceneGraphPtr node, int index)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
143 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
144 for (int i = 0; i < 3; i++) {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
145 p->xyz[i] = node->xyz[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
146 p->angle[i] = node->angle[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
147 p->stack_xyz[i] = node->stack_xyz[i];
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
148 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
149 p->parent = (memaddr)node->parent;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
150 p->children = (memaddr)node->children;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
151 p->property_index = index;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
152 p->sgid = node->sgid;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
153 p->node = (memaddr)node;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
154 node->property = (memaddr)p;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
155 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
156
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
157 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
158 regist_task(SceneGraphRoot *sgroot)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
159 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
160 TaskManager *manager = sgroot->tmanager;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
161 HTaskPtr task = manager->create_task(ChainTask);
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
162 // sgroot->setExecTask(task); とやるべき?
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
163 sgroot->move_exec_task = task;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
164 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
165
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
166 /*
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
167 Property に親子関係を書き込む
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
168 これも API に入れちゃっていいかな
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
169 */
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
170 static void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
171 set_relation(SceneGraphPtr parent, SceneGraphPtr child)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
172 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
173 Property *p = (Property *)parent->property;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
174 Property *c = (Property *)child->property;
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
175 p->children = (memaddr)child;
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
176 c->parent = (memaddr)parent;
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
177 c->parent_index = p->property_index;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
178 c->have_parent = 1;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
179 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
180
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
181 MainLoopPtr
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
182 property_chain::init(Viewer *viewer, int screen_w, int screen_h)
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
183 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
184 // SgChange を使うための2行
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
185 SgChange *sgroot = new SgChange(viewer);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
186 sgroot->run_init();
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
187 // 上で書いた regist_task() を登録
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
188 // sgroot->appTaskRegist(regist_task); がいいかな
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
189 sgroot->sgroot_A->appTaskRegist(regist_task);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
190
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
191 property = (Property *)sgroot->manager->allocate(sizeof(Property)*PROPERTY_LENGTH);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
192 update_property = (Property *)sgroot->manager->allocate(sizeof(Property)*PROPERTY_LENGTH);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
193
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
194 // property の初期化 application ごとに固有
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
195 for(int i = 0; i < PROPERTY_LENGTH; i++) {
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
196 init_chain(&property[i]);
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
197 }
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
198
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
199 SceneGraphPtr root_chain, chain;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
200 sgroot->createFromXMLfile("xml_file/chain.xml");
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
201 root_chain = sgroot->createSceneGraph("CHAIN");
773
8dd9fe36e206 add chain_move.h
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 772
diff changeset
202 //root_chain->xyz[0] = screen_w / 2;
8dd9fe36e206 add chain_move.h
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 772
diff changeset
203 //root_chain->xyz[0] = screen_w / 4;
8dd9fe36e206 add chain_move.h
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 772
diff changeset
204 root_chain->xyz[0] = 300.0f;
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
205 root_chain->xyz[1] = 0.0f;
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
206 root_chain->set_move_collision(move, collision);
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
207 set_property(&property[0], root_chain, 0);
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
208
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
209 for (int i = 1; i < PROPERTY_LENGTH; i++) {
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
210 chain = sgroot->createSceneGraph("CHAIN");
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
211 chain->xyz[0] = 0;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
212 chain->xyz[1] = chain_width * i;
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
213 chain->angle[1] = -90 * (i % 2);
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
214 root_chain->addChild(chain);
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
215 set_property(&property[i], chain, i);
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
216 set_relation(root_chain, chain);
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
217 }
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
218
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
219 // root の set_property は SceneGraph を作成してから実行
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
220 // addChild したら set_relation しないとだめ、あんまりにもあんまり
770
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
221
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
222 /*
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
223 apply_property は post_func の createSceneGraphFromProperty 中で使う
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
224 apply_property は sgroot に持たせてもいいと思います○
aed3d2501c38 property_chain is under construction
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 769
diff changeset
225 */
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
226
771
720720e4e8df fix Test/property_chain
hiroki
parents: 770
diff changeset
227 sgroot->setSceneData(root_chain);
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
228
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
229 return sgroot;
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
230 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
231
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
232 extern Application *
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
233 application() {
772
e53ae444ac6f Test/property_chain is work
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 771
diff changeset
234 return new property_chain();
769
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
235 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
236
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
237 const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n";
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
238
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
239 extern int init(TaskManager *manager, int argc, char *argv[]);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
240 extern void task_initialize();
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
241 static void TMend(TaskManager *manager);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
242
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
243 int
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
244 TMmain(TaskManager *manager, int argc, char *argv[])
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
245 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
246 task_initialize();
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
247 manager->set_TMend(TMend);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
248 return init(manager, argc, argv);
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
249
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
250 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
251
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
252 void
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
253 TMend(TaskManager *manager)
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
254 {
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
255 printf("test_nogl end\n");
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
256 }
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
257
2a00c1f470b7 add add spe/chain_move Test/property_chain, not workd
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
258 /* end */