summaryrefslogtreecommitdiff
path: root/tests/fbo.h
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2011-11-01 18:29:29 (GMT)
committerBrad Pitcher <bradpitcher@gmail.com>2011-11-01 18:29:29 (GMT)
commit0eacddfd8148f14ee0ddfe2eb66b82774c88afbe (patch)
tree6982ea59564090ea858d12d86d3699e83887f1f9 /tests/fbo.h
parentea7e4988d44249946b620d5973b230cf1a0606ca (diff)
parente2caf3726d68ff1fef63113519049abffc0563af (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