Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////
- // Headers
- ////////////////////////////////////////////////////////////
- #define SFML_DYNAMIC
- #include <iostream>
- #include <SFML/System.hpp>
- #include <SFML/Window.hpp>
- #include <SFML/Graphics.hpp>
- #include <SFML/Graphics/RenderWindow.hpp>
- using namespace sf;
- //int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
- int main()
- {
- sf::Event input;
- // Create main window
- RenderWindow App;
- App.Create(sf::VideoMode(800, 600), "SFML Fonts");
- // Start game loop
- while (App.IsOpened())
- {
- while (App.GetEvent(input)) {
- if (input.Type == Event::Closed) App.Close();
- }
- App.Clear( sf::Color( 0, 255, 255) );
- App.Display ();
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement