Пример #1
0
 public static void StopTakingScreenshot()
 {
     m_screenshot = null;
     MyMinerGame.UpdateScreenSize();
     MyGuiManager.UpdateScreenSize();
     MyCamera.UpdateScreenSize();
     Render.MyRender.CreateRenderTargets();
     MinerWars.AppCode.Game.Render.EnvironmentMap.MyEnvironmentMap.Reset();
 }
Пример #2
0
 public static void TakeScreenshot()
 {
     //  Screenshot object survives only one DRAW after created. We delete it immediatelly. So if 'm_screenshot'
     //  is not null we know we have to take screenshot and set it to null.
     m_screenshot = new MyScreenshot(MyConfig.ScreenshotSizeMultiplier);
     MyMinerGame.UpdateScreenSize();
     MyGuiManager.UpdateScreenSize();
     MyCamera.UpdateScreenSize();
     MinerWars.AppCode.Game.Render.EnvironmentMap.MyEnvironmentMap.Reset();
 }