52 static_assert(
sizeof(
MapRect) == 0x18);
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: GImageBase.h:9
ImageFormat
Definition: GImageBase.h:12
Definition: GNewOverrideBase.h:9
Definition: GRenderer.h:19
Definition: GTexture.h:55
EventType
Definition: GTexture.h:58
virtual ~ChangeHandler()=default
virtual bool Recreate(GRenderer *a_renderer)
virtual void OnChange(GRenderer *a_renderer, EventType a_changeType)
Definition: GTexture.h:15
MapFlags
Definition: GTexture.h:20
virtual bool Unmap(std::int32_t a_level, std::int32_t a_num, MapRect *a_maps, MapFlags a_flags=MapFlags::kNone)=0
virtual bool InitTexture(GImageBase *a_im, ImageTexUsage a_usage=ImageTexUsage::kWrap)=0
virtual std::int32_t Map(std::int32_t a_level, std::int32_t a_num, MapRect *a_maps, MapFlags a_flags=MapFlags::kNone)=0
virtual bool IsDataValid() const =0
virtual Handle GetUserData() const =0
virtual GRenderer * GetRenderer() const =0
virtual ~GTexture()=default
virtual void SetUserData(Handle a_data)=0
virtual bool InitDynamicTexture(std::int32_t a_width, std::int32_t a_height, GImage::ImageFormat a_format, std::int32_t a_mipmaps, ImageTexUsage a_usage)=0
virtual void RemoveChangeHandler(ChangeHandler *a_handler)=0
void * Handle
Definition: GTexture.h:17
virtual void Update(std::int32_t a_level, std::int32_t a_num, const UpdateRect *a_rects, const GImageBase *a_im)=0
virtual void AddChangeHandler(ChangeHandler *a_handler)=0
ImageTexUsage
Definition: GTexture.h:26
GAtomicInt< std::int32_t > refCount
Definition: GTexture.h:88
Definition: AbsorbEffect.h:6
Definition: GTexture.h:43
std::uint32_t height
Definition: GTexture.h:47
std::uint32_t pad14
Definition: GTexture.h:50
std::uint32_t pitch
Definition: GTexture.h:49
std::uint8_t * data
Definition: GTexture.h:48
std::uint32_t width
Definition: GTexture.h:46
Definition: GTexture.h:34
GPoint< std::int32_t > dest
Definition: GTexture.h:37
GRect< std::int32_t > src
Definition: GTexture.h:38