nux-1.14.0
nux::CachedResourceData Class Reference
Inheritance diagram for nux::CachedResourceData:
nux::Object nux::Trackable nux::Introspectable nux::CachedBaseTexture nux::CachedIndexBuffer nux::CachedMeshBuffer nux::CachedVertexBuffer nux::CachedVertexDeclaration nux::CachedTexture2D nux::CachedTextureCube nux::CachedTextureFrameAnimation nux::CachedTextureRectangle nux::CachedTextureVolume

List of all members.

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

NResourceSetSet
bool _cached
unsigned int NumRefs
NObjectTypeResourceType
unsigned int Size
EResourceUpdateHint UpdateHint
CachedResourceDataPrevResource
CachedResourceDataNextResource

Friends

class TResourceCache
class NResourceCache

Detailed Description

Definition at line 110 of file GLResourceManager.h.


Member Function Documentation

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.

Returns:
Size of the resource in bytes.

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.

Returns:
Size of the resource in bytes.

Definition at line 122 of file GLResourceManager.h.

    {
      return Size;
    }
virtual bool nux::CachedResourceData::UpdateResource ( ResourceData Resource) [pure virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends