FMX.Types3D.TContext3D.SetShaderVariable

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

procedure SetShaderVariable(const Name: string; const Data: array of TVector3D); overload;
procedure SetShaderVariable(const Name: string; const Texture: TTexture); overload;
procedure SetShaderVariable(const Name: string; const Matrix: TMatrix3D); overload;
procedure SetShaderVariable(const Name: string; const Color: TAlphaColor); overload;

C++

void __fastcall SetShaderVariable(const System::UnicodeString Name, const System::Math::Vectors::TVector3D *Data, const int Data_High)/* overload */;
void __fastcall SetShaderVariable(const System::UnicodeString Name, TTexture* const Texture)/* overload */;
void __fastcall SetShaderVariable(const System::UnicodeString Name, const System::Math::Vectors::TMatrix3D &Matrix)/* overload */;
void __fastcall SetShaderVariable(const System::UnicodeString Name, const System::Uitypes::TAlphaColor Color)/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TContext3D


Beschreibung

Legt eine Schattierer-Variable fest.

Es gibt vier überladene SetShaderVariable-Methoden.

Der Parameter Name ist der gleiche für alle Überladungen und gibt den Namen der Variable an.

Rufen Sie die erste Überladung auf, um eine Schattierer-Variable mithilfe eines Vektors anzugeben.

Rufen Sie die zweite Überladung auf, um eine Schattierer-Variable mithilfe einer Textur anzugeben.

Rufen Sie die dritte Überladung auf, um eine Schattierer-Variable mithilfe einer 3D-Matrix anzugeben.

Rufen Sie die vierte Überladung auf, um eine Schattierer-Variable mithilfe eines Farbe-Vektors anzugeben.

Siehe auch