SFML community forums
General => General discussions => Topic started 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?
-
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?
-
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?
-
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.
-
..
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
-
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.