Function gpu_getmatrix
#include <macawgpu.h>void gpu_getmatrix(const char *which, float *m);
Copies a matrix out, so you can keep it or work with it.
Parameters
whichconst char *"modelview","projection", orNULLfor the onegpu_matrixmodepicked.mfloat *- An array of 16
floats it fills in, column by column.
In Matrices, with gpu_matrixmode, gpu_loadidentity, gpu_pushmatrix, gpu_popmatrix, gpu_translate, gpu_rotate, gpu_scale, gpu_perspective, gpu_ortho, gpu_frustum, gpu_lookat, gpu_loadmatrix, gpu_multmatrix, gpu_project.