Simulant
21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
simulant
scenes
loading.h
1
/* * Copyright (c) 2011-2017 Luke Benstead https://simulant-engine.appspot.com
2
*
3
* This file is part of Simulant.
4
*
5
* Simulant is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* Simulant is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with Simulant. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef LOADING_H
20
#define LOADING_H
21
22
#include <vector>
23
24
#include "../generic/property.h"
25
#include "../generic/managed.h"
26
#include "../types.h"
27
#include "scene.h"
28
#include "../nodes/ui/progress_bar.h"
29
30
namespace
smlt
{
31
32
33
namespace
scenes {
34
35
class
Loading
:
36
public
Scene
<Loading> {
37
38
public
:
39
Loading
(
Window
* window):
40
Scene<Loading>
(window) {}
41
42
private
:
43
void
activate()
override
;
44
void
deactivate()
override
;
45
46
void
load()
override
;
47
void
unload()
override
;
48
49
StagePtr
stage_;
50
CameraPtr
camera_;
51
PipelinePtr
pipeline_;
52
53
ui::ProgressBar
* progress_bar_ =
nullptr
;
54
55
public
:
56
S_DEFINE_PROPERTY(progress_bar, &Loading::progress_bar_);
57
};
58
59
}
60
}
61
62
#endif // LOADING_H
smlt
Definition:
animation.cpp:25
smlt::Window
Definition:
window.h:65
smlt::Scene
Definition:
scene.h:165
smlt::scenes::Loading
Definition:
loading.h:36
smlt::default_init_ptr< Stage >
smlt::ui::ProgressBar
Definition:
progress_bar.h:14
Generated by
1.8.20