Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using SFML.Graphics;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApp3
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. RenderWindow win = new RenderWindow(new SFML.Window.VideoMode(1920, 1280), "E");
  15. win.SetVerticalSyncEnabled(true);
  16. Text text = new Text();
  17. text.Position = new SFML.System.Vector2f(1, 1);
  18. while (win.IsOpen)
  19. {
  20. var fps = 0;
  21. text.DisplayedString = String.Format("Fps {0}", fps);
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement