MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / on_update

Method on_update

samples/engine-procedural-scene/engine-procedural-scene.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void sample_engine_procedural_scene::on_update(const app_update_event & e)
115{
116 int width, height;
117 glfwGetWindowSize(window, &width, &height);
118 flycam.update(e.timestep_ms);
119 shaderMonitor->handle_recompile();
120
121 // Update all objects (calls on_update on each enabled object)
122 the_scene.update(e.timestep_ms / 1000.0f);
123}
124
125void sample_engine_procedural_scene::on_draw()
126{

Callers

nothing calls this directly

Calls 2

handle_recompileMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected