FMX.Types3D.TMeshData.TexCoordinates
Delphi
property TexCoordinates: string read GetTexCoordinates write SetTexCoordinates stored False;
C++
__property System::UnicodeString TexCoordinates = {read=GetTexCoordinates, write=SetTexCoordinates, stored=false};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TMeshData |
Description
Specifies the coordinates of the texture that is rendered over this mesh.
The coordinates are given as a string and should respect the following format:
var
MeshData: TMeshData;
begin
MeshData := TMeshData.Create;
MeshData.TexCoordinates := '0, 0, 0, 1, 1, 0, 1, 1';
A separator token must be either comma (,
) or blank space. So the following statements are equivalent:
MeshData.TexCoordinates := '0, 0, 0, 1, 1, 0, 1, 1';
MeshData.TexCoordinates := '0 0 0 1 1 0 1 1';
MeshData.TexCoordinates := '0 0, 0 1, 1 0, 1 1';
MeshData.TexCoordinates := '0, 0 0, 1 1, 0 1, 1';