Okay so here's my problem...
previously I had my game loop like this:
sf::RenderWindow window(sf::VideoMode(600, 800), "sfml game");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
/* update */
}
}
and this didn't work because my sprites would only be updated when I was moving the mouse, I figured this was beause it was not polling events and thus wasn't updating, so then I added this "|| true" to the loop, so it will be updating and checking events:
while (window.pollEvent(event) || true)
and this worked perfectly... until I moved to linux mint.
when I dont have the
|| true
it has the same problem as I did on windows, but when I do have it, I compile it on code::blocks and it compiles, but when I try to run it, it shows up like the terminal where all the
std::cout <<
commands go, but not the actual game window.
information:
window 7 home premium:
microsoft visual studio 2010 express edition
linux mint 16:
code::blocks, compiled with GNU GCC compiler
thankyou very much.