0 Members and 1 Guest are viewing this topic.
sf::RenderWindow App(sf::VideoMode(100, 200, 32), "Eye");
#include <SFML/Window.hpp>#include <SFML/System.hpp>#include <SFML/Graphics.hpp>int main(){ sf::RenderWindow App(sf::VideoMode(100, 200, 32), "Eye"); while (App.IsOpened()) { sf::Event Event; while (App.GetEvent(Event)) { // Close window : exit if (Event.Type == sf::Event::Closed) App.Close(); // Escape key : exit if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape)) App.Close(); } App.Clear(sf::Color(64,64,64)); App.Draw(sf::Shape::Circle(100, 10, 5, sf::Color(128,255,0))); App.Display(); sf::Sleep(0.025f); } return EXIT_SUCCESS;}
but why has the windows width 111 and no 100 like I want?
window x 20,real x 111