view TaskManager/Test/test_render/Application.h @ 528:541013f7015c

Application ander constructing
author game@henri.cr.ie.u-ryukyu.ac.jp
date Tue, 20 Oct 2009 23:25:22 +0900
parents 99a92f6a1c59
children
line wrap: on
line source

#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;
    int move_task_id_;
    void *sg_available_list;
    //void *properties[2];
    //void *property;
	
    int move_task_id();
    virtual void apply_property(void *p, SceneGraphPtr sgptr);
    virtual SceneGraphPtr scenegraph_factory(void *p);
    virtual void scenegraph_connector(void *p, SceneGraphPtr s);
    virtual void property_loop();
    virtual void property_ope(SceneGraphPtr sg_available_list) {};
    //virtual SceneGraphPtr scenegraph_factory(void *p, int size);
    //virtual SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list);
    virtual void init(TaskManager *manager, int w, int h) ;

};

#endif