updating code to reflect changes in engine

This commit is contained in:
SweetId
2023-11-21 11:26:13 +05:30
parent 251c9f23ec
commit e72f1278c6
5 changed files with 8 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ int WinMain(int argc, char* argv[])
auto passList = Nz::PipelinePassList::LoadFromFile("example.passlist");
camera.emplace<Nz::NodeComponent>();
auto& cameraComponent = camera.emplace<Nz::CameraComponent>(&swapchain, passList, Nz::ProjectionType::Perspective);
auto& cameraComponent = camera.emplace<Nz::CameraComponent>(std::make_shared<Nz::RenderWindow>(swapchain), passList, Nz::ProjectionType::Perspective);
cameraComponent.UpdateFOV(70.f);
cameraComponent.UpdateClearColor(Nz::Color(0.46f, 0.48f, 0.84f, 1.f));