Show: Delphi C++
Display Preferences

FMX.Materials.TTextureMaterialSource

From XE3 API Documentation
Jump to: navigation, search

FMX.Types3D.TMaterialSourceFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TTextureMaterialSource

Delphi

TTextureMaterialSource = class(TMaterialSource)

C++

class PASCALIMPLEMENTATION TTextureMaterialSource : public Fmx::Types3d::TMaterialSource

Properties

Type Visibility Source Unit Parent
class public
FMX.Materials.pas
FMX.Materials.hpp
FMX.Materials FMX.Materials

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:

TTextureMaterialSource.png

See Also

Personal tools
Translations