#include <TTexture_Rev.h>
|
| | TDECLARE_CLASS (TTexture, TResource) |
| |
| | TTexture () |
| |
| | ~TTexture () |
| |
| virtual TUINT | GetWidth ()=0 |
| |
| virtual TUINT | GetHeight ()=0 |
| |
| virtual TBOOL | Lock (LOCKSTATE &a_rLockState) |
| |
| virtual void | Unlock () |
| |
| virtual void | CreateFromT2Texture (T2Texture *a_pTexture)=0 |
| |
| virtual TBOOL | Create (void *a_pData, TUINT a_uiDataSize, TUINT a_eTextureFlags, TUINT a_uiWidth, TUINT a_uiHeight)=0 |
| |
| virtual TBOOL | Create (const TCHAR *a_szFileName, TUINT a_eTextureFlags)=0 |
| |
| virtual TBOOL | CreateEx (void *a_pData, TUINT a_uiDataSize, TUINT a_uiWidth, TUINT a_uiHeight, TUINT a_uiMipLevels, TTEXTURERESOURCEFORMAT a_eFormat, TUINT a_uiMipMapFlags) |
| |
| void | SetAddressing (ADDRESSINGMODE a_eAddressing) |
| |
| ADDRESSINGMODE | GetAddressing () const |
| |
| TBOOL | CreateResource (void *a_pData, TUINT a_uiDataSize, TUINT a_eTextureFlags, TUINT a_uiWidth, TUINT a_uiHeight) |
| |
| TBOOL | CreateResource (const TCHAR *a_szFileName, TUINT a_eTextureFlags) |
| |
| TBOOL | CreateResource (void *a_pData, TUINT a_uiDataSize, TUINT a_uiWidth, TUINT a_uiHeight, TUINT a_uiMipLevels, TTEXTURERESOURCEFORMAT a_eFormat, TUINT a_uiFlags) |
| |
| | TDECLARE_CLASS (TResource, TObject) |
| |
| | TResource () |
| |
| | ~TResource () |
| |
| virtual TBOOL | Create () |
| |
| virtual TBOOL | Validate () |
| |
| virtual void | Invalidate () |
| |
| virtual void | DestroyResource () |
| |
| virtual TBOOL | TryInvalidate () |
| |
| virtual TBOOL | TryValidate () |
| |
| virtual void | OnDestroy () |
| |
| TBOOL | IsDead () const |
| |
| TBOOL | IsDying () const |
| |
| TBOOL | IsValid () const |
| |
| TBOOL | IsExternal () const |
| |
| TBOOL | IsCreated () const |
| |
| TBOOL | IsSceneObject () const |
| |
| TBOOL | IsInvalid () const |
| |
| void | SetState (TResourceState newState) |
| |
| void | AddState (TResourceState state) |
| |
| void | SetParent (TResource *a_pParent) |
| |
| const TCHAR * | GetName () const |
| |
| void | SetName (const TCHAR *name) |
| |
| TBOOL | RecurseSimple (t_RecurseCb a_pCallback, TResource *a_pResource, void *a_pUserData) |
| |
| TRenderInterface * | GetRenderer () const |
| |
| void | SetRenderer (TRenderInterface *pRenderer) |
| |
| TUINT32 | GetUId () const |
| |
| void | SetUId (TUINT32 uid) |
| |
| virtual Toshi::TClass * | GetClass () |
| |
| virtual void | Delete () |
| |
| virtual | ~TObject () |
| |
| TBOOL | IsExactly (TClass *a_pClass) |
| |
| TBOOL | IsA (TClass *a_pClass) |
| |
| TBOOL | IsChildOfDefaultRoot () const |
| |
| TBOOL | IsLinked () const |
| |
| T * | Parent () const |
| |
| T * | Next () const |
| |
| T * | Prev () const |
| |
| TNodeTree< T > * | Tree () const |
| |
| T * | Child () const |
| |
|
| using | t_RecurseCb = TBOOL ( * )( TResource* a_pResource, void* a_pUserData ) |
| |
| enum | { IsTObject = TTRUE
} |
| |
| static TBOOL | Recurse (t_RecurseCb a_pCallback, TResource *a_pResource, TBOOL a_bFlag, void *a_pUserData) |
| |
| static Toshi::TObject * | CreateTObject () |
| |
| static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
| |
| static void | InitialiseClass () |
| |
| static void | DeinitialiseClass () |
| |
| static TFORCEINLINE TClass * | GetClassStatic () |
| |
| static constexpr size_t | MAXNAMELEN = 14 |
| |
| static constexpr Toshi::TClass * | PARENTCLASS = TNULL |
| |
| static constinit Toshi::TClass | ms_oClass = Toshi::TClass( "TObject", TObject::CreateTObject, TObject::CreateTObjectInPlace, TObject::InitialiseClass, TObject::DeinitialiseClass, 0, 2, sizeof( TObject ), alignof( TObject ) ) |
| |
| | TNode () |
| |
Definition at line 9 of file TTexture_Rev.h.
◆ TTexture()
Definition at line 15 of file TTexture.cpp.
16{
20}
TTextureFactory::NameEntry * m_pNameEntry
ADDRESSINGMODE m_eAddressing
◆ ~TTexture()
Definition at line 22 of file TTexture.cpp.
23{
25
27}
@ SYSRESOURCE_TEXTUREFACTORY
T * GetSystemResource(SYSRESOURCE systemResource)
void DeregisterTexture(TTexture *a_pTexture)
static TFORCEINLINE TRenderInterface * GetSingleton()
◆ Create() [1/2]
| virtual TBOOL TTexture::Create |
( |
const TCHAR * | a_szFileName, |
|
|
TUINT | a_eTextureFlags ) |
|
pure virtual |
◆ Create() [2/2]
| virtual TBOOL TTexture::Create |
( |
void * | a_pData, |
|
|
TUINT | a_uiDataSize, |
|
|
TUINT | a_eTextureFlags, |
|
|
TUINT | a_uiWidth, |
|
|
TUINT | a_uiHeight ) |
|
pure virtual |
◆ CreateEx()
| TBOOL TTexture::CreateEx |
( |
void * | a_pData, |
|
|
TUINT | a_uiDataSize, |
|
|
TUINT | a_uiWidth, |
|
|
TUINT | a_uiHeight, |
|
|
TUINT | a_uiMipLevels, |
|
|
TTEXTURERESOURCEFORMAT | a_eFormat, |
|
|
TUINT | a_uiMipMapFlags ) |
|
virtual |
◆ CreateFromT2Texture()
| virtual void TTexture::CreateFromT2Texture |
( |
T2Texture * | a_pTexture | ) |
|
|
pure virtual |
◆ CreateResource() [1/3]
| TBOOL TTexture::CreateResource |
( |
const TCHAR * | a_szFileName, |
|
|
TUINT | a_eTextureFlags ) |
|
inline |
◆ CreateResource() [2/3]
| TBOOL TTexture::CreateResource |
( |
void * | a_pData, |
|
|
TUINT | a_uiDataSize, |
|
|
TUINT | a_eTextureFlags, |
|
|
TUINT | a_uiWidth, |
|
|
TUINT | a_uiHeight ) |
|
inline |
◆ CreateResource() [3/3]
| TBOOL TTexture::CreateResource |
( |
void * | a_pData, |
|
|
TUINT | a_uiDataSize, |
|
|
TUINT | a_uiWidth, |
|
|
TUINT | a_uiHeight, |
|
|
TUINT | a_uiMipLevels, |
|
|
TTEXTURERESOURCEFORMAT | a_eFormat, |
|
|
TUINT | a_uiFlags ) |
|
inline |
◆ GetAddressing()
◆ GetHeight()
| virtual TUINT TTexture::GetHeight |
( |
| ) |
|
|
pure virtual |
◆ GetWidth()
| virtual TUINT TTexture::GetWidth |
( |
| ) |
|
|
pure virtual |
◆ Lock()
◆ SetAddressing()
◆ TDECLARE_CLASS()
◆ Unlock()
| void TTexture::Unlock |
( |
| ) |
|
|
virtual |
◆ m_eAddressing
◆ m_eTextureFlags
| TUINT TTexture::m_eTextureFlags |
|
protected |
◆ m_pNameEntry
◆ TTextureFactory
| friend TTexture::TTextureFactory |
The documentation for this class was generated from the following files:
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Platform/Revolution/TTexture_Rev.h
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Render/TTexture.h
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Platform/Revolution/TTexture_Rev.cpp
- D:/_dev/OpenBarnyard/Source/Toshi/Source/Render/TTexture.cpp