summaryrefslogtreecommitdiff
path: root/plugingui/pixelbuffer.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:57:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:57:46 +0100
commit5ea242d6b17e70f7d05898a89d112fdfa7222185 (patch)
treebc5e2c640e34c5e9d9a15b95d26acbff88ce9eca /plugingui/pixelbuffer.h
parent700da13af8741a7d7a246c704ab2d0c4fdcd9ea8 (diff)
Fix alpha blending.
Diffstat (limited to 'plugingui/pixelbuffer.h')
-rw-r--r--plugingui/pixelbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/pixelbuffer.h b/plugingui/pixelbuffer.h
index 21a6ceb..2b73503 100644
--- a/plugingui/pixelbuffer.h
+++ b/plugingui/pixelbuffer.h
@@ -29,6 +29,8 @@
#include <stdlib.h>
+#include "colour.h"
+
namespace GUI {
class PixelBuffer {
@@ -69,6 +71,8 @@ public:
unsigned char blue,
unsigned char alpha);
+ void addPixel(size_t x, size_t y, Colour c);
+
void pixel(size_t x, size_t y,
unsigned char *red,
unsigned char *green,