Function loadtexture
#include <macaw3d.h>int loadtexture(const char *path, int size);
Loads a photo texture from a .tex file, such as one in /system/textures. Bigger photos are shrunk as they load, keeping their shape.
Parameters
pathconst char *- The
.texfile. A path that doesn't start with/is in your program's folder. sizeint- The most pixels across (or down) to keep, from 8 to 1024. 0 or less: 64.
Returns int
The new picture's number, or 0 if the file couldn't be read or isn't a .tex.
In Textures, with nothing else.