Macaw OS C reference

Function gpu_bindtexture

#include <macawgpu.h>
void gpu_bindtexture(int picture);

Draws the next shapes with a picture on them, a texture, placed by gpu_texcoord or a buffer's t. "texture" is switched on to start with.

Parameters

pictureint
A picture number from newpicture or loadpicture. 0 draws with no texture.

In Textures, light and fog, with gpu_light, gpu_lightoff, gpu_ambient, gpu_shademodel, gpu_material, gpu_fog, gpu_pointsize, gpu_stats.