comparison 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
comparison
equal deleted inserted replaced
506:1d4a8a86f26b 507:735f76483bb2
1 #include <iostream>
2 #include "polygon.h"
3 #include "xml.h"
4 #include "texture.h"
5 #include "demonstration.h"
6 #include "scene.h"
7 #include "pad.h"
8 using namespace std;
9
10 Scene::Scene()
11 {
12 action_scene = &Scene::title_init;
13 }
14
15 void Scene::title_init()
16 {
17 demo = new Demonstration;
18 demo->list = new Polygon;
19 demo->list->set_data("xml/title.xml");
20
21 action_scene = &Scene::title;
22 }
23
24 void Scene::title()
25 {
26 (demo->*demo->action_demo)();
27
28 if(demo->action_demo == NULL)
29 {
30 action_scene = &Scene::title_end;
31 }
32 }
33
34 void Scene::title_end()
35 {
36 delete demo->list;
37 delete demo;
38 action_scene = NULL;
39 }