Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Weird issue drawing on OSX..kind of..  (Read 2571 times)

0 Members and 1 Guest are viewing this topic.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Weird issue drawing on OSX..kind of..
« on: January 28, 2015, 07:56:33 am »
This is related to my binding so it is probably my own fault more than anything else, but I am hoping someone can at least point me in the right direction as to what might cause something like this.

Basically drawing works correctly for SFML, but not DSFML. Check it out:


My guess is that something crazy is going on with the vertex arrays, but who knows?!

Oddly enough, no one that uses my binding has reported this happening. It only seems to have happened to me so far. I am currently attributing it to my very old and crappy Mac box. You don't even want to know the specs. It'll make you cry.

Any speculation is welcome.
DSFML - SFML for the D Programming Language.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Weird issue drawing on OSX..kind of..
« Reply #1 on: January 28, 2015, 12:11:52 pm »
Not sure how easy this is with your binding, but run it through a debugger and check that every value is correct.
If that didn't help, use some graphics debbuger and see what goes on there.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: Weird issue drawing on OSX..kind of..
« Reply #2 on: January 30, 2015, 01:13:30 am »
Figured it out. It was definitely my fault. Basically the thickness of the shape wasn't getting initialized in the constructor, and in D floats initialize to NaN. When the outline was being calculated it made some of the vertices be all crazy as hell.
DSFML - SFML for the D Programming Language.

 

anything