summaryrefslogtreecommitdiff
path: root/tests/fbo.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-10-04 21:24:32 (GMT)
committerMarius Kintel <marius@kintel.net>2011-10-04 21:24:32 (GMT)
commit6395435db71d279a83ea4a484fd13a3cf913d593 (patch)
tree2ab4e0ceeea7d5fac2589dfc3ab3e105d59d8332 /tests/fbo.h
parent46ccaf371609cf8a32753c75db5dd3eb35ae27c0 (diff)
Clean up the fbo component, fix related issues
Diffstat (limited to 'tests/fbo.h')
-rw-r--r--tests/fbo.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/fbo.h b/tests/fbo.h
new file mode 100644
index 0000000..1ee9007
--- /dev/null
+++ b/tests/fbo.h
@@ -0,0 +1,23 @@
+#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);
+
+#endif
contact: Jan Huwald // Impressum