summaryrefslogtreecommitdiff
path: root/tests/fbo.h
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2011-11-01 17:15:35 (GMT)
committerBrad Pitcher <bradpitcher@gmail.com>2011-11-01 17:15:35 (GMT)
commite2caf3726d68ff1fef63113519049abffc0563af (patch)
tree6558c6f03ccc21e7138d23861f80e8d97b09e60e /tests/fbo.h
parent7541854212d6c1223e015faf55a6ca0657a1c184 (diff)
parentcb56f700b1b0f4ae589da62a5fd1d4e368deb604 (diff)
merge master
Diffstat (limited to 'tests/fbo.h')
-rw-r--r--tests/fbo.h25
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
contact: Jan Huwald // Impressum