CommonLibSSE (Parapets fork)
RE::GTexture Class Referenceabstract

#include <GTexture.h>

Inheritance diagram for RE::GTexture:
RE::GNewOverrideBase< GStatRenderer::kMem >

Classes

class  ChangeHandler
 
struct  MapRect
 
struct  UpdateRect
 

Public Types

enum class  MapFlags { kNone = 0 , kKeepOld = 1 }
 
enum class  ImageTexUsage { kWrap = 1 << 0 , kUpdate = 1 << 4 , kMap = 1 << 5 , kRenderTarget = 1 << 6 }
 
using Handle = void *
 
- Public Types inherited from RE::GNewOverrideBase< GStatRenderer::kMem >
enum  
 

Public Member Functions

virtual ~GTexture ()=default
 
virtual bool InitTexture (GImageBase *a_im, ImageTexUsage a_usage=ImageTexUsage::kWrap)=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 Update (std::int32_t a_level, std::int32_t a_num, const UpdateRect *a_rects, const GImageBase *a_im)=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 Unmap (std::int32_t a_level, std::int32_t a_num, MapRect *a_maps, MapFlags a_flags=MapFlags::kNone)=0
 
virtual GRendererGetRenderer () const =0
 
virtual bool IsDataValid () const =0
 
virtual Handle GetUserData () const =0
 
virtual void SetUserData (Handle a_data)=0
 
virtual void AddChangeHandler (ChangeHandler *a_handler)=0
 
virtual void RemoveChangeHandler (ChangeHandler *a_handler)=0
 
- Public Member Functions inherited from RE::GNewOverrideBase< GStatRenderer::kMem >
 GFC_MEMORY_REDEFINE_NEW (GNewOverrideBase, Stat)
 

Public Attributes

GAtomicInt< std::int32_t > refCount
 

Member Typedef Documentation

◆ Handle

using RE::GTexture::Handle = void*

Member Enumeration Documentation

◆ ImageTexUsage

Enumerator
kWrap 
kUpdate 
kMap 
kRenderTarget 

◆ MapFlags

Enumerator
kNone 
kKeepOld 

Constructor & Destructor Documentation

◆ ~GTexture()

virtual RE::GTexture::~GTexture ( )
virtualdefault

Member Function Documentation

◆ AddChangeHandler()

virtual void RE::GTexture::AddChangeHandler ( ChangeHandler a_handler)
pure virtual

◆ GetRenderer()

virtual GRenderer* RE::GTexture::GetRenderer ( ) const
pure virtual

◆ GetUserData()

virtual Handle RE::GTexture::GetUserData ( ) const
pure virtual

◆ InitDynamicTexture()

virtual bool RE::GTexture::InitDynamicTexture ( std::int32_t  a_width,
std::int32_t  a_height,
GImage::ImageFormat  a_format,
std::int32_t  a_mipmaps,
ImageTexUsage  a_usage 
)
pure virtual

◆ InitTexture()

virtual bool RE::GTexture::InitTexture ( GImageBase a_im,
ImageTexUsage  a_usage = ImageTexUsage::kWrap 
)
pure virtual

◆ IsDataValid()

virtual bool RE::GTexture::IsDataValid ( ) const
pure virtual

◆ Map()

virtual std::int32_t RE::GTexture::Map ( std::int32_t  a_level,
std::int32_t  a_num,
MapRect a_maps,
MapFlags  a_flags = MapFlags::kNone 
)
pure virtual

◆ RemoveChangeHandler()

virtual void RE::GTexture::RemoveChangeHandler ( ChangeHandler a_handler)
pure virtual

◆ SetUserData()

virtual void RE::GTexture::SetUserData ( Handle  a_data)
pure virtual

◆ Unmap()

virtual bool RE::GTexture::Unmap ( std::int32_t  a_level,
std::int32_t  a_num,
MapRect a_maps,
MapFlags  a_flags = MapFlags::kNone 
)
pure virtual

◆ Update()

virtual void RE::GTexture::Update ( std::int32_t  a_level,
std::int32_t  a_num,
const UpdateRect a_rects,
const GImageBase a_im 
)
pure virtual

Member Data Documentation

◆ refCount

GAtomicInt<std::int32_t> RE::GTexture::refCount

The documentation for this class was generated from the following file: