LoadTexture()
语法
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.
返回值
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.
参阅
FreeTexture()
已支持操作系统
所有