nux-1.14.0
|
Public Member Functions | |
CachedResourceData (NResourceSet *InSet) | |
virtual unsigned int | GetSize () const |
Returns the size in bytes of the resource. | |
virtual unsigned int | GetMaxLodSize () const |
Returns the size of the max LOD of the resource. | |
virtual bool | UpdateResource (ResourceData *Resource)=0 |
Protected Attributes | |
NResourceSet * | Set |
bool | _cached |
unsigned int | NumRefs |
NObjectType * | ResourceType |
unsigned int | Size |
EResourceUpdateHint | UpdateHint |
CachedResourceData * | PrevResource |
CachedResourceData * | NextResource |
Friends | |
class | TResourceCache |
class | NResourceCache |
Definition at line 110 of file GLResourceManager.h.
virtual unsigned int nux::CachedResourceData::GetMaxLodSize | ( | ) | const [inline, virtual] |
Returns the size of the max LOD of the resource.
Returns the size of the max LOD of the resource. For a texture, this is the size of mipmap 0. Texture resource overwrite this function.
Definition at line 133 of file GLResourceManager.h.
{
return Size;
}
virtual unsigned int nux::CachedResourceData::GetSize | ( | ) | const [inline, virtual] |
Returns the size in bytes of the resource.
Returns the size in bytes of the resource.
Definition at line 122 of file GLResourceManager.h.
{
return Size;
}
virtual bool nux::CachedResourceData::UpdateResource | ( | ResourceData * | Resource | ) | [pure virtual] |
Updates the resource.
Implemented in nux::CachedBaseTexture, nux::CachedVertexBuffer, nux::CachedIndexBuffer, nux::CachedVertexDeclaration, and nux::CachedMeshBuffer.