Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Polygon problem. adding points the right way getting weird image?
Print
Pages: [
1
]
Author
Topic: Polygon problem. adding points the right way getting weird image? (Read 2050 times)
0 Members and 1 Guest are viewing this topic.
Despairy
Newbie
Posts: 14
Polygon problem. adding points the right way getting weird image?
«
on:
March 26, 2012, 04:07:30 pm »
hi i tried to make a tetris polygon
the FLIPPED L shape and this is what i get
http://imageshack.us/photo/my-images/38/goodab.gif
if you see the points are inserted in the right order
top left
top right
bottom right
bottom middle
middle middle
middle left
for some reason the shape is all messed up
any ideas? debugging showed the points are inserted well and i HAVE NO CLUE!
thanks!
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Polygon problem. adding points the right way getting weird image?
«
Reply #1 on:
March 26, 2012, 04:25:10 pm »
Your shape is not
convex
, you cannot use SFML shape classes.
Logged
Laurent Gomila - SFML developer
Despairy
Newbie
Posts: 14
Re: Polygon problem. adding points the right way getting weird image?
«
Reply #2 on:
March 26, 2012, 04:43:56 pm »
didnt know that ... O_O thanks
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11016
Re: Polygon problem. adding points the right way getting weird image?
«
Reply #3 on:
March 26, 2012, 04:47:00 pm »
Quote from: Despairy on March 26, 2012, 04:43:56 pm
didnt know that ... O_O thanks
It's written in the
documentation
...
Btw if you don't want to write your own class, the
Thor
library has already one.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Polygon problem. adding points the right way getting weird image?