Sprite.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <ewol/debug.hpp>
10 
11 namespace ewol {
12  namespace compositing {
14  protected:
17  public:
18  Sprite(const std::string& _imageName,
19  const ivec2& _nbSprite,
20  int32_t _size=ewol::compositing::Image::sizeAuto);
21  virtual ~Sprite() {};
22  void printSprite(const ivec2& _spriteID, const vec2& _size) {
23  printSprite(_spriteID, vec3(_size.x(), _size.y(),0));
24  };
25  void printSprite(const ivec2& _spriteID, const vec3& _size);
26  };
27  }
28 }
29 
const T & x() const
vec2 m_unitarySpriteSize
size of a unique sprite
Definition: Sprite.hpp:16
Definition: Sprite.hpp:13
Definition: Area.hpp:16
const T & y() const
Definition: Image.hpp:16
ivec2 m_nbSprite
number of sprite in vertical and horizontal
Definition: Sprite.hpp:15