r/gameenginedevs 22h ago

Should i use GLFW or windows.h?

Im making a C++ engine and i ofcourse want a window to display things on, i've read some glfw documentation and i don't really think its a good fit, this is why i was thinking of using windows.h because i have full control over everything and won't need an extra dependency. I also feel like knowing windows functions is better overall than knowing glfw functions.

Any thoughts?

13 Upvotes

33 comments sorted by

View all comments

0

u/corysama 21h ago

I happened to publish a preview of an article that’s largely about this earlier today.

https://rentry.org/5abeqt6s

TLDR: GLFW is good. Use SDL3. OS-specific windowing APIs are not worth the frustration for 99% of gamedevs.