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

Method on_update

apps/editor/editor-app.cpp:295–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void scene_editor_app::on_update(const app_update_event & e)
296{
297 int width, height;
298 glfwGetWindowSize(window, &width, &height);
299
300 set_working_directory(working_dir_on_launch);
301
302 editorProfiler.begin("on_update");
303 flycam.update(e.timestep_ms);
304 shaderMonitor.handle_recompile();
305 gizmo->on_update(cam, float2(static_cast<float>(width), static_cast<float>(height)));
306 editorProfiler.end("on_update");
307}
308
309void scene_editor_app::draw_entity_scenegraph(const entity e)
310{

Callers

nothing calls this directly

Calls 5

set_working_directoryFunction · 0.85
handle_recompileMethod · 0.80
beginMethod · 0.45
updateMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected