Function gpu_lookat
#include <macawgpu.h>void gpu_lookat(
double ex,
double ey,
double ez,
double tx,
double ty,
double tz,
double ux,
double uy,
double uz
);
Points the camera from an eye at a target. Call it on the modelview matrix, before you place things.
Parameters
exdouble- The eye's x.
eydouble- The eye's y.
ezdouble- The eye's z.
txdouble- The x of the place it looks at.
tydouble- The y of the place it looks at.
tzdouble- The z of the place it looks at.
uxdouble- The x of which way is up. Give 0, 0, 0 for all three for straight up.
uydouble- The y of which way is up.
uzdouble- The z of which way is up.
In Matrices, with gpu_matrixmode, gpu_loadidentity, gpu_pushmatrix, gpu_popmatrix, gpu_translate, gpu_rotate, gpu_scale, gpu_perspective, gpu_ortho, gpu_frustum, gpu_loadmatrix, gpu_multmatrix, gpu_getmatrix, gpu_project.