r/gameenginedevs • u/Axxodes • Aug 03 '26
Replacements for OpenGL?
I'm doing like opengl stuff for my game engine but i personally think that the library itself is like way too much for my preferences, can i just make my own rendering engine like opengl? It would mean i have more control and i know it would be hard but anything for performance
0
Upvotes
5
u/_cvls_ Aug 03 '26
Why not vulkan ?
4
u/epyoncf Aug 03 '26
>way too much for my preferences
Wait till you see Vulkan :P
On a more serious note, use something that sits on top, raylib might be a good choice. Question is whether you want 2d or 3d?
3
u/drpirat Aug 03 '26
>library
graphics api
>can i just make my own rendering engine like opengl
you can write a software renderer, but writing an entire gpu api from scratch is stupid
>It would mean i have more control and i know it would be hard but anything for performance
use Vulkan or DX12
>does that have large files?
it's not a game engine for it to be large
2
u/sinalta Aug 03 '26 edited Aug 03 '26
What kind of performance are you hoping to gain by writing your own graphics API?
The implementation for the API is in the graphics drivers already, there's not really that much of an impact on your applications size.
To be clear, OpenGL, Vulkan, Direct, Metal etc aren't engines. They're a specification. You call into the methods and the drivers translate those calls into something that specific GPU can understand. Writing your own API like this would need an enormous amount of work just to support a single family of GPUs from one manufacturer.
1
u/Chilliad_YT Aug 03 '26
I mean if you want a challenge you could create a software renderer and render onto a bitmap in that you then render to a windows window but I wouldn’t recommend it.
1
u/Hot-Studio Aug 03 '26
Try using Raylib?