Mercurial > hg > Game > Cerium
view Renderer/Test/property_universe.h @ 2069:26aa08c9a1de draft default tip
cuda example fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Feb 2017 10:04:55 +0900 |
parents | 06302c1dc87d |
children |
line wrap: on
line source
#include <math.h> #include <stdlib.h> #include "SceneGraphRoot.h" #include "Application.h" #include "MainLoop.h" #include "viewer.h" typedef struct { float xyz[3]; // 12 byte float angle[3]; float stack_xyz[3]; int property_index; int parent_index; int have_parent; /* SceneGraphPtr parent; SceneGraphPtr children; SceneGraphPtr node; */ memaddr parent; memaddr children; memaddr node; const char *name; } *PropertyPtr, Property; class property_universe : public Application { MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h); };