ScummVM API documentation
te_scene.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TETRAEDGE_TE_TE_SCENE_H
23 #define TETRAEDGE_TE_TE_SCENE_H
24 
25 #include "common/array.h"
26 #include "common/ptr.h"
27 #include "common/str.h"
28 #include "common/path.h"
29 
30 #include "tetraedge/te/te_camera.h"
31 #include "tetraedge/te/te_model.h"
32 
33 namespace Tetraedge {
34 
35 class TeScene {
36 public:
37  TeScene();
38  virtual ~TeScene() {};
39 
40  virtual void close();
41 
42  TeIntrusivePtr<TeCamera> camera(const Common::String &cname);
43  TeIntrusivePtr<TeModel> model(const Common::String &mname);
44 
45  TeIntrusivePtr<TeCamera> currentCamera();
46  int currentCameraIndex() const { return _currentCameraIndex; }
47  Common::String currentCameraName() const;
48 
49  virtual void draw();
50  virtual bool load(const Common::Path &path) { return false; };
51 
52  void removeModel(const Common::String &mname);
53  void setCurrentCamera(const Common::String &cname);
54  void setCurrentCameraIndex(uint index) {
55  _currentCameraIndex = index;
56  }
57 
58  virtual void update();
59 
60  Common::Array<TeIntrusivePtr<TeModel>> &models() { return _models; }
61 
62 protected:
63  Common::Array<TeIntrusivePtr<TeCamera>> &cameras() { return _cameras; }
64 
65 private:
66  uint _currentCameraIndex;
69 
70 };
71 
72 } // end namespace Tetraedge
73 
74 #endif // TETRAEDGE_TE_TE_SCENE_H
Definition: str.h:59
Definition: detection.h:27
Definition: array.h:52
Definition: path.h:52
Definition: te_intrusive_ptr.h:31
Definition: te_scene.h:35