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