summaryrefslogtreecommitdiff
path: root/plugingui/drawable.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-29 16:12:26 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 19:22:34 +0100
commita65278c7bc9c0dbca8a74db09fd0aebf1c26ef28 (patch)
treef6137641afd154dca1c45480137e9b56afb1a7d6 /plugingui/drawable.h
parent450e39c5b02ace3c50d116e4cba825ff695c8665 (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/drawable.h')
-rw-r--r--plugingui/drawable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/drawable.h b/plugingui/drawable.h
index ff9a4ff..e793a27 100644
--- a/plugingui/drawable.h
+++ b/plugingui/drawable.h
@@ -27,6 +27,7 @@
#pragma once
#include <cstdlib>
+#include <cstdint>
namespace GUI
{
@@ -42,6 +43,9 @@ public:
virtual std::size_t height() const = 0;
virtual const Colour& getPixel(std::size_t x, std::size_t y) const = 0;
+ virtual const std::uint8_t* line(std::size_t y) const = 0;
+
+ virtual bool hasAlpha() const = 0;
};
} // GUI::