Good evening everybody!
I just started reading "SFML Game Development". So far I like both the book and SFML! I have one question, though:
Whenever I program in C++ and something doesn't work, I print the involved values using std::cout. I noticed that this doesn't work with SFML:
if (!this->mTexture.loadFromFile("res/plane.png"))
{
std::cout << "Texture plane.png couldn't be loaded.";
}
When I intentionally remove plane.png, recompile the program and then run it in terminal mode, I only get to see SMFL's error message, not my string.
Is it generally impossible to use std::cout in combination with SFML? If so, what can be used alternatively?
Thank you!