Hi. i try do draw an anti aliased circle, but i get this error in consol:
Warning: The created opengl context does not fully meet the settings that were requested
Requested: version=1.1 ; depth bits=0 ; stencil bits=0;
AA level = 8 ; core=false ; debug=false; sRGB=false
Created: version=2.1 ; depth bits=0 ; stencil bits=0;
AA level = 0 ; core=false ; debug=false; sRGB=false
In my graphics card settings anti aliasing is enabled , i tried different values for anti aliasing , but don't work.
Code :
#include <SFML/Graphics.hpp>
int main()
{
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
sf::RenderWindow window(sf::VideoMode(800, 600), "Something", sf::Style::Default, settings);
sf::CircleShape shape(200.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;
}