Animated load screens with OpenGL, a simple solution |
DarioOO
|
really nice .
|
|||||||||||
|
GameCodingNinja
|
Thanks! I soon realized I can't load everything from a separate thread because I use SDL2 mixer and loading ogg sound files don't seem to work from another thread. Further research showed that OpenGL is not designed for threading except for a few work arounds. This is a kick in the teeth if what you're after is a simple elegant system for loading screen animations. I was able to do this with my DirectX engine but I still had to get parts of my engine up and running and enter the game loop to load and animate at the same time. What's amazing is that you can use OpenGL and SDL2 interchangeable. Never thought I'd find a use for the SDL2 software rendering feature but I'm extremely glad it's there.
|
|||||||||||
|