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/drawable.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/drawable.h') 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 +#include 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:: -- cgit v1.2.3