Window is rendering black screen

This commit is contained in:
Brandon Mak 2022-09-09 13:32:55 +08:00
parent bed017e539
commit 94a358995a
1 changed files with 5 additions and 1 deletions

View File

@ -38,13 +38,17 @@ namespace Sandbox
void SBApplication::Update(void) void SBApplication::Update(void)
{ {
SHADE::SHGraphicsSystem* graphicsSystem = static_cast<SHADE::SHGraphicsSystem*>(SHADE::SHSystemManager::GetSystem("Graphics System"));
//TODO: Change true to window is open //TODO: Change true to window is open
while (!window.WindowShouldClose()) while (!window.WindowShouldClose())
{ {
graphicsSystem->BeginRender();
#ifdef SHEDITOR #ifdef SHEDITOR
#else #else
#endif #endif
} graphicsSystem->EndRender();
}
} }