Macaw OS C reference

Function leveltexturename

#include <macawlevel.h>
int leveltexturename(int i, char *buf, int size);

Gives the name of one of the built-in textures, so you can list them.

Parameters

iint
Which texture, from 0.
bufchar *
Where the name goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the name, or 0 once there are no more.

In Skies and textures, with levelskies, levelsky, leveltexture.