Add better cull region calculation, change gCurrentScreenWidth to 1600 to allow aspect ratios up to 6.2.

This commit is contained in:
Malkierian
2024-12-09 15:06:02 -07:00
committed by Alejandro Asenjo Nitti
parent 7a333a68c2
commit 354de2f364
2 changed files with 16 additions and 5 deletions
+8
View File
@@ -588,4 +588,12 @@ extern "C" void* GameEngine_Malloc(size_t size) {
memset(static_cast<uint8_t*>(MemoryPool.memory) + MemoryPool.length, 0, MemoryPool.length - chunk);
SPDLOG_INFO("Memory pool resized from {} to {}", MemoryPool.length - chunk, MemoryPool.length);
return GameEngine_Malloc(size);
}
extern "C" float GetWindowWidth() {
return Ship::Context::GetInstance()->GetWindow()->GetWidth();
}
extern "C" float GetWindowHeight() {
return Ship::Context::GetInstance()->GetWindow()->GetHeight();
}