Skip to content

Commit

Permalink
viewer: organizing menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
larc committed Nov 29, 2023
1 parent 1c6728e commit 5d28857
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gproshan/viewer/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ void viewer::init_menus()
add_menu("Viewer",
{
add_process("Help", m_help, GLFW_KEY_F1),
add_process("Close", m_close, GLFW_KEY_ESCAPE),
add_process("Maximize", m_maximize, GLFW_KEY_F11),
add_process("Hide/Show ImGui", m_hide_show_imgui, GLFW_KEY_I),
add_process("Save/Load view", m_save_load_view, GLFW_KEY_PERIOD),
Expand All @@ -461,29 +460,30 @@ void viewer::init_menus()
add_process("Background color inc", m_bgc_inc, GLFW_KEY_RIGHT),
add_process("Background color dec", m_bgc_dec, GLFW_KEY_LEFT),
add_process("Background color white", m_bgc_white, GLFW_KEY_1),
add_process("Background color black", m_bgc_black, GLFW_KEY_0)
add_process("Background color black", m_bgc_black, GLFW_KEY_0),
add_process("Close", m_close, GLFW_KEY_ESCAPE)
});

add_menu("Render",
{
add_process("Render Flat", m_render_flat, GLFW_KEY_TAB),
add_process("Render Point Cloud", m_render_pointcloud, GLFW_KEY_F5),
add_process("Render Wireframe", m_render_wireframe, GLFW_KEY_F6),
add_process("Render Triangles", m_render_triangles, GLFW_KEY_F7),
add_process("Render GL", m_render_gl, GLFW_KEY_F8),
add_process("Level Curves", m_render_lines, GLFW_KEY_SPACE),
add_process("Render Flat", m_render_flat, GLFW_KEY_TAB),
add_process("Setup Raytracing", m_setup_raytracing, GLFW_KEY_R),
add_process("Render Embree", m_render_embree, GLFW_KEY_F9),
#ifdef GPROSHAN_OPTIX
add_process("Render OptiX", m_render_optix, GLFW_KEY_F10),
#endif // GPROSHAN_OPTIX
add_process("Raycasting", m_raycasting, GLFW_KEY_ENTER)
add_process("Setup Raytracing", m_setup_raytracing, GLFW_KEY_R),
add_process("Raycasting", m_raycasting, GLFW_KEY_ENTER),
add_process("Level Curves", m_render_lines, GLFW_KEY_SPACE)
});

add_menu("Mesh",
{
add_process("Reload/Reset", m_reset_mesh, GLFW_KEY_INSERT),
add_process("Save Mesh", m_save_mesh, GLFW_KEY_W),
add_process("Reload/Reset", m_reset_mesh, GLFW_KEY_INSERT),
add_process("Remove Selected Mesh", m_remove_mesh, GLFW_KEY_DELETE),
add_process("Pop Mesh", m_pop_mesh, GLFW_KEY_BACKSPACE),
add_process("Normalize Mesh", m_normalize_mesh),
Expand Down

0 comments on commit 5d28857

Please sign in to comment.