I’ve created an OpenGL application which loads various resources (model files, image files, map files).
All these resources are loaded in the init section of the application.
When I start the application it hangs while all the resources are loaded.
What I want to know is how do I display a loading output while everything is being loaded. It doesn’t need to be complex like status bars, just a screen outputting “loading” rather than a hanging terminal window.
I would have the open window with an OpenGL context running on one thread, and load the resources on a separate one. That way, you can change some progress variable, and redraw the loading bar while loading the resources.