view TaskManager/Test/test_render/Application.h @ 445:efe8584a7b5a draft

test_render error fixed
author game@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 25 Sep 2009 07:26:35 +0900
parents afbc6ec42c7f
children 9b06420a940c
line wrap: on
line source

class Application;
typedef Application *ApplicationPtr;

#ifndef INCLUDED_APPLICATION
#define INCLUDED_APPLICATION

#include "SceneGraph.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 Application {
public:
    Application();
    virtual ~Application();
    
    void *propertyPtr;
    int property_size;
    void set_move_func(move_func move);
    void set_coll_func(coll_func coll);
    //void set_move_taskid(int id);
    //SceneGraphPtr scenegraph_factory(PropertyPtr p);
    //SceneGraphPtr scenegraph_connector(PropertyPtr p,SceneGraphPtr s);
    SceneGraphPtr scenegraph_factory(void *p, int size);
    SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list);
    void init(TaskManager *manager, int w, int h);

    virtual int move_task_id();

};

#endif