Macaw OS C reference

Function gpu_scale

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

Grows or shrinks everything you draw after it.

Parameters

xdouble
How much wider: 1 leaves it, 2 doubles it, 0.5 halves it.
ydouble
How much taller, in the same way.
zdouble
How much deeper, in the same way.

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