Wich is better for you?
SDL2
what's with that shitty crocodile logo?
Neither, GLFW
SFML is pOOP
allegro is half-baked
sdl just werks
>>52356114
>werks
why sfml is poop ?
SDL
how do you write libraries like this?
>>52356172
The same way you write any other library.
GLFW + raw OpenGL
>>52356203
how? in python?
>>52356282
No, javascript
>>52356130
He means "pOOP", as in, he doesn't know how to program in OOP.
But one of the problems with SFML is that development is strictly in 2D graphics. 3D integration with other libraries is quite difficult (just to load a simple 3D background image). The developers also seem to be strongly against making this process easier.
>>52356401
hello pajeet
>>52356172
download SDL2 source code and see by yourself
>>52355993
SFML is pretty simple and has clean code but doesn't have much to do. SDL is hard to learn and has a lot of calls but it great for optimization and different projects. I've never used Allegro so idek about that one
>>52356111
>>52356222
Explain why it's better than SDL/SFML/Allegro?
>>52355993
If I am doing a 2D multimedia program for desktop I'd rather use SFML as I find it more comfortable to use (I used it for a gnomonic pictures viewer for example). Same would go for a 2D game that doesn't rely too much on the GPU. Don't use it for mobile/exotic platforms though.
>>52357334
Better /g/ cred. It's like when you tell people you installed Gentoo. They know you're the real deal.
I only learned SDL
>>52355993
None.
I roll my own because I only care about GNU/Linux and Windows x86/arm which in total is about 1000 lines of code for setting up a window with gl or a software framebuffer, handling input, timing and sound (just a pcm callback).
It's all in a single header stb-style, so you just dump it into any project and get going, no fuss with build systems or dependencies.
>>52357606
>I roll my own...
I've only heard one person use this exact phrase when referring to graphics libraries for game programming, and it was on a forum for an indie game ages ago.
>>52357606
>I roll my own
Neat, would you mind posting the code? I'm interested in taking a look at it.
>>52355993
SDL2
>>52357606
>>52358079
>Imageboards
>>52356222
do people not use raw OpenGL regularly
>>52355993
>Better /g/ cred.
The worst argument I ever heard in favor of anything.
>>52355993
Just so you know SDL2 lacks a function that waits for interrupts. So it's dead for applications.