The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/var: Auto width and match XYZ to RGB colors for ff_vec3

authored by

Mateo de Mayo and committed by
Moses Turner
db3fe110 c2009b6a

+2 -2
+2 -2
src/xrt/state_trackers/gui/gui_scene_debug.c
··· 175 175 ImPlotAxisFlags y2_flags = 0; 176 176 ImPlotAxisFlags y3_flags = 0; 177 177 178 - ImVec2 size = {1024, 256}; 178 + ImVec2 size = {igGetWindowContentRegionWidth(), 256}; 179 179 bool shown = ImPlot_BeginPlot(name, "time", "value", size, flags, x_flags, y_flags, y2_flags, y3_flags); 180 180 if (!shown) { 181 181 return; 182 182 } 183 183 184 184 size_t num = m_ff_vec3_f32_get_num(ff); 185 + ImPlot_PlotLineG("z", plot_z, &state, num, 0); // ZXY order to match RGB colors with default color map 185 186 ImPlot_PlotLineG("x", plot_x, &state, num, 0); 186 187 ImPlot_PlotLineG("y", plot_y, &state, num, 0); 187 - ImPlot_PlotLineG("z", plot_z, &state, num, 0); 188 188 189 189 ImPlot_EndPlot(); 190 190 }