Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DaskDun

Pages: [1]
1
I don't know if this help you. It's part of my code.


public static void ToggleFullscren(Game Game)
        {
            Game.Fullscreen = !Game.Fullscreen;
            Game.RenderWindow.Close();
            Game.RenderWindow = new RenderWindow(new VideoMode(960, 720), "My Game", (Game.Fullscreen ? Styles.Fullscreen : Styles.Close));
            Game.RenderWindow.Position = new Vector2i(200, 0);
            Game.RenderWindow.SetFramerateLimit(60);
            Game.RenderWindow.SetVerticalSyncEnabled(true);
            Game.StackStateManager.PeekState().addEvents();
            Game.RenderWindow.Capture();
            Game.RenderWindow.Display();
           
        }

 

Pages: [1]
anything