Takes the screenshot of the current viewport.
()
| 165 | /// Takes the screenshot of the current viewport. |
| 166 | /// </summary> |
| 167 | public void TakeScreenshot() |
| 168 | { |
| 169 | // Select task |
| 170 | SceneRenderTask target = null; |
| 171 | if (Editor.Windows.EditWin.IsSelected) |
| 172 | { |
| 173 | // Use editor window |
| 174 | target = EditWin.Viewport.Task; |
| 175 | } |
| 176 | else |
| 177 | { |
| 178 | // Use game window |
| 179 | GameWin.FocusOrShow(); |
| 180 | } |
| 181 | |
| 182 | // Fire screenshot taking |
| 183 | Screenshot.Capture(target); |
| 184 | } |
| 185 | |
| 186 | /// <summary> |
| 187 | /// Updates the main window title. |
nothing calls this directly
no test coverage detected