16
Window / Valid modes
« on: March 11, 2009, 11:20:18 am »
Yes, I have done it with this:
The mode is valid, but it doesn't work.
Andreas
Code: [Select]
unsigned int VideoModesCount = sf::VideoMode::GetModesCount();
for (unsigned int i = 0; i < VideoModesCount; ++i)
{
sf::VideoMode Mode = sf::VideoMode::GetMode(i);
// Mode is a valid video mode
std::cout << "Mode " << Mode.Width << "-" << Mode.Height << "-" << Mode.BitsPerPixel << " is valid" << std::endl;
}
The mode is valid, but it doesn't work.
Andreas