diff options
Diffstat (limited to 'include/cru/platform/graphics/ImageFactory.h')
-rw-r--r-- | include/cru/platform/graphics/ImageFactory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/ImageFactory.h b/include/cru/platform/graphics/ImageFactory.h index 2a7902b2..d2c2a468 100644 --- a/include/cru/platform/graphics/ImageFactory.h +++ b/include/cru/platform/graphics/ImageFactory.h @@ -7,5 +7,13 @@ namespace cru::platform::graphics { struct CRU_PLATFORM_GRAPHICS_API IImageFactory : public virtual IGraphicsResource { virtual std::unique_ptr<IImage> DecodeFromStream(io::Stream* stream) = 0; + + /** + * \brief Create an empty bitmap with given width and height. + * \remarks Implementation should ensure that the bitmap supports alpha + * channel. It had better be in 32-bit rgba format. + * \todo Implement on Windows. + */ + virtual std::unique_ptr<IImage> CreateBitmap(int width, int height) = 0; }; } // namespace cru::platform::graphics |