FMX.Types3D.TContext3D.CreateBuffer
Delphi
procedure CreateBuffer;
C++
void __fastcall CreateBuffer();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Types3D.pas FMX.Types3D.hpp |
FMX.Types3D | TContext3D |
Description
Creates the vertex and index buffers.
A vertex buffer provides a way of uploading vertices, colors, and vectors to the video card's memory for delayed mode rendering. Vertex buffering increases performance because the data is stored directly in the RAM of the video card so access times are very small compared to if the data was stored in the main memory.
An index buffer is used to reduce the number of vertices that are required when rendering an object.