GlobeEngine
TextureBundle.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_TextureBundle_h
9 #define GlobeEngine_TextureBundle_h
10 
11 #include "OpenGL_Includes.h"
12 #include "Texture.h"
13 #include "Animation.h"
14 #include <vector>
15 
16 namespace ge {
17  /*
18  * A texture bundles holds a 1D array of textures
19  * which can be animated on request.
20  */
22  {
23 
24  public:
25  TextureBundle();
27  void clear();
28  void create(double _animationIntervall);
29  void update();
30  void startAnimation();
31  void stopAnimation();
32  void addTexture(std::shared_ptr<ge::TextureHandle> _handle);
33  GLuint getCurrentActiveHandle() const;
34 
35  private:
36  std::vector<std::shared_ptr<ge::TextureHandle> > textureList;
37 
38  ge::Animation animation;
39  };
40 }
41 #endif
TextureBundle()
Definition: TextureBundle.cpp:11
~TextureBundle()
Definition: TextureBundle.cpp:15
GLuint getCurrentActiveHandle() const
Definition: TextureBundle.cpp:52
void update()
Definition: TextureBundle.cpp:34
void create(double _animationIntervall)
Definition: TextureBundle.cpp:29
void stopAnimation()
Definition: TextureBundle.cpp:42
void addTexture(std::shared_ptr< ge::TextureHandle > _handle)
Definition: TextureBundle.cpp:46
void clear()
Definition: TextureBundle.cpp:19
Definition: AvalancheTrainingSimulationEngine.h:28
void startAnimation()
Definition: TextureBundle.cpp:38
Definition: TextureBundle.h:21
Definition: Animation.h:12