Should you learn SDL, SFML, or GLFW? (or GLUT)

  Рет қаралды 32,440

graphicsrush

graphicsrush

2 жыл бұрын

ッ Join my NEW discord server (will you be the first to post?): tinyurl.com/graphicsrush ッ
DONT CLICK THIS: tinyurl.com/4z6jfkxh

Пікірлер: 59
@Carlos-kh5qu
@Carlos-kh5qu Жыл бұрын
I really like the portability of SDL, if you look away for 10 seconds they might do a HolyC port for a random console from 2004
@fcmedic4217
@fcmedic4217 2 жыл бұрын
I'm now immortalized in a video, I've never felt more honored. Great video, very straight to the point and informative. I joined the discord as well.
@immanuelcharles2875
@immanuelcharles2875 2 жыл бұрын
For audio I really like using this library call irrklang a powerful but simple library with GLFW it’s really simple and requires like 10 lines of code to load in and play sounds. I haven’t really messed with 3D sounds though
@ahmeterenlacinbala
@ahmeterenlacinbala 2 жыл бұрын
You can take a look at Juce framework for audio applications but Juce is more for musical DSP applications. You can still do simple GUI audio applications tho.
@teasauce3608
@teasauce3608 Жыл бұрын
SoLoud is also a neat lib for sound loading/playing.
@Carlos-kh5qu
@Carlos-kh5qu Жыл бұрын
think SDL + SDL_mixer is enough for most cases, you can mess with effects and even with the built-in effects you can do 3D audio
@rsingh5759
@rsingh5759 8 ай бұрын
There is a secret easiest option called raylib
@dreamhollow
@dreamhollow 8 ай бұрын
I've been using SFML for a while. It's not so much that it's hard to troubleshoot, it's more like you have to develop your own tools for debugging WHILE troubleshooting. It saves you a massive amount of time in figuring out where your biggest problems are.
@yolamontalvan9502
@yolamontalvan9502 3 ай бұрын
Thank you for your SDL information. Keep up the good work, your videos are easy to understand.
@santiagolerin
@santiagolerin Жыл бұрын
Really good video, good enough graphic and audio quality and straight to the point
@mkac0036
@mkac0036 Жыл бұрын
I think that SDL2 is the best. It has a built-in renderer, that can target OpenGL, Software rendering, Vulkan is worked on and it has sister libraries like SDL_image, SDL_net, ... It has great compatability, you can use emscripten to compile to wasm, and it has a well documented, feature-rich API. Overall, I recommend
@onebigsnowball
@onebigsnowball 8 ай бұрын
It's great, but doesn't support shaders for the built in renderer
@EpicVideoGamer7771
@EpicVideoGamer7771 Жыл бұрын
Thanks dude, I think I'll go with SFML after I get better at C++
@jorik170
@jorik170 3 ай бұрын
how is it going mate? any advice for me, a beginner?
@EpicVideoGamer7771
@EpicVideoGamer7771 3 ай бұрын
@@jorik170Good thank you, I ended up quitting SFML pretty quickly as I wasn't passionate about it. I have since began learning OpenGL and although it is challenging, I am enjoying it very much
@kasufert
@kasufert 2 ай бұрын
@@jorik170FYI, SFML works just fine with OpenGL, you just need a wrangler like GLEW or GLAD but after that you can use SFML just like any other windowing library for 3D OpenGL rendering.
@justarandomdude.9285
@justarandomdude.9285 Жыл бұрын
Dude, thx for the save. But it's really hard to start actually coding your project as a beginner. the worst part is I can't get Visual studio as an IDE so I'm using code blocks. do you have any vid about just starting your project whatever is it, cuz it's been a month and I'm getting no where as I can see. (I only have knowledge in C++)
@therealvbw
@therealvbw Жыл бұрын
Man I wish more videos were as short and sweet as this
@graphicsrush
@graphicsrush Жыл бұрын
Glad ya liked it!
@graphicsrush
@graphicsrush 2 жыл бұрын
Thanks to @FcMedic42 for this video idea! If y'all want to see something specific on this channel feel free to tell me in the comments below! EDIT: X11 technically isn't an API at all...
@thoughte2432
@thoughte2432 2 жыл бұрын
This was a nice, informative video. I have two suggestions, one about the video format, the other about idea's: I think it'd be a better idea to add to subtitles to the subtitling feature of youtube so viewers can turn it on/off. As for the ideas, you could make a video about problems (concerning one of the api's) that don't have a video (or only ones that are outdated or ones that aren't found easily) that explains how to implement/solve it. Along that you could also add best practices to the video as extra useful info. Other than that, you could also make a devlog about cool projects you're working on. Good luck with your channel!
@graphicsrush
@graphicsrush 2 жыл бұрын
@@thoughte2432 Thank you very much for the reply! I’ll definitely put these practices and ideas to use in future videos! Devlogs are especially something I wanted to do since the beginning of the channel and I’m glad to know that there is support for them! As for using KZfaq’s built-in subtitles, I’ll definitely put that to use in my videos 👍
@RobotronSage
@RobotronSage 2 жыл бұрын
Great stuff Was looking for something like this Maybe you could do another video going more in detail on the differences I.E which API is more intuitive to use And perhaps organise the differences better, the question marks kindof confused me Like after watching this i still have a lot of questions I've used a bit of SDL and SFML and i think even some GLFW already so that's why i am confused as to which library to use primarily. I think i'm leaning on towards SDL as iirc (i had a concussion last year) it was easier to setup in my opinion. I am trying to configure some IMGUI stuff but i don't know which OpenGL library to choose :'D
@graphicsrush
@graphicsrush 2 жыл бұрын
I'll be sure to do that! Honestly, I believe that it's mostly an aspect of personal preference (for example SFML offers OOB style programming while the other don't). For IMGUI I recommend GLFW or SDL as they have the most support. Good luck with your project! EDIT: I found the question marks present in the video... and yes, they do look confusing when put into the context of a video...
@nobyra
@nobyra 2 жыл бұрын
0:44 sounded like "dont use API" scared me Like damn time to learn it all from scratch
@cristianinujazznight3044
@cristianinujazznight3044 2 жыл бұрын
C++ is Love :D
@DuffkaBigNerd
@DuffkaBigNerd 2 жыл бұрын
You mention using other APIs alot in the video, mind if I ask, what your prefered mixture of APIs to use, and for what purposes?
@graphicsrush
@graphicsrush 2 жыл бұрын
I mostly use glfw and vulkan *or* opengl and sdl
@NoName-md6fd
@NoName-md6fd 21 күн бұрын
If you are fiddling with game programming, SFML and raylib just work. If you want to have the game on steam, pick SDL as valve supports it. If you used either SFML or raylib then SDL won't be as much of a chore to learn.
@VoidloniXaarii
@VoidloniXaarii Жыл бұрын
Thank you
@encapsulatio
@encapsulatio 2 жыл бұрын
Is there any modern GUI library that works through Vulkan? Am interested in using such a library to make the UI of desktop apps i want to make.
@graphicsrush
@graphicsrush 2 жыл бұрын
Great Question! Not any that I know of that use Vulkan. But you could use an immediate mode UI library (basically means that the renderer is not included with the UI library) and use Vulkan to render the UI elements. (I personally use Dear Imgui @ github.com/ocornut/imgui) Alternatively, you could use a UI library that uses operating system proprietary windowing APIs and doesn't use a graphics API at all (GTK and GTK+ are good cross-platform options) Good luck with your project!
@encapsulatio
@encapsulatio 2 жыл бұрын
@@graphicsrush I honestly need it to have as few dependencies as possible to the native windowing APIs of every platform...and also work on Android and IOS.
@graphicsrush
@graphicsrush 2 жыл бұрын
​@@encapsulatio Hmmm, A lot of UI libs support android but not IOS. In fact, this was a problem I faced when developing my game engine. I suppose you *could* use an immediate mode UI library but I fear it would be too overkill for your application (are you going to be using graphics intensive effects like complex animations and geometry in your application?) For making the renderer cross platform I am guessing that it wouldn't be a problem as Vulkan is supported on IOS through MoltenVK...
@zoriiginalx7544
@zoriiginalx7544 11 ай бұрын
Qt
@wiskasIO
@wiskasIO 8 ай бұрын
Saying that SFML is underrated it's an underrated statement on itself... SFML is the shoot!!💪🏼++
@-_Marcos_-
@-_Marcos_- Жыл бұрын
Great, i'm glad to find this video. I was about to learn glut ☠
@TiaguinhouGFX
@TiaguinhouGFX Жыл бұрын
You can say that C++ is better in your opinion, but objectively C is better.
@haru02w89
@haru02w89 2 ай бұрын
I'm sorry. At the end of the day, the project needs to be finished. I won't implement everything myself just because C doesn't have STL
@Light13378
@Light13378 2 ай бұрын
Hello thank for sharing these video amd can you make update oft these video and explain a little bit detail
@ade5324
@ade5324 3 ай бұрын
i wish i viewed this video earlier, really would've helped with decision paralysis :)
@goge7152
@goge7152 Жыл бұрын
I'm really new to C++ and this would be my first API I'll learn but don't know where to start
@jedsiecz
@jedsiecz Ай бұрын
@Voxi0 i do raylib, i'd say im half decent but its faster than onelonecoders pixelgameengine and almost as easy, so ill stick to it
@void9886
@void9886 4 ай бұрын
does openGL and GLFW the same API?
@C3mR4de
@C3mR4de Жыл бұрын
Well if there was an API as simple as SFML and capable of 3D, it would be priceless. SFML is very, VERY simple, well-sharpen for many platforms and the same code works properly on Windows and Linux (its latest stable version also has good backwards compatibility down to Windows XP, which I think is nice). You can use lots of other languages with SFML beside C++ (but that bindings are not official and some of them might be outdated). But it has one big con, it doesn't support 3D and never will and you should use low-level OpenGL calls to work with it. It's not very important for me cuz I don't use 3D, but if I want to try it, I should learn GLFW instead (because pure OpenGL is platform-specific). Maybe I could bind SFML and GLFW and use it both for 3D, but I dunno.
@ivanenzhaev2373
@ivanenzhaev2373 2 жыл бұрын
Thanks for video. It is good. But you did not say about a very important thing for many people - Android and iOS. You can check what is better for mobile development by searching tutorials on KZfaq: sdl android, sfml android, sdl ios, sfml ios. Spoiler -> SDL2 is better for mobile development for Android and iOS
@graphicsrush
@graphicsrush 2 жыл бұрын
Yes, I have overlooked that! I might make another video on that for sake of completeness…
@UndyingEDM
@UndyingEDM Жыл бұрын
Thoughts on this vs Dear Imgui?
@AlFredo-sx2yy
@AlFredo-sx2yy 9 ай бұрын
@Voxi0 you can use that to add GUIs to a game tho. Look at the hazel engine for example, it uses imgui to draw GUI on top of the game. Dont say it cant be done, rendering is all about drawing things, you can always render anything on top of any other thing... imgui is purposefully made so that it can be compatible with any kind of graphics application
@blast4ce
@blast4ce 2 күн бұрын
hello
@user-ql7pw7ld1n
@user-ql7pw7ld1n 4 ай бұрын
too short..i want long version
@teasauce3608
@teasauce3608 Жыл бұрын
GLFW grants total freedom - but in cost of your soul, however :)
@dr20231may
@dr20231may Жыл бұрын
Do you mean that glfw require more coding than SDL?
@Carlos-kh5qu
@Carlos-kh5qu Жыл бұрын
@@dr20231may from personal experience, it's the same, most times you can copy paste glfw code and rename the functions, still SDL2 has much more features and tonnes of platforms and extensions for networking images etc
@irice7
@irice7 5 ай бұрын
0:05 x11 is mit licensed, not propiertary 🙃
@viewererdos
@viewererdos 7 ай бұрын
The downside of SFML is the idiotic division of headers and subsystems when compiling into separate libraries instead of one library and one header + toxic community even on Github.
@lk9895
@lk9895 6 ай бұрын
0:10 X
@Trox-the-gamer
@Trox-the-gamer 5 ай бұрын
Raylib is easy
@tanura5830
@tanura5830 Жыл бұрын
Just use SFML if you are noob, easiest way imo
RayLib 5 Released - The Easiest C/C++ Game Library Just Got Even Better
10:42
ALL IT TAKES... A Vulkan Story
29:10
The Cherno
Рет қаралды 124 М.
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 17 МЛН
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 127 МЛН
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,5 МЛН
Should I have used Unity instead of Raylib for my Indie game?
10:11
Lingon Studios
Рет қаралды 27 М.
Building a Physics Engine with C++ and Simulating Machines
11:23
AngeTheGreat
Рет қаралды 658 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 891 М.
Making Minecraft from scratch in 48 hours (NO GAME ENGINE)
16:38
One year of my C++ SFML journey
5:39
Snapi
Рет қаралды 343 М.
Why do we use SDL with C & C++?
16:26
pikuma
Рет қаралды 40 М.
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 17 МЛН