-
Notifications
You must be signed in to change notification settings - Fork 0
Texture_add
hpgDesigns edited this page Aug 8, 2021
·
1 revision
int texture_add(string fname, bool mipmap=false);
Adds a texture from the given file and optionally generates mipmaps.
| Parameter | Data Type | Description |
|---|---|---|
| fname | string | file name and path of the image data for the texture |
| mipmap | boolean | whether or not to automatically generate mipmaps, (optional) default is false |
void: This function does not return anything.
// demonstrates loading a texture with mipmaps
texture_add("mytexture.png", true);
NOTOC
This is number 1