summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.h
diff options
context:
space:
mode:
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>2014-09-21 18:09:21 +0200
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>2014-10-24 19:21:20 +0200
commit6340e609a354770e04192b9b44e91fb06aab0159 (patch)
treea23faaf3f456f4775efd556e2701ad07021ff1b4 /src/mesa/main/viewport.h
parent8c7ac377b7a859705479a0b421d1dacc53ca240a (diff)
downloadexternal_mesa3d-6340e609a354770e04192b9b44e91fb06aab0159.zip
external_mesa3d-6340e609a354770e04192b9b44e91fb06aab0159.tar.gz
external_mesa3d-6340e609a354770e04192b9b44e91fb06aab0159.tar.bz2
mesa: Refactor viewport transform computation.
This is for preparation of ARB_clip_control. v3: Add comments. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/mesa/main/viewport.h')
-rw-r--r--src/mesa/main/viewport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h
index f2311c0..514ff10 100644
--- a/src/mesa/main/viewport.h
+++ b/src/mesa/main/viewport.h
@@ -71,5 +71,8 @@ _mesa_init_viewport(struct gl_context *ctx);
extern void
_mesa_free_viewport_data(struct gl_context *ctx);
+extern void
+_mesa_get_viewport_xform(struct gl_context *ctx, unsigned i,
+ double scale[3], double translate[3]);
#endif