Renderer: Make WindowSwapchain a RenderTarget
To make it easier to handle window re-creation
This commit is contained in:
@@ -70,7 +70,7 @@ int main()
|
||||
|
||||
Nz::Vector2ui windowSize = window.GetSize();
|
||||
|
||||
Nz::Camera camera(&windowSwapchain.GetSwapchain());
|
||||
Nz::Camera camera(&windowSwapchain);
|
||||
//camera.UpdateClearColor(Nz::Color::Gray);
|
||||
|
||||
Nz::ViewerInstance& viewerInstance = camera.GetViewerInstance();
|
||||
|
||||
Reference in New Issue
Block a user