// Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #pragma once #include #include namespace anki { /// @addtogroup resource /// @{ /// A generic resource. It just loads a file to memory. class GenericResource : public ResourceObject { public: GenericResource(CString fname, U32 uuid) : ResourceObject(fname, uuid) { } ~GenericResource() = default; Error load(const ResourceFilename& filename, Bool async); ConstWeakArray getData() const { return m_data; } private: ResourceDynamicArray m_data; }; /// @} } // end namespace anki