Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Mixing graphics libraries on C++  (Read 3698 times)

0 Members and 1 Guest are viewing this topic.

Carlos Augusto Br Cpp

  • Newbie
  • *
  • Posts: 40
  • Programming is life
    • View Profile
    • Email
Mixing graphics libraries on C++
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
AW: Mixing graphics libraries on C++
« Reply #1 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Carlos Augusto Br Cpp

  • Newbie
  • *
  • Posts: 40
  • Programming is life
    • View Profile
    • Email
Re: Mixing graphics libraries on C++
« Reply #2 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?

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: Mixing graphics libraries on C++
« Reply #3 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.
I would like a spanish/latin community...
Problems building for Android? Look here

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Mixing graphics libraries on C++
« Reply #4 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

TheGuerilla

  • Newbie
  • *
  • Posts: 27
  • Cynical Prick.exe
    • View Profile
    • Email
Re: Mixing graphics libraries on C++
« Reply #5 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.

 

anything