11#include "sml/graphics_wrapper/texture.h"
15 enum class ImageFormat
25 Image(
const char* filename, ImageFormat format);
26 Image(
const Sml::Texture* texture);
29 int32_t getWidth()
const;
30 int32_t getHeight()
const;
31 ImageFormat getFormat()
const;
32 const Sml::Texture* getTexture()
const;
35 ImageFormat m_Format = ImageFormat::INVALID;
36 Sml::Texture* m_Texture =
nullptr;
39 void renderImage(
const Image* image,
const Sml::Rectangle<int32_t>& targetRegion);
40 void renderImage(
const Image* image,
const Sml::Rectangle<int32_t>& targetRegion,
41 int32_t scaledWidth, int32_t scaledHeight);