A collection of CPU vertex arrays.
sealed class
|
VertexArrays
|
extends
|
CapacityBase
|
||
implements
|
IMemoryConsumption
|
||||
IVertexCopy
|
Returns the capacity of this object.
public
property
|
Capacity
{
get
}
|
||
type
|
int32
|
||
value
|
|
The capacity, in elements. | |
inherited
|
CapacityBase.Capacity
|
Returns the estimated memory consumption of this object.
public
property
|
MemoryConsumption
{
get
}
|
||
type
|
int64
|
||
value
|
|
The estimated memory consumption, in bytes. | |
implements
|
IMemoryConsumption.MemoryConsumption
|
Creates a new instance of VertexArrays.
public
constructor
|
VertexArrays
(int32 capacity)
|
||
params
|
capacity
|
[>0]
|
The capacity of each vertex data container in this collection, in vertices. |
Copies vertex data from one vertex to another.
public
method
|
CopyVertexData
(int32 from,
int32 to)
|
||
params
|
from
|
The vertex to copy from. | |
to
|
The vertex to copy to. | ||
implements
|
IVertexCopy.CopyVertexData
|
Creates a new vertex data container for the given semantic, if necessary.
public
method
|
CreateVertexArray
(Semantic semantic)
|
||
type
|
IVertexArray
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
returns
|
|
The vertex data container. |
Returns the vertex data container for the given semantic.
public
method
|
GetVertexArray
(Semantic semantic,
bool required)
|
||
type
|
IVertexArray
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
required
|
true
if
the
vertex
data
container
is
required
(i.e.
the
return
value
must
not
be
null ).
false
if
the
vertex
data
container
is
optional.
|
||
returns
|
The
vertex
data
container
or
null
if
no
container
exists
for
the
given
semantic
and
required
is
false .
|
Exceptions:
true
.
Returns the vertex data array for the given semantic.
public
method
|
GetVertexArrayFloat32
(Semantic semantic,
bool required)
|
||
type
|
float32[]
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
required
|
true
if
the
vertex
data
container
is
required
(i.e.
the
return
value
must
not
be
null ).
false
if
the
vertex
data
container
is
optional.
|
||
returns
|
The
vertex
data
container
or
null
if
no
container
exists
for
the
given
semantic
and
required
is
false .
|
Exceptions:
true
.
Returns the vertex data array for the given semantic.
public
method
|
GetVertexArrayFloat64
(Semantic semantic,
bool required)
|
||
type
|
float64[]
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
required
|
true
if
the
vertex
data
container
is
required
(i.e.
the
return
value
must
not
be
null ).
false
if
the
vertex
data
container
is
optional.
|
||
returns
|
The
vertex
data
container
or
null
if
no
container
exists
for
the
given
semantic
and
required
is
false .
|
Exceptions:
true
.
Returns the vertex data array for the given semantic.
public
method
|
GetVertexArrayInt32
(Semantic semantic,
bool required)
|
||
type
|
int32[]
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
required
|
true
if
the
vertex
data
container
is
required
(i.e.
the
return
value
must
not
be
null ).
false
if
the
vertex
data
container
is
optional.
|
||
returns
|
The
vertex
data
container
or
null
if
no
container
exists
for
the
given
semantic
and
required
is
false .
|
Exceptions:
true
.
Returns the vertex data array for the given semantic.
public
method
|
GetVertexArrayInt64
(Semantic semantic,
bool required)
|
||
type
|
int64[]
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
required
|
true
if
the
vertex
data
container
is
required
(i.e.
the
return
value
must
not
be
null ).
false
if
the
vertex
data
container
is
optional.
|
||
returns
|
The
vertex
data
container
or
null
if
no
container
exists
for
the
given
semantic
and
required
is
false .
|
Exceptions:
true
.
Does a vertex data array exist for the given semantic?
public
method
|
HasVertexArray
(Semantic semantic)
|
||
type
|
bool
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
returns
|
true
if
the
vertex
array
exists,
false
if
not. |
Sets the vertex data container for the given semantic.
public
method
|
SetVertexArray
(Semantic semantic,
IVertexArray vertexData)
|
||
params
|
semantic
|
[not-null]
|
The semantic. |
vertexData
|
The
vertex
data
container
or
null . |