Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends

Resource Class Reference

Inheritance diagram for Resource:
CubeMap RenderTarget ShaderProgram Texture VertexArray

List of all members.

Public Member Functions

virtual bool isEqual (Resource *res)
virtual Resourceinstantiate ()
ResourceType_t getType () const
void setPurgeLevel (u32 purge_level)
void setMaxPurgeLevel (u32 purge_level)
u32 getPurgeLevel () const
u32 getReferenceCount () const
const char * getIdentifier () const
char * getIdentifierStringCopy ()

Public Attributes

Auxiliary auxiliary

Protected Member Functions

 Resource (const char *nidentifier, u32 purge_level, ResourceType_t rtype)

Static Protected Member Functions

static char * getNewResourceName (char *buf, char *base, ResourceType_t type)

Protected Attributes

ResourceType_t type
char * identifier
u32 purgeLevel
bool broken

Friends

class SceneGraph
class ResourceList

Member Function Documentation

const char * Resource::getIdentifier (  ) const

Returns the identifier. DO NOT MODIFY IT!

char * Resource::getIdentifierStringCopy (  )

Returns a copy of the identifier, which you'll have to delete your- self when you're done with it

Resource * Resource::instantiate (  ) [virtual]

Instantiate a resource. This increases the reference counter

bool Resource::isEqual ( Resource res ) [virtual]

Compares the hash values and identifiers of this and the incoming resource. Return true if they are equal, otherwise false.


The documentation for this class was generated from the following files:
 All Classes Functions