CreateMaterial()
Syntax
Result = CreateMaterial(#Material, TextureID)Description
Creates a new material using the specified texture.
Parameters
#Material A number to identify the new material. #PB_Any can be used to auto-generate this number. TextureID The texture to use. A valid 'TextureID' can be easily obtained with TextureID().
Return value
Nonzero if the material was successfully created, zero otherwise. If #PB_Any was used for the #Material parameter then the generated number is returned on success.
Supported OS
All