Browse Source

Added Object::scale() for scaling proportionally in all dimensions.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
d702c13195
  1. 9
      src/Object.h

9
src/Object.h

@ -153,6 +153,15 @@ class MAGNUM_EXPORT Object {
scale(Vector3(x, y, z), global); 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 * @brief Rotate object
* *

Loading…
Cancel
Save