FMX.Types3D.TContext3D.SetShaderVariable

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TContext3D

Description

Sets a shader variable.

There are four overloaded SetShaderVariable methods.

The Name parameter is common to all the overloads and specifies the name of the variable.

Call the first overload to specify a shader variable using a vector.

Call the second overload to specify a shader variable using a texture.

Call the third overload to specify a shader variable using a 3D matrix.

Call the fourth overload to specify a shader variable using a color vector.

See Also