Texture_add - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

int texture_add(string fname, bool mipmap=false);

Description

Adds a texture from the given file and optionally generates mipmaps.

Parameters

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

Return Values

void: This function does not return anything.

Example Call

// demonstrates loading a texture with mipmaps
texture_add("mytexture.png", true);

NOTOC