Function ggez::graphics::set_transform [] [src]

pub fn set_transform(context: &mut Context, transform: Matrix4)

Sets the current model transformation to the given homogeneous transformation matrix.

You must call apply_transformations(ctx) after calling this to apply these changes and recalculate the underlying MVP matrix.

A DrawParam can be converted into an appropriate transform matrix by calling param.into_matrix().