Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- Image i = RenderSet(640, 480, 1.5f, new Vector2f(-0.5f, 0f));
- i.SaveToFile("C:\\Users\\Lauri\\OneDrive\\Desktop\\test3.bmp");
- app = new RenderWindow(new VideoMode(640, 480), "My Window");
- app.SetFramerateLimit(60);
- Texture t = new Texture(i, new IntRect(new Vector2i(0, 0), new Vector2i(640, 480)));
- Sprite s = new Sprite(t);
- s.TextureRect = new IntRect(new Vector2i(0, 0), new Vector2i(640, 480));
- s.Position = new Vector2f(0, 0);
- while (app.IsOpen)
- {
- app.Closed += new EventHandler(WindowClose);
- app.DispatchEvents();
- app.Clear();
- app.Draw(s);
- app.Display();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement