diff options
Diffstat (limited to 'stream-servers/PostCommands.h')
-rw-r--r-- | stream-servers/PostCommands.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/stream-servers/PostCommands.h b/stream-servers/PostCommands.h new file mode 100644 index 00000000..bcc2c759 --- /dev/null +++ b/stream-servers/PostCommands.h @@ -0,0 +1,40 @@ +#pragma once + +#include <vector> + +#include <GLES2/gl2.h> + +class ColorBuffer; + +// Posting +enum class PostCmd { + Post = 0, + Viewport = 1, + Compose = 2, + Clear = 3, + Screenshot = 4, + Exit = 5, +}; + +struct Post { + PostCmd cmd; + int composeVersion; + std::vector<char> composeBuffer; + union { + ColorBuffer* cb; + struct { + int width; + int height; + } viewport; + struct { + ColorBuffer* cb; + int screenwidth; + int screenheight; + GLenum format; + GLenum type; + int rotation; + void* pixels; + } screenshot; + }; +}; + |