summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/glrender.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 22:01:49 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 22:01:49 +0000
commit4ffd67ef7a9a1a465d2a8cc35a785edb149de24a (patch)
tree3d4edc7989e1207e31f6df6da1cb6cc1172a0cd1 /Build/source/utils/asymptote/glrender.h
parente2e3d91772c578b56fb93aa7c6b6e519034ae2a1 (diff)
asymptote 1.87
git-svn-id: svn://tug.org/texlive/trunk@15535 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/glrender.h')
-rw-r--r--Build/source/utils/asymptote/glrender.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/glrender.h b/Build/source/utils/asymptote/glrender.h
index 3be1f37273e..5854b92f3ab 100644
--- a/Build/source/utils/asymptote/glrender.h
+++ b/Build/source/utils/asymptote/glrender.h
@@ -49,6 +49,28 @@ inline void store(GLfloat *control, const camp::triple& v)
}
namespace gl {
+
+struct projection
+{
+public:
+ bool orthographic;
+ camp::triple camera;
+ camp::triple up;
+ camp::triple target;
+ double zoom;
+ double angle;
+ camp::pair viewportshift;
+
+ projection(bool orthographic=false, camp::triple camera=0.0,
+ camp::triple up=0.0, camp::triple target=0.0,
+ double zoom=0.0, double angle=0.0,
+ camp::pair viewportshift=0.0) :
+ orthographic(orthographic), camera(camera), up(up), target(target),
+ zoom(zoom), angle(angle), viewportshift(viewportshift) {}
+};
+
+projection camera(bool user=true);
+
void glrender(const string& prefix, const camp::picture* pic,
const string& format, double width, double height, double angle,
double zoom, const camp::triple& m, const camp::triple& M,