CommonLibSSE NG
GColor.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  class GColor
6  {
7  public:
8  struct RGB32
9  {
10  std::uint8_t blue; // 0
11  std::uint8_t green; // 1
12  std::uint8_t red; // 2
13  std::uint8_t alpha; // 3
14  };
15  static_assert(sizeof(RGB32) == 0x4);
16 
17  union ColorData
18  {
20  std::uint32_t raw;
21  };
22  static_assert(sizeof(ColorData) == 0x4);
23 
24  // members
26  };
27  static_assert(sizeof(GColor) == 0x4);
28 }
Definition: GColor.h:6
ColorData colorData
Definition: GColor.h:22
Definition: AbsorbEffect.h:6
Definition: GColor.h:9
std::uint8_t red
Definition: GColor.h:12
std::uint8_t blue
Definition: GColor.h:10
std::uint8_t alpha
Definition: GColor.h:13
std::uint8_t green
Definition: GColor.h:11
Definition: GColor.h:18
std::uint32_t raw
Definition: GColor.h:20
RGB32 channels
Definition: GColor.h:19