Add separate methods for beginning and ending drawing for Scene.

This commit is contained in:
2024-01-21 00:58:21 +01:00
parent 0f829c5d08
commit 85834170ab
3 changed files with 11 additions and 17 deletions

View File

@@ -76,6 +76,8 @@ public class TestGame : Game
while (_scene.ShouldRun)
{
_scene.Update();
_scene.BeginDraw();
_scene.EndDraw();
double frameTimeMs = _renderer.FrameTime * 1000f;