Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/simple_render/trash/scene.cpp @ 217:897aeb144569
fix
author | gongo@localhost.localdomain |
---|---|
date | Wed, 04 Feb 2009 22:50:42 +0900 |
parents | b6858e9fe2b4 |
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; }