MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Engine/Screen.cpp:250–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void ScreenService::Draw()
251{
252#if USE_EDITOR
253
254 // Not supported
255
256#else
257
258 if (Fullscreen.HasValue())
259 {
260 auto win = Engine::MainWindow;
261 if (win)
262 {
263 win->SetIsFullscreen(Fullscreen.GetValue());
264 }
265
266 Fullscreen.Reset();
267 }
268
269 if (Size.HasValue())
270 {
271 auto win = Engine::MainWindow;
272 if (win)
273 {
274 win->SetClientSize(Size.GetValue());
275 }
276
277 Size.Reset();
278 }
279
280#endif
281}

Callers 1

OnDrawMethod · 0.45

Calls 4

HasValueMethod · 0.45
SetIsFullscreenMethod · 0.45
GetValueMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected