finish obj loader
This commit is contained in:
@@ -37,8 +37,9 @@ namespace basalt::shared::object_loader {
|
||||
|
||||
IObjectLoader::~IObjectLoader() {}
|
||||
|
||||
void IObjectLoader::load() {
|
||||
void IObjectLoader::load(ObjectLoaderConfig&& config) {
|
||||
if (this->status != ObjectLoaderStatus::Ready) throw std::runtime_error("unexpected object loader status");
|
||||
this->config = std::move(config);
|
||||
this->status = ObjectLoaderStatus::Loaded;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user