Macaw OS C reference

Function gpu_pushmatrix

#include <macawgpu.h>
void gpu_pushmatrix(void);

Saves a copy of the current matrix, so you can change it and get the saved one back with gpu_popmatrix. Each matrix can have 31 saved at once.

Parameters

It takes nothing.

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