Mercurial > hg > Members > tkaito > task_dandy
annotate dandy.h @ 1:7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
author | tkaito |
---|---|
date | Tue, 15 Jun 2010 11:14:36 +0900 |
parents | |
children | 6e1afe1016dc |
rev | line source |
---|---|
1
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
1 #include <math.h> |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
2 #include <stdlib.h> |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
3 #include "SceneGraph.h" |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
4 #include "Application.h" |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
5 #include "MainLoop.h" |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
6 |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
7 class dandy : public Application { |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
8 MainLoopPtr init(Viewer *viewer, int w, int h); |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
9 }; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
10 |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
11 typedef void (*move)(SceneGraphPtr node, void *sgroot_, int w, int h); |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
12 typedef void (*coll)(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree); |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
13 |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
14 typedef struct { |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
15 double x, y; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
16 double vx, vy; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
17 const char *chara; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
18 int vital; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
19 int score; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
20 void *parent; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
21 void *root; |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
22 |
7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff
changeset
|
23 } *ObjPropertyPtr, ObjProperty; |