Commit 6eb518fa authored by chili's avatar chili
Browse files

testing out multiple model bind sharing

parent a28c15d4
......@@ -27,6 +27,7 @@ void App::DoFrame()
light.Bind( wnd.Gfx(),cam.GetMatrix() );
nano.Draw( wnd.Gfx() );
nano2.Draw( wnd.Gfx() );
light.Draw( wnd.Gfx() );
while( const auto e = wnd.kbd.ReadKey() )
......@@ -96,7 +97,8 @@ void App::DoFrame()
cam.SpawnControlWindow();
light.SpawnControlWindow();
ShowImguiDemoWindow();
nano.ShowWindow();
nano.ShowWindow( "Model 1" );
nano2.ShowWindow( "Model 2" );
// present
wnd.Gfx().EndFrame();
......
......@@ -26,4 +26,5 @@ private:
Camera cam;
PointLight light;
Model nano{ wnd.Gfx(),"Models\\nano_textured\\nanosuit.obj" };
Model nano2{ wnd.Gfx(),"Models\\nano_textured\\nanosuit.obj" };
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment