CommonLibSSE (Parapets fork)
RE::GFxResource Class Reference

#include <GFxResource.h>

Inheritance diagram for RE::GFxResource:
RE::GNewOverrideBase< GStatGroups::kGStat_Default_Mem > RE::GFxCharacterDef RE::GFxMovieDef RE::GFxButtonCharacterDef RE::GFxEditTextCharacterDef RE::GFxShapeBaseCharacterDef RE::GFxStaticTextCharacterDef RE::GFxTimelineDef RE::GFxMovieDefImpl RE::GFxConstShapeCharacterDef RE::GFxShapeCharacterDef RE::GFxMovieDataDef RE::GFxTimelineIODef RE::GFxMorphCharacterDef RE::GFxSpriteDef

Public Types

enum class  ResourceType {
  kCharacterDefBit = 1 << 7 , kNone = 0 , kImage , kFont ,
  kMovieDef , kSoundSample , kMovieDataDef = kCharacterDefBit | 0 , kButtonDef ,
  kTextDef , kEditTextDef , kSpriteDef , kShapeDef ,
  kVideoDef , kTypeCode_Mask = 0xFF00 , kTypeCode_Shift = 8
}
 
enum class  ResourceUse {
  kNone = 0 , kBitmap = 1 , kGradient = 2 , kFontTexture = 3 ,
  kSoundSample = 4 , kTypeCode_Mask = 0xFF
}
 
- Public Types inherited from RE::GNewOverrideBase< GStatGroups::kGStat_Default_Mem >
enum  
 

Public Member Functions

 GFxResource ()
 
virtual ~GFxResource ()
 
virtual GFxResourceKey GetKey ()
 
virtual std::uint32_t GetResourceTypeCode () const
 
virtual GFxResourceReportGetResourceReport ()
 
void AddRef ()
 
bool AddRef_NotZero ()
 
void Release ()
 
std::int32_t GetRefCount () const
 
void SetOwnerResourceLib (GFxResourceLibBase *a_lib)
 
ResourceType GetResourceType () const
 
ResourceUse GetResourceUse () const
 
- Public Member Functions inherited from RE::GNewOverrideBase< GStatGroups::kGStat_Default_Mem >
 GFC_MEMORY_REDEFINE_NEW (GNewOverrideBase, Stat)
 

Static Public Member Functions

static std::uint32_t MakeTypeCode (ResourceType a_resourceType, ResourceUse a_resourceUse=ResourceUse::kNone)
 

Protected Attributes

GAtomicInt< std::int32_t > _refCount
 
std::uint32_t _pad0C
 
GFxResourceLibBase_lib
 

Friends

class GFxResourceWeakLib
 

Member Enumeration Documentation

◆ ResourceType

Enumerator
kCharacterDefBit 
kNone 
kImage 
kFont 
kMovieDef 
kSoundSample 
kMovieDataDef 
kButtonDef 
kTextDef 
kEditTextDef 
kSpriteDef 
kShapeDef 
kVideoDef 
kTypeCode_Mask 
kTypeCode_Shift 

◆ ResourceUse

Enumerator
kNone 
kBitmap 
kGradient 
kFontTexture 
kSoundSample 
kTypeCode_Mask 

Constructor & Destructor Documentation

◆ GFxResource()

RE::GFxResource::GFxResource ( )

◆ ~GFxResource()

virtual RE::GFxResource::~GFxResource ( )
virtual

Member Function Documentation

◆ AddRef()

void RE::GFxResource::AddRef ( )

◆ AddRef_NotZero()

bool RE::GFxResource::AddRef_NotZero ( )

◆ GetKey()

virtual GFxResourceKey RE::GFxResource::GetKey ( )
virtual

Reimplemented in RE::GFxMovieDataDef.

◆ GetRefCount()

std::int32_t RE::GFxResource::GetRefCount ( ) const

◆ GetResourceReport()

virtual GFxResourceReport* RE::GFxResource::GetResourceReport ( )
virtual

Reimplemented in RE::GFxMovieDataDef.

◆ GetResourceType()

ResourceType RE::GFxResource::GetResourceType ( ) const

◆ GetResourceTypeCode()

virtual std::uint32_t RE::GFxResource::GetResourceTypeCode ( ) const
virtual

◆ GetResourceUse()

ResourceUse RE::GFxResource::GetResourceUse ( ) const

◆ MakeTypeCode()

static std::uint32_t RE::GFxResource::MakeTypeCode ( ResourceType  a_resourceType,
ResourceUse  a_resourceUse = ResourceUse::kNone 
)
static

◆ Release()

void RE::GFxResource::Release ( )

◆ SetOwnerResourceLib()

void RE::GFxResource::SetOwnerResourceLib ( GFxResourceLibBase a_lib)

Friends And Related Function Documentation

◆ GFxResourceWeakLib

friend class GFxResourceWeakLib
friend

Member Data Documentation

◆ _lib

GFxResourceLibBase* RE::GFxResource::_lib
protected

◆ _pad0C

std::uint32_t RE::GFxResource::_pad0C
protected

◆ _refCount

GAtomicInt<std::int32_t> RE::GFxResource::_refCount
protected

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