Replace getCanvas/ImageFormats with getTextureFormats

This commit is contained in:
Alex Szpakowski
2020-02-12 22:25:04 -04:00
parent f5f7e908a9
commit 5c06b2a860
4 changed files with 75 additions and 3 deletions
+10
View File
@@ -45,6 +45,16 @@ struct Optional
value = val;
hasValue = true;
}
T get(T defaultVal)
{
return hasValue ? value : defaultVal;
}
void clear()
{
hasValue = false;
}
};
typedef Optional<bool> OptionalBool;