From d702c13195f826dcc0c8623a6f925c51bf863779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 20 Feb 2012 22:29:19 +0100 Subject: [PATCH] Added Object::scale() for scaling proportionally in all dimensions. --- src/Object.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Object.h b/src/Object.h index 2ef3ea211..041bd923e 100644 --- a/src/Object.h +++ b/src/Object.h @@ -153,6 +153,15 @@ class MAGNUM_EXPORT Object { scale(Vector3(x, y, z), global); } + /** + * @copydoc scale(Vector3, bool) + * + * Scales the object proportionally in all dimensions. + */ + inline void scale(GLfloat xyz, bool global = true) { + scale({xyz, xyz, xyz}, global); + } + /** * @brief Rotate object *