From a65278c7bc9c0dbca8a74db09fd0aebf1c26ef28 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Feb 2020 16:12:26 +0100 Subject: 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.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugingui/texturedbox.cc') diff --git a/plugingui/texturedbox.cc b/plugingui/texturedbox.cc index a03eecd..21bf946 100644 --- a/plugingui/texturedbox.cc +++ b/plugingui/texturedbox.cc @@ -133,4 +133,15 @@ const Colour& TexturedBox::getPixel(std::size_t x, std::size_t y) const return outOfRange; } +const std::uint8_t* TexturedBox::line(std::size_t y) const +{ + // TODO: Gather line into temporary buffer? + return nullptr; +} + +bool TexturedBox::hasAlpha() const +{ + return true; +} + } // GUI:: -- cgit v1.2.3