Base interface for classes that convert vertex data stored in a one or more IVertexArray containers to GPU vertex data.
interface
|
IVertexFormat
|
extends
|
IVertexArraysDependent
|
||
IVertexElements
|
|||||
base of
|
VertexFormat
|
An
IVertexFormat
always
uses
the
byte
endianess
of
the
system
when
writing
multi-byte
values
(e.g.
float32
,
int32
).
Returns the vertex declaration elements.
property
|
VertexElements
{
get
}
|
||
type
|
VertexElements
|
||
value
|
|
The vertex declaration elements. | |
inherited
|
IVertexElements.VertexElements
|
Appends the given vertex format to this vertex format.
[Pure]
|
||||
method
|
Append
(IVertexFormat format)
|
|||
type
|
IVertexFormat
|
|||
params
|
format
|
[not-null]
|
The vertex format to append. | |
returns
|
|
The resulting vertex format. |
Sets the vertex data containers from which this vertex converter shall read vertex data.
method
|
SetVertexArrays
(VertexArrays vertexArrays)
|
||
params
|
vertexArrays
|
[not-null]
|
The vertex data collection. |
inherited
|
IVertexArraysDependent.SetVertexArrays
|
Writes vertex data to the given vertex buffer.
[Pure]
|
||||
method
|
WriteVertex
(int32 vertex,
ByteBuffer buffer)
|
|||
params
|
vertex
|
[>=0]
|
The vertex index. | |
buffer
|
[not-null]
|
The target vertex buffer region. |
Writes vertex data to the given vertex buffer.
method
|
WriteVertices
(int32 first,
int32 count,
ByteBuffer buffer)
|
||
params
|
first
|
[>=0]
|
Index of first vertex to write. |
count
|
[>=0]
|
Number of vertices to write, starting at first. | |
buffer
|
[not-null]
|
The output byte buffer. |