Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.     class Engine
  2.     {
  3.         public static RenderWindow app;
  4.  
  5.         public static void Main (string[] args)
  6.         {
  7.             app = new RenderWindow (new VideoMode (64*8, 64*8), "Test",Styles.Resize);
  8.             app.Closed += (sender, e) => (sender as RenderWindow).Close ();
  9.  
  10.             Texture t = new Texture ("texture.png");
  11.             Sprite background = new Sprite(t){ Scale = new Vector2f(8,8)};
  12.  
  13.             while (app.IsOpen()) {
  14.                 Update (app);
  15.             }
  16.         }
  17.  
  18.         public static void Update(RenderWindow window)
  19.         {
  20.             //Что лучше юзать переменную window или app?
  21.         }
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement