1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-05 13:53:38 +00:00
lovr/src/graphics/canvas.h

21 lines
510 B
C
Raw Normal View History

2017-12-07 07:50:52 +00:00
#include "graphics/texture.h"
#include "util.h"
#pragma once
2017-12-07 07:50:52 +00:00
typedef struct {
Texture texture;
GLuint framebuffer;
GLuint resolveFramebuffer;
GLuint depthStencilBuffer;
2017-12-07 07:50:52 +00:00
GLuint msaaTexture;
int msaa;
} Canvas;
bool lovrCanvasSupportsFormat(TextureFormat format);
Canvas* lovrCanvasCreate(int width, int height, TextureFormat format, int msaa, bool depth, bool stencil);
2018-02-26 08:59:03 +00:00
void lovrCanvasDestroy(void* ref);
2017-12-09 18:52:46 +00:00
TextureFormat lovrCanvasGetFormat(Canvas* canvas);
2017-12-08 02:14:24 +00:00
int lovrCanvasGetMSAA(Canvas* canvas);