static DebugManager() { camera = new OrthographicCamera() .SetProjection(WindowManager.WindowWidth, WindowManager.WindowHeight, 0.25f, 8); camera.SetPosition(WindowManager.WindowWidth * 0.5f, -WindowManager.WindowHeight * 0.5f, 1); WindowManager.WindowResize += HandleResize; font = AssetManager.GetFont("Relatus_Probity"); fontShader = new BMFontShader(); }
private static void HandleResize(object sender, EventArgs args) { camera.SetProjection(WindowManager.WindowWidth, WindowManager.WindowHeight, 0.25f, 8); camera.SetPosition(WindowManager.WindowWidth * 0.5f, -WindowManager.WindowHeight * 0.5f, 1); }