view TaskManager/Test/test_render/Application.h @ 431:b40a9b901d71 draft

fix
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 20:43:14 +0900
parents ead3024bcc3c
children 7705fa2025da
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();
    ~Application();
    
    void* propertyPtr;

    void set_move_func(move_func move);
    void set_coll_func(coll_func coll);
//    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);

    move_func move;
    coll_func coll;
};

typedef Application *Application;

#endif