SFML community forums

General => General discussions => Topic started by: Carlos Augusto Br Cpp on June 29, 2016, 10:51:42 pm

Title: Mixing graphics libraries on C++
Post by: Carlos Augusto Br Cpp on June 29, 2016, 10:51:42 pm
Hey dudes I need some help in one question...sorry if this is a bit off-toppic but my question is...

Can I mix two graphics library on a C++ project or an game?
for example:
let's suppose that I'll make some game, and I planned to use both SFML and SDL to treat about graphics. ..or maybe use SFML for Graphics and SDL for Audio....Can I do this?
Title: AW: Mixing graphics libraries on C++
Post by: eXpl0it3r on June 29, 2016, 11:05:00 pm
Both for graphics: No, because their OpenGL bits don't work with eachother.

Graphics and audio: Most likely. Not sure about SDL but SFML's audio module can be used independently.

The main question is: What do you expect to gain from it?
Title: Re: Mixing graphics libraries on C++
Post by: Carlos Augusto Br Cpp on June 30, 2016, 12:24:05 am
Bro...it's funny because it's like...what SFML dont have that SDL have I can use...I have heard that SFML on android dont support shaders but SDL support...but I also say that we can use one library called GLSL to better shaders effects...so In SFML on Android I can use GLSL to use shaders?
Title: Re: Mixing graphics libraries on C++
Post by: DarkRoku12 on June 30, 2016, 12:54:33 am
SFML for the moment use Open GL ES1, that donĀ“t support shaders (GLSL -> OpenGL Shading Language).

SDL is a bit older and have a bigger community but : Will you encounter projects like Thor, LTBL, SFEMovie, Selba Ward, and such things in SDL?

It's true that SDL have "more features" but SFML have better interface and documentation.
Title: Re: Mixing graphics libraries on C++
Post by: jamesL on July 16, 2016, 10:17:20 pm
..
It's true that SDL have "more features" but SFML have better interface and documentation.
and surprisingly the SDL forums are pretty much dead

the best thing SDL has going for it are Lazy Foo's tutorials which are awesome
Title: Re: Mixing graphics libraries on C++
Post by: TheGuerilla on July 17, 2016, 02:16:43 am
Bro...it's funny because it's like...what SFML dont have that SDL have I can use...I have heard that SFML on android dont support shaders but SDL support...but I also say that we can use one library called GLSL to better shaders effects...so In SFML on Android I can use GLSL to use shaders?
As DarkRoku said, SFML uses OpenGL ES 1, which does not support shaders. That said, if you do plan on using SDL just for cross platform shaders, it is worth noting that implementing shaders in SDL is astronomical levels more difficult than it is in SFML unless you know how to use the OpenGL api.