| 1234567891011121314151617181920212223242526272829303132333435 |
- // 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 <AnKi/Resource/ResourceObject.h>
- 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<U8>& getData() const
- {
- return m_data;
- }
- private:
- DynamicArray<U8> m_data;
- };
- /// @}
- } // end namespace anki
|