Function gpu_rotate
#include <macawgpu.h>void gpu_rotate(double degrees, double x, double y, double z);
Turns everything you draw after it round an axis, anticlockwise when you look along the axis towards the middle.
Parameters
degreesdouble- How far to turn, in degrees.
xdouble- The axis's x.
1, 0, 0turns round the x axis. ydouble- The axis's y.
0, 1, 0turns round the y axis. zdouble- The axis's z.
0, 0, 1turns round the z axis. All three 0 does nothing.
In Matrices, with gpu_matrixmode, gpu_loadidentity, gpu_pushmatrix, gpu_popmatrix, gpu_translate, gpu_scale, gpu_perspective, gpu_ortho, gpu_frustum, gpu_lookat, gpu_loadmatrix, gpu_multmatrix, gpu_getmatrix, gpu_project.