26 lines
669 B
C++
26 lines
669 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include "Data/Containers/Array.hpp"
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace OpenVulkano
|
|
{
|
|
class ResourceLoader
|
|
{
|
|
public:
|
|
virtual ~ResourceLoader() = default;
|
|
|
|
virtual Array<char> GetResource(const std::string& resourceName, std::string& resourcePath) = 0;
|
|
|
|
static ResourceLoader& GetInstance();
|
|
|
|
static void* RegisterResourceLoader(std::unique_ptr<ResourceLoader> loader);
|
|
|
|
static bool UnregisterResourceLoader(void* loaderHandle);
|
|
};
|
|
} |