diff options
author | Marius Kintel <marius@kintel.net> | 2011-10-30 01:47:21 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-10-30 01:47:21 (GMT) |
commit | f64dc11d330a50c901facfd1cf5e22b2ca2d5ead (patch) | |
tree | 534b55591fc02c7776a1355a609bc979e210c5a8 /tests/fbo.h | |
parent | 9c95cd4c52d649f77169a7481669a5d384968ead (diff) | |
parent | 56979129695ca12ae86bc9b3ea988f7a720d4c8a (diff) |
Merge branch 'visitortests'
Diffstat (limited to 'tests/fbo.h')
-rw-r--r-- | tests/fbo.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/fbo.h b/tests/fbo.h new file mode 100644 index 0000000..943862f --- /dev/null +++ b/tests/fbo.h @@ -0,0 +1,25 @@ +#ifndef FBO_H_ +#define FBO_H_ + +#include "system-gl.h" +#include <stddef.h> // size_t + +struct fbo_t +{ + GLuint fbo_id; + GLuint old_fbo_id; + + GLuint renderbuf_id; + GLuint depthbuf_id; +}; + +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); + +#endif |