Macaw OS C reference

Function gpu_loadmatrix

#include <macawgpu.h>
void gpu_loadmatrix(const float *m);

Replaces the current matrix with 16 numbers of your own.

Parameters

mconst float *
An array of 16 floats, column by column, so m[12], m[13] and m[14] are the move.

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_multmatrix, gpu_getmatrix, gpu_project.