CommonLibSSE NG
GImageInfoBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GMemory.h"
4 #include "RE/G/GRect.h"
6 #include "RE/G/GStats.h"
7 #include "RE/G/GTexture.h"
8 
9 namespace RE
10 {
11  class GRenderer;
12 
14  public GRefCountBaseNTS<GImageInfoBase, GStatGroups::kGStat_Default_Mem>, // 00
15  public GTexture::ChangeHandler // 10
16  {
17  public:
18  enum class ImageInfoType
19  {
20  kImageInfo,
22  kOther
23  };
24 
25  virtual ~GImageInfoBase(); // 00
26 
27  // add
28  virtual std::uint32_t GetWidth() const = 0; // 01
29  virtual std::uint32_t GetHeight() const = 0; // 02
30  virtual GTexture* GetTexture(GRenderer* a_renderer) = 0; // 03
32  virtual GRect<std::int32_t> GetRect() const; // 05
33  virtual std::uint32_t GetImageInfoType() const; // 06
34  };
35  static_assert(sizeof(GImageInfoBase) == 0x18);
36 }
Definition: GImageInfoBase.h:16
virtual ~GImageInfoBase()
virtual std::uint32_t GetImageInfoType() const
virtual GImageInfoBase * CreateSubImage(const GRect< std::int32_t > &a_rect, GMemoryHeap *a_heap=GMemory::GetGlobalHeap())
virtual std::uint32_t GetHeight() const =0
virtual std::uint32_t GetWidth() const =0
ImageInfoType
Definition: GImageInfoBase.h:19
virtual GRect< std::int32_t > GetRect() const
virtual GTexture * GetTexture(GRenderer *a_renderer)=0
Definition: GMemoryHeap.h:16
static GMemoryHeap * GetGlobalHeap()
Definition: GRefCountBaseNTS.h:10
Definition: GRenderer.h:19
Definition: GTexture.h:55
Definition: GTexture.h:15
Definition: AbsorbEffect.h:6