FMX.Types3D.TContext3D.DoDrawPrimitivesBatch
Delphi
procedure DoDrawPrimitivesBatch(const AKind: TPrimitivesKind; const Vertices, Indices: Pointer;
const VertexDeclaration: TVertexDeclaration; const VertexSize, VertexCount, IndexSize,
IndexCount: Integer); virtual; abstract;
C++
virtual void __fastcall DoDrawPrimitivesBatch(const TPrimitivesKind AKind, const void * Vertices, const void * Indices, const TVertexDeclaration VertexDeclaration, const int VertexSize, const int VertexCount, const int IndexSize, const int IndexCount) = 0 ;
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 batch of primitives on the currently selected hardware-accelerated layer.
The DoDrawPrimitivesBatch method may support only a limited number of vertices and/or primitives. DoDrawPrimitivesBatch may be called multiple times by DoDrawPrimitives to render large buffers.
DoDrawPrimitivesBatch 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. |