| 1172 | } |
| 1173 | |
| 1174 | void GuiImpl::addGraph( |
| 1175 | const char label[], |
| 1176 | Gui::GraphCallback func, |
| 1177 | void* pUserData, |
| 1178 | uint32_t sampleCount, |
| 1179 | int32_t sampleOffset, |
| 1180 | float yMin, |
| 1181 | float yMax, |
| 1182 | uint32_t width, |
| 1183 | uint32_t height |
| 1184 | ) |
| 1185 | { |
| 1186 | ImVec2 imSize{(float)width, (float)height}; |
| 1187 | ImGui::PlotLines(label, func, pUserData, (int32_t)sampleCount, sampleOffset, nullptr, yMin, yMax, imSize); |
| 1188 | } |
| 1189 | |
| 1190 | Gui::Gui(ref<Device> pDevice, uint32_t width, uint32_t height, float scaleFactor) |
| 1191 | { |