summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawgsave.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawgsave.h')
-rw-r--r--Build/source/utils/asymptote/drawgsave.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/drawgsave.h b/Build/source/utils/asymptote/drawgsave.h
new file mode 100644
index 00000000000..58ef9715b54
--- /dev/null
+++ b/Build/source/utils/asymptote/drawgsave.h
@@ -0,0 +1,35 @@
+/*****
+ * drawgsave.h
+ * John Bowman
+ *
+ * Output PostScript gsave to picture.
+ *****/
+
+#ifndef DRAWGSAVE_H
+#define DRAWGSAVE_H
+
+#include "drawelement.h"
+
+namespace camp {
+
+class drawGsave : public drawElement {
+public:
+ drawGsave() {}
+ virtual ~drawGsave() {}
+
+ bool draw(psfile *out) {
+ out->gsave();
+ return true;
+ }
+
+ bool write(texfile *out, const bbox&) {
+ out->gsave();
+ return true;
+ }
+};
+
+}
+
+GC_DECLARE_PTRFREE(camp::drawGsave);
+
+#endif