00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _MODELRESOURCE_
00019 #define _MODELRESOURCE_
00020
00021 #include "util/ModelResourceHandle.h"
00022
00023 #include "resource/Resource.h"
00024
00025 #include "util/Macros.h"
00026
00027 class ModelResource : public Resource
00028 {
00029 protected:
00030 virtual ResourceHandle* CreateResourceHandle(const void* pBuffer, const unsigned int nBufferSize, ResourceCache* const pResourceCache)
00031 {
00032 return new ModelResourceHandle(pBuffer, nBufferSize, *this, pResourceCache);
00033 }
00034 public:
00035 ModelResource() { }
00036
00037 ModelResource(const std::string& resourceName, const std::string& resourceFile)
00038 :Resource(resourceName, resourceFile)
00039 {
00040 }
00041
00042 ModelResource(const Resource& resource)
00043 :Resource(resource._resourceName, resource._resourceFile)
00044 {
00045 }
00046 };
00047
00048 #endif