FMX.Types3D.TContext3D.DrawPrimitives

From RAD Studio API Documentation
Jump to: navigation, search

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

AKind

The type of primitive to be drawn.

Vertices

Pointer to the vertices data.

Indices

Pointer to the indices data.

VertexDeclaration

The definition of the vertices.

VertexSize

The size of the vertices in the buffer.

VertexCount

The number of vertices in the buffer.

IndexSize

The size of indices in the buffer.

IndexCount

The number of indices in the buffer.

Material

The material used for drawing.

Opacity

The opacity used at drawing.

See Also