From 15e9d38d36573ba0e1ec6e0cc2768b12ca01bff0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Feb 2020 16:12:26 +0100 Subject: WIP: Read images as uint8_t instead of float. Convert Colour and all colour related operations to use uint8_t instade of float and finally optimize rendering to render lines instead of single pixels. --- plugingui/texturedbox.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugingui/texturedbox.h') diff --git a/plugingui/texturedbox.h b/plugingui/texturedbox.h index dc84183..0ff0490 100644 --- a/plugingui/texturedbox.h +++ b/plugingui/texturedbox.h @@ -89,6 +89,8 @@ public: void setSize(std::size_t width, std::size_t height); const Colour& getPixel(std::size_t x, std::size_t y) const override; + const std::uint8_t* line(std::size_t y) const override; + bool hasAlpha() const override; private: Texture seg_a; -- cgit v1.2.3