Macaw OS C reference

Function gpu_translate

#include <macawgpu.h>
void gpu_translate(double x, double y, double z);

Moves everything you draw after it.

Parameters

xdouble
How far to move along x, to the right.
ydouble
How far to move along y, upwards.
zdouble
How far to move along z, towards you. The eye looks down -z.

In Matrices, with gpu_matrixmode, gpu_loadidentity, gpu_pushmatrix, gpu_popmatrix, gpu_rotate, gpu_scale, gpu_perspective, gpu_ortho, gpu_frustum, gpu_lookat, gpu_loadmatrix, gpu_multmatrix, gpu_getmatrix, gpu_project.