summaryrefslogtreecommitdiff
path: root/plugin.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-09-01 11:16:18 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-09-01 11:16:18 +0200
commit492d1e617cc8ac392784c3b4daa2bcfc79e4415f (patch)
treec97a7a523c2c98209b752af5dde16fcc00742f58 /plugin.h
parent7db0ce19674393a4dd9af3beed236038bcfa2e65 (diff)
Don't use stride and use static buffer in example plugin.
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin.h b/plugin.h
index b8a3f64..b7f683f 100644
--- a/plugin.h
+++ b/plugin.h
@@ -155,6 +155,8 @@ public:
std::uint8_t* data{nullptr}; //< Allocated (or reused) RGBA buffer, filled by the plugin.
};
+#define pgzRGBA(r, g, b, a) ((b) | (g) << 8 | (r) << 16 | (a) << 24)
+
//! Render call back.
//! \param width The client area width as specified by the host.
//! \param max_height The maximum allowed clieant area height as specified