| 2220 | } |
| 2221 | |
| 2222 | ImVec2 GetFrameSize() { |
| 2223 | ImPlot3DContext& gp = *GImPlot3D; |
| 2224 | IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetFrameSize() needs to be called between BeginPlot() and EndPlot()!"); |
| 2225 | return gp.CurrentPlot->FrameRect.GetSize(); |
| 2226 | } |
| 2227 | |
| 2228 | ImPlot3DPoint PlotToNDC(const ImPlot3DPoint& point) { |
| 2229 | ImPlot3DContext& gp = *GImPlot3D; |