Mercurial > hg > Members > kono > Cerium
view old/simple_render/trash/scene.cpp @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | TaskManager/Test/simple_render/trash/scene.cpp@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; }