Browse Source

Fix example code in documentation, added TODO.

pull/277/head
Vladimír Vondruš 13 years ago
parent
commit
92e7797823
  1. 5
      src/AbstractResourceLoader.h

5
src/AbstractResourceLoader.h

@ -88,11 +88,14 @@ You can then add it to resource manager instance like this:
MyResourceManager manager; MyResourceManager manager;
MeshResourceLoader loader; MeshResourceLoader loader;
manager->setLoader(loader); manager->setLoader(&loader);
// This will now automatically request the mesh from loader by calling load() // This will now automatically request the mesh from loader by calling load()
Resource<Mesh> myMesh = manager->get<Mesh>("my-mesh"); Resource<Mesh> myMesh = manager->get<Mesh>("my-mesh");
@endcode @endcode
@todoc How about working with resources of different data types (i.e. mesh
buffers), should that be allowed?
*/ */
template<class T> class AbstractResourceLoader { template<class T> class AbstractResourceLoader {
friend class Implementation::ResourceManagerData<T>; friend class Implementation::ResourceManagerData<T>;

Loading…
Cancel
Save