16
Graphics / [SOLVED] Knowing the style of the RenderWindow?
« on: March 22, 2013, 07:50:55 pm »
Hey guys, im re-making my Options menu, and I was wondering if there was some way of knowing the style of a renderwindow. I looked at the documentation, but there isn't a .getStyle() or anyting similar.
I wanted to do something like this
without recurring to using bools(windowIsFUllscreen, windowIsWithoutBorder, etc) so it would be like
EDIT: I know the .getStyle() doesn't exist, I just wrote it for clarification of what I wanted
I wanted to do something like this
if(!windowIsFullscreen && fullscreenOptionChecked){
window.create(VideoMode, "Blah", Style::Fullscreen);
}
window.create(VideoMode, "Blah", Style::Fullscreen);
}
without recurring to using bools(windowIsFUllscreen, windowIsWithoutBorder, etc) so it would be like
if(window.getStyle() == Style::Fullscreen && fullscreenOptionChecked){
window.create(VideoMode, "Blah", Style::Fullscreen);
}
window.create(VideoMode, "Blah", Style::Fullscreen);
}
EDIT: I know the .getStyle() doesn't exist, I just wrote it for clarification of what I wanted