[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
SFML - SDL - Allegro
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 26
Thread images: 3
File: allegro.png (141 KB, 870x629) Image search: [iqdb] [SauceNao] [Google]
allegro.png
141 KB, 870x629
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.
>>
File: 1451667451497.jpg (48 KB, 320x320) Image search: [iqdb] [SauceNao] [Google]
1451667451497.jpg
48 KB, 320x320
>>52357606
>I roll my own
Neat, would you mind posting the code? I'm interested in taking a look at it.
>>
>>52355993
SDL2
>>
File: 1410101449611.jpg (369 KB, 1080x1080) Image search: [iqdb] [SauceNao] [Google]
1410101449611.jpg
369 KB, 1080x1080
>>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.
Thread replies: 26
Thread images: 3
Thread DB ID: 423519



[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.