Mercurial > hg > Game > Cerium
view Renderer/Engine/Application.h @ 1996:9657434c21a4 draft
change memory allocate function malloc() to manager->allocate in my_read
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Apr 2014 18:49:21 +0900 |
parents | a8890e363061 |
children | 363b7c401c79 |
line wrap: on
line source
#ifndef INCLUDED_APPLICATION #define INCLUDED_APPLICATION #include "SceneGraph.h" #include "MainLoop.h" #include "viewer.h" typedef void (*Move_func)(SceneGraph* node, int screen_w, int screen_h); typedef void (*Coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree); class Viewer; class Application { public: Application(); virtual ~Application(); virtual bool app_loop(Viewer *viewer){ return 1; /* use all execute */ }; virtual HTaskPtr application_task(HTaskPtr next, Viewer* viewer){return next;}; virtual MainLoopPtr init(Viewer *viewer, int w, int h) = 0; }; #endif