FMX.MaterialSources.TColorMaterialSource

From RAD Studio API Documentation
Jump to: navigation, search

FMX.MaterialSources.TMaterialSourceFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTColorMaterialSource

Delphi

TColorMaterialSource = class(TMaterialSource)

C++

class PASCALIMPLEMENTATION TColorMaterialSource : 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 TColorMaterial.

Use TColorMaterialSource to link a TColorMaterial to 3D objects. The link is made through the MaterialSource property of the 3D object. To change the color of the material, set the Color property.

In this example, the cube is linked to a TColorMaterialSource with the Color set to claNavy, and the cone has no material source linked.

TColorMaterialSource.png

See Also

Samples