does this help at all...?
snip...
Few things I noticed.
You are missing brackets from else clause:
if (isFullScreen
) { screenRes
= VideoMode
.DesktopMode; window
= new RenderWindow
(screenRes,
"0", Styles
.Fullscreen); windowencryipt
= new RenderWindow
(screenRes,
"0", Styles
.Fullscreen); } else window
= new RenderWindow
(screenRes,
"0", Styles
.Default); windowencryipt
= new RenderWindow
(screenRes,
"0", Styles
.Default); Second while loop is never happening unless you close the first window, if you are going to render both of them you should do something like:
while (Window.IsOpen() && WindowEncyript.IsOpen())
{
if (PreviousTick.Add(TickLength) <= DateTime.Now)
{
Update();
Draw();
}
}
You are missing brackets in Update method so the second window always gets closed:
if (Keyboard.IsKeyPressed(Keyboard.Key.Escape))
window.Close();
windowencryipt.Close();
Also not sure if you are aware of this but instead of writing
private static Encryption encryption;
public static Encryption Encryption
{
get { return encryption; }
}
private static RenderWindow window;
public static RenderWindow Window
{
get { return window; }
set { window = value; }
}
You can just use
public static Encryption Encryption {get; private set; }
public static RenderWindow Window {get; set;}