Alright, still having the problem.
Here is the portion that won't work.
gameManager.cpp
while(mWindow.isOpen()){
mWindow.clear(sf::Color::Black);
lManager.onMenu(mWindow);
mWindow.draw(lManager.Exit);
wManager.windowDisplay(mWindow);
eManager.eventLoop(mWindow);
}
levelManager.cpp
void levelManager::onMenu(sf::RenderWindow &mWindow){
stateManager sManager;
loadFonts();
setText();
posManager();
int state = sManager.getState();
if (state == 1){
mWindow.draw(Start);
mWindow.draw(Exit);
std::cout << "OnMenu";
}
I've made sure the state interger is initialized to 0 and "OnMenu" but no text is displayed to the window. Everything runs though without error. The font is loaded as well.