Macaw OS C reference

Function gpu_loadidentity

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

Resets the current matrix so it changes nothing. You usually do this before setting up a camera or a projection.

Parameters

It takes nothing.

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