Commit 6a86bfa
committed
Use ImGui functions directly in renderer vtables
Remove small per-backend wrapper functions and wire the vtables to the real ImGui functions and existing helpers. Added renderer_noop_wait_idle and a renderer_call_backend_new_frame template in the header to avoid duplicated no-op/new-frame wrappers. Updated Metal, OpenGL and Vulkan backends to use ImGui_Impl* Shutdown/NewFrame directly and to reference existing functions (e.g. platform_glfw_supports_vulkan, imiv_vulkan_screen_capture). This reduces boilerplate and keeps behavior unchanged.
Signed-off-by: Vlad <shaamaan@gmail.com>1 parent 6235eae commit 6a86bfa
4 files changed
Lines changed: 25 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
140 | 157 | | |
141 | 158 | | |
142 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2036 | 2036 | | |
2037 | 2037 | | |
2038 | 2038 | | |
2039 | | - | |
2040 | | - | |
2041 | 2039 | | |
2042 | 2040 | | |
2043 | 2041 | | |
| |||
2279 | 2277 | | |
2280 | 2278 | | |
2281 | 2279 | | |
2282 | | - | |
| 2280 | + | |
2283 | 2281 | | |
2284 | 2282 | | |
2285 | 2283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | 1637 | | |
1646 | 1638 | | |
1647 | 1639 | | |
| |||
1661 | 1653 | | |
1662 | 1654 | | |
1663 | 1655 | | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | 1656 | | |
1673 | 1657 | | |
1674 | 1658 | | |
| |||
1891 | 1875 | | |
1892 | 1876 | | |
1893 | 1877 | | |
1894 | | - | |
| 1878 | + | |
1895 | 1879 | | |
1896 | | - | |
1897 | | - | |
| 1880 | + | |
| 1881 | + | |
1898 | 1882 | | |
1899 | 1883 | | |
1900 | 1884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | 288 | | |
297 | 289 | | |
298 | 290 | | |
| |||
351 | 343 | | |
352 | 344 | | |
353 | 345 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 346 | | |
367 | 347 | | |
368 | | - | |
| 348 | + | |
369 | 349 | | |
370 | 350 | | |
371 | 351 | | |
| |||
381 | 361 | | |
382 | 362 | | |
383 | 363 | | |
384 | | - | |
385 | | - | |
| 364 | + | |
| 365 | + | |
386 | 366 | | |
387 | 367 | | |
388 | 368 | | |
389 | 369 | | |
390 | 370 | | |
391 | 371 | | |
392 | 372 | | |
393 | | - | |
| 373 | + | |
394 | 374 | | |
395 | 375 | | |
396 | 376 | | |
| |||
0 commit comments