Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Window right and left sides
Print
Pages: [
1
]
Author
Topic: Window right and left sides (Read 1235 times)
0 Members and 1 Guest are viewing this topic.
MrMou6
Newbie
Posts: 17
Window right and left sides
«
on:
February 24, 2015, 03:37:36 pm »
Hi, i draw two rectangles:
padas1.
setPosition
(
sf
::
Vector2f
(
10
,
(
waukstis
/
2
)
-
25
)
)
;
padas2.
setPosition
(
sf
::
Vector2f
(
wilgis
-
10
,
(
waukstis
/
2
)
-
25
)
)
;
and i get this:
why these spaces is different?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Window right and left sides
«
Reply #1 on:
February 24, 2015, 03:51:52 pm »
Second one should be wilgis - 10 - width. Don't forget that by default, the position refers to the top-left corner.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Window right and left sides
anything