Image.hpp
Go to the documentation of this file.
1 
6 // TODO : Change tis file name ...
7 #pragma once
8 
9 #include <etk/types.hpp>
10 #include <etk/types.hpp>
11 #include <egami/Image.hpp>
13 
14 
15 
16 namespace ewol {
17  namespace resource {
19  public:
20  static const ivec2 sizeAuto;
21  static const ivec2 sizeDefault;
22  private:
23  vec2 m_realImageSize;
24  protected:
25  TextureFile();
26  void init();
27  void init(std::string _genName, const std::string& _fileName, const ivec2& _size);
28  public:
29  virtual ~TextureFile() { };
30  public:
31  const vec2& getRealSize() {
32  return m_realImageSize;
33  };
34  public:
43  static ememory::SharedPtr<ewol::resource::TextureFile> create(const std::string& _filename,
44  ivec2 _size=ewol::resource::TextureFile::sizeAuto,
45  ivec2 _sizeRegister=ewol::resource::TextureFile::sizeAuto);
46  };
47  };
48 };
49 
Definition: Area.hpp:16
Definition: Image.hpp:18
Definition: Texture.hpp:15
static ememory::SharedPtr< ewol::resource::TextureFile > create(const std::string &_filename, ivec2 _size=ewol::resource::TextureFile::sizeAuto, ivec2 _sizeRegister=ewol::resource::TextureFile::sizeAuto)
keep the resource pointer.