Remove Sync and Scene functions from Renderer.
PiperOrigin-RevId: 828481721 Change-Id: Id0399139653b0ec27f0d365437e62cadefadfe6c
This commit is contained in:
committed by
Copybara-Service
parent
17d36d8e75
commit
8b7eb097db
@@ -197,10 +197,6 @@ bool App::Update() {
|
||||
return status == toolbox::Window::Status::kRunning;
|
||||
}
|
||||
|
||||
void App::Sync() {
|
||||
renderer_->Sync(Model(), Data(), &perturb_, &camera_, &vis_options_);
|
||||
}
|
||||
|
||||
void App::Render() {
|
||||
const float width = window_->GetWidth();
|
||||
const float height = window_->GetHeight();
|
||||
|
||||
@@ -49,9 +49,6 @@ class App {
|
||||
// Processes window events and advances the state of the simulation.
|
||||
bool Update();
|
||||
|
||||
// Syncs the state of the simulation with the renderer.
|
||||
void Sync();
|
||||
|
||||
// Builds the GUI. We do this after Sync() to ensure we have the latest data
|
||||
// for building the GUI.
|
||||
void BuildGui();
|
||||
|
||||
@@ -56,7 +56,6 @@ int main(int argc, char** argv, char** envp) {
|
||||
if (model_file.empty() && argc > 1 && argv[1][0] != '-') model_file = argv[1];
|
||||
app.LoadModel(model_file);
|
||||
while (app.Update()) {
|
||||
app.Sync();
|
||||
app.BuildGui();
|
||||
app.Render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user