mirror of
https://github.com/HarbourMasters/Starship
synced 2026-08-19 22:31:58 -04:00
Add better cull region calculation, change gCurrentScreenWidth to 1600 to allow aspect ratios up to 6.2.
This commit is contained in:
committed by
Alejandro Asenjo Nitti
parent
7a333a68c2
commit
354de2f364
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user