Cleanup: WM: Encapsulate stereo draw buffers binding

This commit is contained in:
2020-07-17 21:22:39 +02:00
parent 8dfc31f61f
commit 59975b0adf
3 changed files with 27 additions and 3 deletions

View File

@@ -41,6 +41,12 @@ typedef enum eGPUFrameBufferBits {
GPU_STENCIL_BIT = (1 << 2),
} eGPUFrameBufferBits;
typedef enum eGPUBackBuffer {
GPU_BACKBUFFER = 0,
GPU_BACKBUFFER_RIGHT,
GPU_BACKBUFFER_LEFT,
} eGPUBackBuffer;
typedef struct GPUFrameBuffer GPUFrameBuffer;
typedef struct GPUOffScreen GPUOffScreen;
@@ -224,6 +230,8 @@ void GPU_clear(eGPUFrameBufferBits flags);
void GPU_frontbuffer_read_pixels(
int x, int y, int w, int h, int channels, eGPUDataFormat format, void *data);
void GPU_backbuffer_bind(eGPUBackBuffer buffer);
#ifdef __cplusplus
}
#endif