Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

Programming • Can OpenGL be mixed with other game libraries

$
0
0
The objective is to draw a 1st person 3D maze on the background and draw additonnal information in a user interface on the top of that 3D maze. Performance is not an issue as the game does not have real time animation.

Theoretically, I could upload all the textures and maze layout to OpenGL then render the scene. At this point, the scene should be in the video buffer. After wards, if I use other game libraries like SDL, Allegro, Raylib, blitting routines should be allows to draw on the top of what is already in the video buffer. As long as I don't clear the screen, I should be able to overlap Game library Rendering over OpenGL rendering.

Now I might be missing something, this is why I am asking. Could this work?

If the game library does not use the GPU to draw it's information, there should not be any conflicts as it only sends pixels directly to the video buffer. On the other hand, if the game library also use the GPU, there could be some conflicts. Again, just theoretical assumptions.

If mixing OpenGL and other GL is possible, then I could make my maze drawing with OpenGL to be compatible with any GL. Else I will need to use a GL that allows 3D polygons, like Raylib, and strictly use the GL.

Statistics: Posted by larienna — 2024-04-07 03:42



Viewing all articles
Browse latest Browse all 2849

Trending Articles