unplugged-vendor/device/generic/vulkan-cereal/stream-servers/PostCommands.h

41 lines
666 B
C
Raw Normal View History

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