SFML community forums
Help => Graphics => Topic started by: Romex on March 30, 2012, 12:32:18 pm
Title:
color line SFML2
Post by:
Romex
on
March 30, 2012, 12:32:18 pm
Hello,
sorry for silly question, but how to create color line in SFML2? VertexArray doesn't have setColor method.
Title:
Re: color line SFML2
Post by:
Laurent
on
March 30, 2012, 12:37:23 pm
Colors are in vertices.
vertexArray.
append
(
sf
::
Vertex
(
p1, sf
::
Color
::
Red
)
)
;
vertexArray.
append
(
sf
::
Vertex
(
p2, sf
::
Color
::
Red
)
)
;