|
void | load (LoadResourcesContext *context=0) |
|
void | unload () |
|
pugi::xml_attribute | getAttribute (const char *attr) const |
|
pugi::xml_node | getNode () const |
|
bool | getUseLoadCounter () const |
|
Resource * | getParent () const |
|
void | setUseLoadCounter (bool v) |
|
void | setParent (Resource *p) |
|
| Object (const Object &src) |
|
| Object (bool assignUniqueID=true) |
|
void | addRef () |
|
void | releaseRef () |
|
| ObjectBase (const ObjectBase &src) |
|
| ObjectBase (bool assignID=true) |
|
const std::string & | getName () const |
|
const void * | getUserData () const |
|
int | getObjectID () const |
|
bool | isName (const std::string &name) const |
|
bool | isName (const char *name) const |
|
void | setName (const std::string &name) |
|
void | setUserData (const void *data) |
|
void | dumpObject () const |
|
void | __removeFromDebugList () |
|
|
static std::string | extractID (const pugi::xml_node &node, const std::string &file, const std::string &def) |
|
static std::string | extractID (const std::string &file) |
|
static void | dumpCreatedObjects () |
|
static void | showAssertInCtor (int id) |
|
static void | showAssertInDtor (int id) |
|
static __createdObjects & | __getCreatedObjects () |
|
static void | __startTracingLeaks () |
|
static void | __stopTracingLeaks () |
|
|
virtual void | _load (LoadResourcesContext *context=0)=0 |
|
virtual void | _unload ()=0 |
|
void | __doCheck () |
|
void | __generateID () |
|
std::string * | __getName () const |
|
void | __freeName () const |
|
|
static void | setNode (Resource *res, const pugi::xml_node &node) |
|
static void | __addToDebugList (ObjectBase *base) |
|
static void | __removeFromDebugList (ObjectBase *base) |
|
|
Resource * | _parent |
|
int | _loadCounter |
|
bool | _useLoadCounter |
|
pugi::xml_node | _node |
|
std::string | __name |
|
int | __id |
|
const void * | __userData |
|
|
typedef std::vector< ObjectBase * > | __createdObjects |
|
int | _ref_counter |
|
static int | _lastID |
|
static int | _assertCtorID |
|
static int | _assertDtorID |
|
◆ extractID()
static std::string oxygine::Resource::extractID |
( |
const pugi::xml_node & |
node, |
|
|
const std::string & |
file, |
|
|
const std::string & |
def |
|
) |
| |
|
static |
returns id from xml node. Function is helper
◆ getAttribute()
pugi::xml_attribute oxygine::Resource::getAttribute |
( |
const char * |
attr | ) |
const |
Returns any attribute from xml resource definition. You could use it for defining for example per animation constants like duration, specific offsets, delays.
◆ load()
Loads resource heavy data into memory
◆ unload()
void oxygine::Resource::unload |
( |
| ) |
|
Unloads heavy data from memory. All internal Objects (fonts, textures, sounds etc) remain valid but not usable (can't be displayed, played etc).
The documentation for this class was generated from the following file: