CreateMaterial()
Syntax
Result = CreateMaterial(#Material, TextureID [, Color])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 or #Null if no texture is needed. A valid 'TextureID' can be easily obtained with TextureID(). Color (optional) The color to use for ambiant and diffuse. A valid RGB color can be created with RGB().
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