FMX.Types3D.TContext3D.DoDrawPrimitives

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoDrawPrimitives(const AKind: TPrimitivesKind; const Vertices, Indices: Pointer;
const VertexDeclaration: TVertexDeclaration; const VertexSize, VertexCount, IndexSize,
IndexCount: Integer); virtual;

C++

virtual void __fastcall DoDrawPrimitives(const TPrimitivesKind AKind, const void * Vertices, const void * Indices, const TVertexDeclaration VertexDeclaration, const int VertexSize, const int VertexCount, const int IndexSize, const int IndexCount);

Properties

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

Description

Provides a mechanism to draw the specified primitives.

The DoDrawPrimitives method provides a mechanism to draw the specified primitives without limitations. DoDrawPrimitives either draws the primitives directly in the hardware, or divides the buffers in batches and calls DoDrawPrimitivesBatch to render each individual batch.

DoDrawPrimitives takes the following parameters:

Parameter Description
AKind The kind of primitive: Points, Lines, or Triangles.
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 the indices in the buffer.
IndexCount The number of indices in the buffer.

See Also