diff options
author | Mathias Fröhlich <[email protected]> | 2014-09-21 18:09:21 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2014-10-24 19:21:20 +0200 |
commit | 6340e609a354770e04192b9b44e91fb06aab0159 (patch) | |
tree | a23faaf3f456f4775efd556e2701ad07021ff1b4 /src/mesa/main/viewport.h | |
parent | 8c7ac377b7a859705479a0b421d1dacc53ca240a (diff) |
mesa: Refactor viewport transform computation.
This is for preparation of ARB_clip_control.
v3:
Add comments.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Mathias Froehlich <[email protected]>
Diffstat (limited to 'src/mesa/main/viewport.h')
-rw-r--r-- | src/mesa/main/viewport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index f2311c02b44..514ff1067ff 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 |