FMX.MaterialSources.TTextureMaterialSource
Delphi
TTextureMaterialSource = class(TMaterialSource)
C++
class PASCALIMPLEMENTATION TTextureMaterialSource : public TMaterialSource
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.MaterialSources.pas FMX.MaterialSources.hpp |
FMX.MaterialSources | FMX.MaterialSources |
Description
Defines a source of TTextureMaterial.
Use TTextureMaterialSource to link a TTextureMaterial to 3D objects. The link is made through the MaterialSource property of the 3D object.
By default, TTextureMaterialSource has no texture specified. The object that links to an empty TTextureMaterialSource cannot be seen on the form. The material's texture is specified as a TBitmap. Specify the texture by setting the Texture property of the TTextureMaterialSource.
In this design-time example, the cube is linked to an empty TTextureMaterialSource, and the cone is linked to a TtextureMaterialSource with the specified texture: