mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Replace getCanvas/ImageFormats with getTextureFormats
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user