From a9ee71d8f1ccc634acdd9f0205855af1527c4bb9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Feb 2020 22:04:02 +0100 Subject: WIP: Move pixel buffer render code from Window to PixelBuffer for easier testing/benchmarking. --- plugingui/pixelbuffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/pixelbuffer.h') diff --git a/plugingui/pixelbuffer.h b/plugingui/pixelbuffer.h index 499940d..81921e5 100644 --- a/plugingui/pixelbuffer.h +++ b/plugingui/pixelbuffer.h @@ -29,6 +29,9 @@ #include "colour.h" #include +#include + +#include "guievent.h" namespace GUI { @@ -46,6 +49,8 @@ public: void writeLine(std::size_t x, std::size_t y, const std::uint8_t* line, std::size_t len); + Rect updateBuffer(std::vector& pixel_buffers); + std::uint8_t* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; -- cgit v1.2.3