Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef _MSC_VER
- #ifdef _WIN32
- #pragma comment( lib, "sfml-system.lib" )
- #pragma comment( lib, "sfml-graphics.lib" )
- #pragma comment( lib, "sfml-window.lib" )
- #endif
- #endif
- #include <SFML\System.hpp>
- #include <SFML\Graphics.hpp>
- using namespace sf;
- int main()
- {
- VideoMode videoMode(320,240);
- RenderWindow renderWindow(videoMode,"Empty Window");
- while (renderWindow.isOpen())
- {
- renderWindow.clear(Color(0, 0, 255));
- renderWindow.display();
- Event event;
- renderWindow.pollEvent(event);
- if (event.type == Event::Closed)
- renderWindow.close();
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement