summaryrefslogtreecommitdiff
path: root/src/fbo.h
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
commit42f21c3a0850083d245aa3ac346a53e876f0679e (patch)
treefacf41750e0fe27cc4cdaf352c9c8e687011d103 /src/fbo.h
parent422c668dcb538f181683ae51305bf8d3404f48d6 (diff)
parent4734172c3a16cc06b09e4d2131aa8e380bd0f226 (diff)
Merge pull request #288 from openscad/issue11_2
Issue11 2
Diffstat (limited to 'src/fbo.h')
-rw-r--r--src/fbo.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/fbo.h b/src/fbo.h
new file mode 100644
index 0000000..943862f
--- /dev/null
+++ b/src/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