Blitter: Change some informational virtual functions to member values

This commit is contained in:
Jonathan G Rennison
2023-08-22 23:02:25 +01:00
parent 46f5fb9f25
commit c4e8b919f8
7 changed files with 37 additions and 9 deletions

View File

@@ -83,6 +83,7 @@ public:
/** Interface for something that can encode a sprite. */
class SpriteEncoder {
bool supports_missing_zoom_levels = false;
bool supports_32bpp = false;
protected:
inline void SetSupportsMissingZoomLevels(bool supported)
@@ -90,6 +91,11 @@ protected:
this->supports_missing_zoom_levels = supported;
}
inline void SetIs32BppSupported(bool supported)
{
this->supports_32bpp = supported;
}
public:
virtual ~SpriteEncoder() = default;
@@ -102,7 +108,10 @@ public:
/**
* Can the sprite encoder make use of RGBA sprites?
*/
virtual bool Is32BppSupported() = 0;
inline bool Is32BppSupported() const
{
return this->supports_32bpp;
}
/**
* Convert a sprite from the loader to our own format.