HatchitResource
ht_image.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_types.h>
19 #include <ht_file.h>
20 
21 namespace Hatchit {
22 
23  namespace Resource {
24 
25  class HT_API Image
26  {
27  public:
28  Image();
29 
30  ~Image();
31 
32  const int32_t GetWidth() const;
33  const int32_t GetHeight() const;
34  const int32_t GetChannels() const;
35  const int32_t GetBPP() const;
36  const BYTE* GetData() const;
37 
38 
39  enum class Channels
40  {
41  AUTO,
42  L,
43  LA,
44  RGB,
45  RGBA
46  };
47 
48  static Image* Load(Core::File* file, Channels channels);
49 
50 
51  private:
52  int32_t m_width;
53  int32_t m_height;
54  int32_t m_channels;
55  int32_t m_bpp;
56  BYTE* m_data;
57  };
58  }
59 
60 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_assimp.h:31
Definition: ht_image.h:25