diff options
Diffstat (limited to 'plugingui/texture.cc')
-rw-r--r-- | plugingui/texture.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugingui/texture.cc b/plugingui/texture.cc index 6dc6441..39d417d 100644 --- a/plugingui/texture.cc +++ b/plugingui/texture.cc @@ -59,4 +59,14 @@ const Colour& Texture::getPixel(size_t x, size_t y) const return image.getPixel(x + _x, y + _y); } +const std::uint8_t* Texture::line(std::size_t y) const +{ + return image.line(y + _y); +} + +bool Texture::hasAlpha() const +{ + return true; +} + } // GUI:: |