CommonLibSSE NG
GImageBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GArray.h"
4 #include "RE/G/GColor.h"
5 
6 namespace RE
7 {
8  class GImageBase
9  {
10  public:
11  enum class ImageFormat
12  {
13  kNone = 0,
14  kARGB_8888 = 1,
15  kRGB_888 = 2,
16  kL_8 = 8,
17  kA_8 = 9,
18  kDXT1 = 10,
19  kDXT3 = 11,
20  kDXT5 = 12,
21 
22  kP_8 = 100,
23 
24  kYUV_822 = 200,
25  kYUVA_8228 = 201,
26  };
27 
29  std::uint32_t width; // 04
30  std::uint32_t height; // 08
31  std::uint32_t pitch; // 0C
32  std::uint8_t* data; // 10
33  std::uint32_t dataSize; // 18
34  std::uint32_t mipMapCount; // 1C
36  };
37  static_assert(sizeof(GImageBase) == 0x38);
38 }
Definition: GArray.h:13
Definition: GImageBase.h:9
GArray< GColor > colorMap
Definition: GImageBase.h:35
std::uint32_t height
Definition: GImageBase.h:30
std::uint32_t width
Definition: GImageBase.h:29
std::uint8_t * data
Definition: GImageBase.h:32
std::uint32_t pitch
Definition: GImageBase.h:31
ImageFormat
Definition: GImageBase.h:12
std::uint32_t dataSize
Definition: GImageBase.h:33
stl::enumeration< ImageFormat, std::uint32_t > format
Definition: GImageBase.h:28
std::uint32_t mipMapCount
Definition: GImageBase.h:34
Definition: AbsorbEffect.h:6