ScummVM API documentation
te_sprite_layout.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_SPRITE_LAYOUT_H
23 #define TETRAEDGE_TE_TE_SPRITE_LAYOUT_H
24 
25 #include "tetraedge/te/te_layout.h"
26 #include "tetraedge/te/te_tiled_surface.h"
27 
28 namespace Tetraedge {
29 
30 class TeSpriteLayout : public TeLayout {
31 public:
33 
34  int bufferSize();
35  void cont();
36  void draw() override;
37 
38  virtual bool onParentWorldColorChanged() override;
39 
40  bool load(const Common::Path &path);
41  bool load(TeImage &img);
42  bool load(TeIntrusivePtr<Te3DTexture> &texture);
43 
44  void unload();
45  void pause();
46  void play();
47 
48  void setBufferSize(int bufsize);
49  void setColor(const TeColor &col) override;
50 
51  void setColorKey(const TeColor &col);
52  void setColorKeyActivated(bool activated);
53  void setColorKeyTolerence(float val);
54 
55  bool setName(const Common::String &newName) override;
56  void setSize(const TeVector3f32 &newSize) override;
57 
58  void stop();
59 
60  void updateMesh() override;
61  void updateSize() override;
62 
63  TeIntrusivePtr<TeTiledSurface> _tiledSurfacePtr;
64 
65 private:
66  bool _sizeSet;
67  //bool _allowFloatTranslate;
68 
69 };
70 
71 } // end namespace Tetraedge
72 
73 #endif // TETRAEDGE_TE_TE_SPRITE_LAYOUT_H
Definition: te_image.h:40
Definition: str.h:59
Definition: detection.h:27
Definition: te_color.h:30
Definition: path.h:52
Definition: te_layout.h:35
Definition: te_intrusive_ptr.h:31
Definition: te_vector3f32.h:33
Definition: te_sprite_layout.h:30