r/cpp_questions • u/LoquatNo3841 • 9d ago
OPEN Which graphics library could you recommend?
I am buidling my own game engine, but im not sure which graphics library to use. i think using pure OpenGL might be too hard for me, i like the raylib examples but out of the box it looks a bit too stylized to the raylib theme, so is it possible to make it look the way you want? What about SDL, whats the developer experience with that?
31
Upvotes
14
u/Discordbothost 9d ago
Raylib's examples get their look from the assets and colors they pick. Try swapping in your own texture first. SDL3's GPU API gives you more control, but you'll set up the shaders and render pipeline yourself.
8
u/gabitha67 9d ago
SFML
7
u/Zen-Ism99 9d ago
Sdl3
4
u/GoatyGoY 9d ago
BGFX is nice if you want something a bit more abstracted than directly wrestling with OpenGL
3
u/KingAggressive1498 9d ago
VulkanSceneGraph or Raylib are probably your best options if you would like to avoid directly using OpenGL or Vulkan.
However for the most part OpenGL is fairly easy to learn. As long as you're not trying to pull AAA quality anyway. You're just going to wind up reinventing your own version of most of VSG (or rather OpenSceneGraph ig) as you go though.
3
u/El_RoviSoft 9d ago
SFML3 if you want to understand basics of gamedev
raylib or sdl3 for more mature projects (I chose sdl3 at the time) but this just matter of preference
2
u/TomDuhamel 9d ago
r/gameenginedevs
1
u/Business-Weather-217 9d ago
I would totally recommend vexa.
1
u/Business-Weather-217 9d ago
vexa.
1
u/nattydread69 9d ago
I wrote my own vulkan graphics library and made it open source. Feel free to use it. Github.com/nattydread69/LightVulkanGraphics it uses a glfw window.
1
u/neerajprime 8d ago
If you are anyway building your game engine then as well invest time to get one thing which will pay off the most, which is graphics. I could visibly see difference in performance when I started paying more attention to graphics. Higher performance will help you get more frame budget so you could go higher FPS or do more in same FPS or reduce GPU usage to run on lower capable hardware. Either ways you will see lot of opportunities which opens up, more so when you are writing a game engine.
1
u/Johana-Xung 5d ago
Is WebGPU worth trying out?
1
u/blue-cheeso 3d ago
You could use rlgl which is a raylib component, I would stick with OpenGL as other graphics libraries, such as SDL_gpu, WebGPU, and sokol, rely more in a modern-ish design which comes with a higher entry level.
0
u/arjuna93 9d ago
GLFW, as an alternative to SDL
-2
u/JustAPieceOfMeat385 9d ago edited 9d ago
Sorry for the dumb question but what is the difference between a game and a game engine?
Update: I just used Google lol
-1
u/HieuandHieu 8d ago
Webgpu for sure. I don't understand why people still say Vulkan, or the worst things, Opengl ... But, if Opengl too hard for you, that is on you, you should put more effort.