diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:09:37 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:09:37 (GMT) |
commit | af4333a669eacc2cafc8274e23f58415e634477b (patch) | |
tree | 67d54465e838a224e16e262ebe8a5dfc0fde95f1 /src/OffscreenView.cc | |
parent | 544a8e5b799f5dd0a35d650c00db10074104650a (diff) |
refactor to reduce duplicate code. enable ostream save from OffscreenView
Diffstat (limited to 'src/OffscreenView.cc')
-rw-r--r-- | src/OffscreenView.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OffscreenView.cc b/src/OffscreenView.cc index 61d5818..12ebf3a 100644 --- a/src/OffscreenView.cc +++ b/src/OffscreenView.cc @@ -142,6 +142,11 @@ bool OffscreenView::save(const char *filename) return save_framebuffer(this->ctx, filename); } +bool OffscreenView::save(std::ostream &output) +{ + return save_framebuffer(this->ctx, output); +} + std::string OffscreenView::getInfo() { std::stringstream out; |