2018-08-22 04:08:40 +00:00
|
|
|
#include "graphics/texture.h"
|
|
|
|
|
2018-02-15 08:37:02 +00:00
|
|
|
#pragma once
|
2017-12-07 07:50:52 +00:00
|
|
|
|
2018-08-24 01:28:37 +00:00
|
|
|
#define MAX_CANVAS_ATTACHMENTS 4
|
2018-08-22 04:08:40 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Texture* texture;
|
|
|
|
int slice;
|
|
|
|
int level;
|
|
|
|
} Attachment;
|
|
|
|
|
2018-07-09 07:51:09 +00:00
|
|
|
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);
|