Original Post
What I'm trying to do is add a seperate thread for loading my map data so the program can display a loading screen and later on I wanted to use it for making map changes seamless. Since I'm going to be using the thread in my LoadMap function only I thought I'd go about doing this: How would I go about doing this using SDL's threading functions? I've tried on my own based on the docs at SDL's official page but it crashes my program.
void LoadMap(string fileName)
{
//CreateThread
//ExecuteDataLoadingFunction with the fileName passed to it in another thread so the rendering loop can continue
//Then after the data is loaded start creating the GL Textures and VBOs based on the data loaded in the thread
}