1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #include <stddef.h>
typedef struct
{
GLuint fbo_id;
GLuint old_fbo_id;
GLuint renderbuf_id;
GLuint depthbuf_id;
} fbo_t;
fbo_t *fbo_new();
bool fbo_init(fbo_t *fbo, size_t width, size_t height);
bool fbo_resize(fbo_t *fbo, size_t width, size_t height);
void fbo_delete(fbo_t *fbo);
GLuint fbo_bind(fbo_t *fbo);
void fbo_unbind(fbo_t *fbo);
bool REPORTGLERROR(const char * task);
|