CopyTexture()

Syntax

Result = CopyTexture(#Texture, #NewTexture)
Description
Creates a new texture which is the exact copy of the specified texture.

Parameters

#Texture The texture to copy.
#NewTexture A number to identify the new texture. #PB_Any can be used to auto-generate this number.

Return value

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

Supported OS

All

Texture Index - CreateCubeMapTexture() ->