lovr/src/graphics/canvas.h

20 lines
443 B
C
Raw Normal View History

#include "graphics/texture.h"
#pragma once
2017-12-07 07:50:52 +00:00
2018-08-24 01:28:37 +00:00
#define MAX_CANVAS_ATTACHMENTS 4
typedef struct {
Texture* texture;
int slice;
int level;
} Attachment;
typedef struct Canvas Canvas;
2018-08-20 03:48:45 +00:00
Canvas* lovrCanvasCreate();
2018-02-26 08:59:03 +00:00
void lovrCanvasDestroy(void* ref);
2018-08-24 01:28:37 +00:00
const Attachment* lovrCanvasGetAttachments(Canvas* canvas, int* count);
void lovrCanvasSetAttachments(Canvas* canvas, Attachment* attachments, int count);
void lovrCanvasBind(Canvas* canvas);