Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -175,7 +175,7 @@ Window* GameBase::CreateMainWindow()
settings.AllowMaximize = true;
settings.AllowMinimize = true;
settings.Size = Platform::GetDesktopSize();
settings.Position = Vector2::Zero;
settings.Position = Float2::Zero;
Game::InitMainWindowSettings(settings);
@@ -249,8 +249,8 @@ void GameBaseImpl::OnPostRender(GPUContext* context, RenderContext& renderContex
const float height = imageArea.GetWidth() / aspectRatio;
imageArea.Location.Y += (imageArea.GetHeight() - height) * 0.5f;
imageArea.Size.Y = height;
imageArea.Location = Vector2::Ceil(imageArea.Location);
imageArea.Size = Vector2::Ceil(imageArea.Size);
imageArea.Location = Float2::Ceil(imageArea.Location);
imageArea.Size = Float2::Ceil(imageArea.Size);
// Draw
Render2D::Begin(GPUDevice::Instance->GetMainContext(), renderContext.Task->GetOutputView(), nullptr, viewport);