Here's the code, I thought it'd be best to just post it in case there's some way that's a problem.
LoadState::LoadState(BatE::MANAGER_PTR master_manager) : m_loadThread(&LoadState::loadFunc, this){
m_sceneManager = master_manager;
}
void LoadState::init() {
BatE::Camera *cam = m_sceneManager->createCamera("Ortho");
cam->setProjection(glm::ortho(0.0f, float(m_windowWidth), float(m_windowHeight), 0.0f));
m_sceneManager->addFontFromFile("LibSans44","LiberationSans-Bold.ttf", 44);
m_sceneManager->addTextToFont("LibSans44", "Loading", "Loading...", 300, 300, true, glm::vec4(0.0, 1.0, 0.0, 1.0));
m_sceneManager->addTextToFont("LibSans44", "Secs", "0", 300, 344, true, glm::vec4(1.0, 0.0, 0.0, 1.0));
m_sceneManager->connectCameraToTextScene("LibSans44", "Ortho");
m_ballsScene = m_sceneManager->add2dScene("Balls");
m_loadingDone = false;
m_loadThread.launch();
}
void LoadState::loadFunc(){
sf::Context context;
int ms = 100;
m_ballsScene->addImageFromFile("BlackBall", "black.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "blue.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "green.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "light_blue.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "purple.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "red.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "white.png");
sf::sleep(sf::milliseconds(ms));
m_ballsScene->addImageFromFile("BlackBall", "yellow.png");
sf::sleep(sf::milliseconds(ms));
sf::Lock lock(m_doneMutex);
m_loadingDone = true;
}
Thanks again for any help anyone can give.