Macaw OS C reference

Function gpu_vertex4

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

Sends a corner with a fourth number, w, as OpenGL's glVertex4 does.

Parameters

xdouble
The corner's x.
ydouble
The corner's y.
zdouble
The corner's z.
wdouble
1 is the same as gpu_vertex. The place is x, y and z divided by w.

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