FMX.Types3D.TContext3D.DrawPrimitives
Delphi
procedure DrawPrimitives(const AKind: TPrimitivesKind; const Vertices, Indices: Pointer;
const VertexDeclaration: TVertexDeclaration; const VertexSize, VertexCount, IndexSize, IndexCount: Integer;
const Material: TMaterial; const Opacity: Single);
C++
void __fastcall DrawPrimitives(const TPrimitivesKind AKind, const void * Vertices, const void * Indices, const TVertexDeclaration VertexDeclaration, const int VertexSize, const int VertexCount, const int IndexSize, const int IndexCount, TMaterial* const Material, const float Opacity);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TContext3D |
Description
Draws the primitives specified by the parameters.
DrawPrimitives accepts the following parameters:
Parameter | Meaning |
---|---|
|
The type of primitive to be drawn. |
|
Pointer to the vertices data. |
|
Pointer to the indices data. |
|
The definition of the vertices. |
|
The size of the vertices in the buffer. |
|
The number of vertices in the buffer. |
|
The size of indices in the buffer. |
|
The number of indices in the buffer. |
|
The material used for drawing. |
|
The opacity used at drawing. |