Result = LoadTexture(#Texture, Filename$)
Loads a new texture from the disk. Before loading a texture, an archive has to be specified with Add3DArchive().

Texture format can be in PNG, TGA or JPG. It's strongly recommended to make the texture dimension square and with power of 2 width/height: 64x64, 128x128, 256x256... Old GFX cards can have limitation, so if possible limit the texture size to 256x256.


#Texture A number to identify the new texture. #PB_Any can be used to auto-generate this number.
Filename$ The filename of the texture.

Return value

Nonzero if the texture was successfully loaded, zero otherwise. If #PB_Any was used for the #Texture parameter then the generated number is returned on success.

See Also


Supported OS


<- IsTexture() - Texture Index - SaveRenderTexture() ->