diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-01 11:16:18 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-01 11:16:18 +0200 |
commit | 492d1e617cc8ac392784c3b4daa2bcfc79e4415f (patch) | |
tree | c97a7a523c2c98209b752af5dde16fcc00742f58 /plugin.h | |
parent | 7db0ce19674393a4dd9af3beed236038bcfa2e65 (diff) |
Don't use stride and use static buffer in example plugin.
Diffstat (limited to 'plugin.h')
-rw-r--r-- | plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |