Search
Preparing search index...
The search index is not available
sfml.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
sfml.js
VertexArray
Class VertexArray
Hierarchy
Drawable
VertexArray
Index
Constructors
constructor
Methods
_raw
append
clear
duplicate
Vertex
get
Bounds
get
Primitive
Type
get
Vertex
Count
resize
set
Color
set
Position
set
Primitive
Type
set
Tex
Coords
set
Vertex
Constructors
constructor
new
Vertex
Array
(
)
:
VertexArray
new
Vertex
Array
(
type
:
PrimitiveType
, vertexCount
?:
number
)
:
VertexArray
Returns
VertexArray
Parameters
type:
PrimitiveType
Optional
vertexCount:
number
Returns
VertexArray
Methods
_raw
_raw
(
)
:
any
Returns
any
append
append
(
vertex
:
Vertex
)
:
void
Parameters
vertex:
Vertex
Returns
void
clear
clear
(
)
:
void
Returns
void
duplicate
Vertex
duplicate
Vertex
(
idx
:
number
)
:
Vertex
Parameters
idx:
number
Returns
Vertex
get
Bounds
get
Bounds
(
)
:
FloatRect
Returns
FloatRect
get
Primitive
Type
get
Primitive
Type
(
)
:
PrimitiveType
Returns
PrimitiveType
get
Vertex
Count
get
Vertex
Count
(
)
:
number
Returns
number
resize
resize
(
size
:
number
)
:
void
Parameters
size:
number
Returns
void
set
Color
set
Color
(
idx
:
number
, color
:
number
|
Color
)
:
void
Parameters
idx:
number
color:
number
|
Color
Returns
void
set
Position
set
Position
(
idx
:
number
, position
:
PointType
<
Vector2F
>
)
:
void
Parameters
idx:
number
position:
PointType
<
Vector2F
>
Returns
void
set
Primitive
Type
set
Primitive
Type
(
type
:
PrimitiveType
)
:
void
Parameters
type:
PrimitiveType
Returns
void
set
Tex
Coords
set
Tex
Coords
(
idx
:
number
, position
:
PointType
<
Vector2F
>
)
:
void
Parameters
idx:
number
position:
PointType
<
Vector2F
>
Returns
void
set
Vertex
set
Vertex
(
idx
:
number
, vertex
:
Vertex
)
:
void
Parameters
idx:
number
vertex:
Vertex
Returns
void
Exports
Vertex
Array
constructor
_raw
append
clear
duplicate
Vertex
get
Bounds
get
Primitive
Type
get
Vertex
Count
resize
set
Color
set
Position
set
Primitive
Type
set
Tex
Coords
set
Vertex
Generated using
TypeDoc