view Renderer/Engine/Application.h @ 1043:283b15633c0f

Merged ( app_loop should return 1, if you want to use allExecute )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 08 Dec 2010 00:04:02 +0900
parents b9cd0c88b69a b067fd5d8859
children 150412ed980a
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();

<<<<<<< local
    virtual bool app_main(Viewer *viewer){ return 1; /* use all execute */ };
=======
    virtual void app_loop(Viewer *viewer){};
>>>>>>> other
    virtual HTaskPtr application_task(HTaskPtr next, Viewer* viewer){return next;};
    virtual MainLoopPtr init(Viewer *viewer, int w, int h)  = 0;
};

#endif