I was messing around with this sample code and got this error...
H:\SFML_Projects\Sample1\main.cpp||In function 'int main()':|
H:\SFML_Projects\Sample1\main.cpp|6|error: 'FullScreen' is not a member of 'sf::Style'|
||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===|
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window;
window.create(sf::VideoMode(800, 600, 32), "A New Window", sf::Style::FullScreen);
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
If I take out the... sf::Style::FullScreen it works fine.
When I type sf::Style:: ... I get ... __Unnamed as my only option
I'm using codeblocks 12.11 and sfml 2.1
Thanks for any help on this.