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

pub fn set_transform<M>(context: &mut Context, transform: M) where
    M: Into<ColumnMatrix4<f32>>, 

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 with DrawParam::to_matrix().

let param = /* DrawParam building */
let transform = param.to_matrix();
graphics::set_transform(ctx, transform);