You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
666 B

#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;
};
};