Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/simple_render/trash/scene.cpp @ 39:b6858e9fe2b4
*** empty log message ***
author | gongo |
---|---|
date | Wed, 13 Feb 2008 15:10:47 +0900 |
parents | |
children |
line wrap: on
line source
#include <iostream> #include "polygon.h" #include "xml.h" #include "texture.h" #include "demonstration.h" #include "scene.h" #include "pad.h" using namespace std; Scene::Scene() { action_scene = &Scene::title_init; } void Scene::title_init() { demo = new Demonstration; demo->list = new Polygon; demo->list->set_data("xml/title.xml"); action_scene = &Scene::title; } void Scene::title() { (demo->*demo->action_demo)(); if(demo->action_demo == NULL) { action_scene = &Scene::title_end; } } void Scene::title_end() { delete demo->list; delete demo; action_scene = NULL; }