summaryrefslogtreecommitdiff
path: root/src/OffscreenContextGLX.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-26 05:30:02 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-26 05:30:02 (GMT)
commit395628cb4ef7f8559c667af22fb273e21e4a5ad8 (patch)
tree9fc4cd53eda3370de06c872f9df299ee1d9629de /src/OffscreenContextGLX.cc
parenta66ad9c4bc10696cd3167d3217c9aad532167705 (diff)
refactor to remove duplicate code
Diffstat (limited to 'src/OffscreenContextGLX.cc')
-rw-r--r--src/OffscreenContextGLX.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/OffscreenContextGLX.cc b/src/OffscreenContextGLX.cc
index 73794cc..dee47ed 100644
--- a/src/OffscreenContextGLX.cc
+++ b/src/OffscreenContextGLX.cc
@@ -297,22 +297,6 @@ bool teardown_offscreen_context(OffscreenContext *ctx)
}
/*!
- Capture framebuffer from OpenGL and write it to the given filename as PNG.
-*/
-bool save_framebuffer(OffscreenContext *ctx, const char *filename)
-{
- std::ofstream fstream(filename);
- if (!fstream.is_open()) {
- PRINTB("Can't open file \"%s\" for writing", filename);
- return false;
- } else {
- save_framebuffer(ctx, fstream);
- fstream.close();
- }
- return true;
-}
-
-/*!
Capture framebuffer from OpenGL and write it to the given ostream
*/
bool save_framebuffer(OffscreenContext *ctx, std::ostream &output)
@@ -339,7 +323,3 @@ bool save_framebuffer(OffscreenContext *ctx, std::ostream &output)
return writeok;
}
-void bind_offscreen_context(OffscreenContext *ctx)
-{
- if (ctx) fbo_bind(ctx->fbo);
-}
contact: Jan Huwald // Impressum