nux-0.9.48

nux::CachedResourceData Class Reference

#include <NuxGraphics/GLResourceManager.h>

Inheritance diagram for nux::CachedResourceData:
nux::Object nux::Trackable nux::CachedBaseTexture nux::NGLIndexBuffer nux::NGLStaticMesh nux::NGLVertexBuffer nux::NGLVertexDeclaration nux::CachedTexture2D nux::CachedTextureCube nux::CachedTextureFrameAnimation nux::CachedTextureRectangle nux::CachedTextureVolume

Public Member Functions

 CachedResourceData (NResourceSet *InSet)
virtual ~CachedResourceData ()
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

Constructor & Destructor Documentation

nux::CachedResourceData::CachedResourceData ( NResourceSet InSet)
virtual nux::CachedResourceData::~CachedResourceData ( ) [virtual]

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.

References 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.

References Size.

virtual bool nux::CachedResourceData::UpdateResource ( ResourceData Resource) [pure virtual]

Friends And Related Function Documentation

friend class NResourceCache [friend]
friend class TResourceCache [friend]

Field Documentation

unsigned int nux::CachedResourceData::NumRefs [protected]
unsigned int nux::CachedResourceData::Size [protected]

Referenced by GetMaxLodSize(), and GetSize().


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