DXBufferCreate
Creates a buffer of a specified type based on a data array.
int DXBufferCreate(
int context,
ENUM_DX_BUFFER_TYPE buffer_type,
const void& data[],
uint start=0,
uint count=WHOLE_ARRAY
);
|
Parameters
context
[in] Handle for a graphic context created in DXContextCreate().
buffer_type
[in] Buffer type from the ENUM_DX_BUFFER_TYPE enumeration.
data[]
[in] Data for creating a buffer.
start=0
[in] Index of the first element of the array, starting from which the array values are used to create a buffer. By default, the data is taken from the beginning of the array.
count=WHOLE_ARRAY
[in] Number of values. By default, the entire array is used (count=WHOLE_ARRAY).
Return Value
Note
ENUM_DX_BUFFER_TYPE
|
|
|
|
DX_BUFFER_VERTEX
|
1
|
Vertex buffer
|
DX_BUFFER_INDEX
|
2
|
Index buffer
|