Mercurial > hg > Members > tkaito > task_dandy
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dandy.h Tue Jun 15 11:14:36 2010 +0900 @@ -0,0 +1,23 @@ +#include <math.h> +#include <stdlib.h> +#include "SceneGraph.h" +#include "Application.h" +#include "MainLoop.h" + +class dandy : public Application { + MainLoopPtr init(Viewer *viewer, int w, int h); +}; + +typedef void (*move)(SceneGraphPtr node, void *sgroot_, int w, int h); +typedef void (*coll)(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree); + +typedef struct { + double x, y; + double vx, vy; + const char *chara; + int vital; + int score; + void *parent; + void *root; + +} *ObjPropertyPtr, ObjProperty;