al_transform_coordinates_3d_projective man page

al_transform_coordinates_3d_projective — Allegro 5 API

Synopsis

#include <allegro5/allegro.h>

void al_transform_coordinates_3d_projective(const ALLEGRO_TRANSFORM *trans,
   float *x, float *y, float *z)

Description

Transform x, y, z as homogeneous coordinates. This is the same as using al_transform_coordinates_4d(3) with the w coordinate set to 1, then dividing x, y, z by the resulting w. This will provide the same coordinates Allegro will draw to when a projective transform is in effect as set with al_use_projection_transform(3).

Parameters:

Since 5.2.4

See Also

al_use_transform(3), al_transform_coordinates(3), al_transform_coordinates_3d(3), al_use_projection_transform(3)

Referenced By

al_transform_coordinates_3d(3).

Allegro reference manual