Logo Search packages:      
Sourcecode: einstein version File versions  Download package

void * ResourcesCollection::getRef ( const std::wstring &  name,
int &  size 

Load resource. Loaded data must be freed with delRef method.

Definition at line 597 of file resources.cpp.

References ResVariant::getRef(), getResource(), ResVariant::getSize(), and Resource::getVariant().

Referenced by ResDataHolder::load().

    Resource *r = getResource(name);
    ResVariant *v = r->getVariant(0);
    size = v->getSize();
    return v->getRef();

Generated by  Doxygen 1.6.0   Back to index