summaryrefslogtreecommitdiff
path: root/plugingui/pixelbuffer.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-29 22:04:02 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-01 16:12:55 +0100
commita9ee71d8f1ccc634acdd9f0205855af1527c4bb9 (patch)
treeea0d288e59b9d4fa8f9679f063883afd9ae1d8fd /plugingui/pixelbuffer.h
parent15e9d38d36573ba0e1ec6e0cc2768b12ca01bff0 (diff)
WIP: Move pixel buffer render code from Window to PixelBuffer for easier testing/benchmarking.
Diffstat (limited to 'plugingui/pixelbuffer.h')
-rw-r--r--plugingui/pixelbuffer.h5
1 files changed, 5 insertions, 0 deletions
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 <cstddef>
+#include <vector>
+
+#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<class PixelBufferAlpha*>& pixel_buffers);
+
std::uint8_t* buf{nullptr};
std::size_t width{0};
std::size_t height{0};