/** * graphene_matrix_init_ortho: * @m: a #graphene_matrix_t * @left: the left edge of the clipping plane * @right: the right edge of the clipping plane * @top: the top edge of the clipping plane * @bottom: the bottom edge of the clipping plane * @z_near: the distance of the near clipping plane * @z_far: the distance of the far clipping plane * * Initializes a #graphene_matrix_t with an orthographic projection. * * Returns: (transfer none): the initialized matrix * * Since: 1.0 */ graphene_matrix_t * graphene_matrix_init_ortho (graphene_matrix_t *m, float left, float right, float top, float bottom, float z_near, float z_far) { graphene_simd4x4f_init_ortho (&m->value, left, right, top, bottom, z_near, z_far); return m; }
graphene_matrix_t * graphene_matrix_init_ortho (graphene_matrix_t *m, float left, float right, float top, float bottom, float z_near, float z_far) { g_return_val_if_fail (m != NULL, NULL); graphene_simd4x4f_init_ortho (&m->value, left, right, top, bottom, z_near, z_far); return m; }