Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1.  
  2. ////////////////////////////////////////////////////////////
  3. // Headers
  4. ////////////////////////////////////////////////////////////
  5.  
  6.  
  7. #define SFML_DYNAMIC
  8.  
  9. #include <iostream>
  10.  
  11. #include <SFML/System.hpp>
  12. #include <SFML/Window.hpp>
  13. #include <SFML/Graphics.hpp>
  14. #include <SFML/Graphics/RenderWindow.hpp>
  15.  
  16. using namespace sf;
  17.  
  18.  
  19. //int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
  20. int main()
  21. {
  22. sf::Event input;
  23.  
  24. // Create main window
  25. RenderWindow App;
  26. App.Create(sf::VideoMode(800, 600), "SFML Fonts");
  27.  
  28. // Start game loop
  29. while (App.IsOpened())
  30. {
  31. while (App.GetEvent(input)) {
  32. if (input.Type == Event::Closed) App.Close();
  33. }
  34.  
  35. App.Clear( sf::Color( 0, 255, 255) );
  36. App.Display ();
  37. }
  38.  
  39. return EXIT_SUCCESS;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement