/** * graphene_matrix_perspective: * @m: a #graphene_matrix_t * @depth: the depth of the perspective * @res: (out caller-allocates): return location for the * perspective matrix * * Applies a perspective of @depth to the matrix. * * Since: 1.0 */ void graphene_matrix_perspective (const graphene_matrix_t *m, float depth, graphene_matrix_t *res) { res->value = m->value; graphene_simd4x4f_perspective (&res->value, depth); }
void graphene_matrix_perspective (const graphene_matrix_t *m, float depth, graphene_matrix_t *res) { g_return_if_fail (m != NULL); g_return_if_fail (depth > 0.0f); g_return_if_fail (res != NULL); res->value = m->value; graphene_simd4x4f_perspective (&res->value, depth); }