Macaw OS C reference

Function gpu_texcoord

#include <macawgpu.h>
void gpu_texcoord(double u, double v);

Sets which place on the texture the next corner shows.

Parameters

udouble
Across the picture, 0 at its left edge and 1 at its right.
vdouble
Down the picture, 0 at its top edge and 1 at its bottom.

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