mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-11 19:21:50 +00:00
chore: update image namespacing
This commit is contained in:
15
src/ObjLoading/Image/ImageLoaderCommon.cpp
Normal file
15
src/ObjLoading/Image/ImageLoaderCommon.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "ImageLoaderCommon.h"
|
||||
|
||||
namespace image
|
||||
{
|
||||
std::optional<AssetCreationResult> CommonImageLoaderResult::GetResultIfCancelled() const
|
||||
{
|
||||
if (m_failure)
|
||||
return AssetCreationResult::Failure();
|
||||
|
||||
if (!m_texture)
|
||||
return AssetCreationResult::NoAction();
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
} // namespace image
|
||||
Reference in New Issue
Block a user