ScummVM API documentation
billboard.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_GAME_BILLBOARD_H
23 #define TETRAEDGE_GAME_BILLBOARD_H
24 
25 #include "common/str.h"
26 
27 #include "tetraedge/te/te_object.h"
28 #include "tetraedge/te/te_intrusive_ptr.h"
29 #include "tetraedge/te/te_model.h"
30 #include "tetraedge/te/te_vector2f32.h"
31 #include "tetraedge/te/te_vector3f32.h"
32 
33 namespace Tetraedge {
34 
35 class Billboard : public TeObject {
36 public:
37  Billboard();
38 
39  bool load(const Common::Path &path);
40 
41  void calcVertex();
42  void position(const TeVector3f32 &pos);
43  void position2(const TeVector3f32 &pos);
44  void size(const TeVector2f32 &size);
45 
46  TeIntrusivePtr<TeModel> &model() { return _model; }
47 
48 private:
50  TeVector3f32 _pos;
51  TeVector3f32 _pos2;
52  TeVector2f32 _size;
53  bool _hasPos2;
54 };
55 
56 } // end namespace Tetraedge
57 
58 #endif // TETRAEDGE_GAME_BILLBOARD_H
Definition: detection.h:27
Definition: path.h:52
Definition: te_object.h:29
Definition: te_intrusive_ptr.h:31
Definition: billboard.h:35
Definition: te_vector3f32.h:33
Definition: te_vector2f32.h:32