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

Author Topic: Should I use glad ?  (Read 841 times)

0 Members and 1 Guest are viewing this topic.

lamastronotte

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Should I use glad ?
« on: February 11, 2025, 11:57:25 pm »
Should I use GLAD and SFML for 3d ? I see everyone use GLFW and GLAD but I prefer SFML. Also with SFML alone I cannot use some functions so is GLAD needed ? Whatever, when I compile and include GLAD (no function called) I get some weird segfaults  >:( !  Is GLAD worth using ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: Should I use glad ?
« Reply #1 on: February 12, 2025, 08:26:08 am »
SFML only exposes the OpenGL functions via OpenGL.hpp header that SFML itself needs, as such if you want/need additional functions, you'll have to create your own definitions, which is what GLAD is for and to my knowledge still recommended.

Did you, as suggested on Discord, use a debugger to determine where the crash happens?
Can you provide the code that causes the crash?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/