diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-29 16:12:26 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-03-07 19:22:34 +0100 |
commit | a65278c7bc9c0dbca8a74db09fd0aebf1c26ef28 (patch) | |
tree | f6137641afd154dca1c45480137e9b56afb1a7d6 /plugingui/texturedbox.cc | |
parent | 450e39c5b02ace3c50d116e4cba825ff695c8665 (diff) |
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.
Diffstat (limited to 'plugingui/texturedbox.cc')
-rw-r--r-- | plugingui/texturedbox.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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:: |