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

Method on_update

samples/engine-performance/engine-performance.cpp:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void sample_engine_performance::on_update(const app_update_event & e)
159{
160 int width, height;
161 glfwGetWindowSize(window, &width, &height);
162 flycam.update(e.timestep_ms);
163 shaderMonitor->handle_recompile();
164
165 // NEW: Update all objects - calls on_update() on each enabled object
166 scene.update(e.timestep_ms / 1000.0f);
167}
168
169void sample_engine_performance::on_draw()
170{

Callers

nothing calls this directly

Calls 2

handle_recompileMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected