Function ggez::graphics::transform [] [src]

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

Premultiplies the given transform with the current model transform.

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().