diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 18:04:03 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 18:04:03 +0100 |
commit | ab0b4923c4f49e7a28f6d17e994d3e013ca344bb (patch) | |
tree | b385693017be292b8f4862e88b912dba7c6be619 /src/crepe/Resource.h | |
parent | 213f947d0907858cace470736c15f87caa934591 (diff) |
more WIP audio system + utilities
Diffstat (limited to 'src/crepe/Resource.h')
-rw-r--r-- | src/crepe/Resource.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/crepe/Resource.h b/src/crepe/Resource.h index dcf3dbd..95b4d06 100644 --- a/src/crepe/Resource.h +++ b/src/crepe/Resource.h @@ -12,17 +12,11 @@ class Asset; * resource (e.g. textures, sounds). */ class Resource { +public: + Resource(const Asset & src); + private: /** - * \brief Prototype pattern clone function. - * - * \param src Source file of new resource (abstraction for file saved on - * disk) - * - * \returns New instance of concrete resource - */ - virtual std::unique_ptr<Resource> clone(const Asset & src) const = 0; - /** * The resource manager uses \c clone to create new instances of the concrete * resource class. This may be used to inherit references to classes that * would otherwise need to be implemented as singletons. |