You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nothing new and surprising but again people may not think about that.
Here I've got some code sampling joints of an animation as e.g 60 hz.
And I can plot that directly from the joint structure without copying the data around one more time
ImGui::PlotLines("Sin", [](void*data, int idx) { returnsinf(idx*0.2f); }, NULL, 100);
ImGui::PlotLines("Cos", [](void*data, int idx) { returncosf(idx*0.2f); }, NULL, 100);
Bit awkward with sample indices to plot an actual math function. Ideally here we could introduce variants of plot that use all floats. Will probably add something.
Likewise for combo boxes, don't copy data around creating list of strings! Use a function to retrieve your data from whatever format it is naturally. The whole plot API is a little awkward and could be reworked along with adding some form of iterator scheme for sparse combo / list-box.
Nothing new and surprising but again people may not think about that.
Here I've got some code sampling joints of an animation as e.g 60 hz.
And I can plot that directly from the joint structure without copying the data around one more time
The text was updated successfully, but these errors were encountered: