Macaw OS C reference

Function gpu_normal

#include <macawgpu.h>
void gpu_normal(double x, double y, double z);

Sets which way the surface faces at the next corners, so lighting knows how much light falls on it.

Parameters

xdouble
The direction's x.
ydouble
The direction's y.
zdouble
The direction's z. It needn't be 1 long. It starts as 0, 0, 1.

In Drawing a corner at a time, with gpu_begin, gpu_color, gpu_colorex, gpu_texcoord, gpu_vertex, gpu_vertex4, gpu_done, gpu_end.