Prateek Machiraju
2c5668af46
[wpigui] Add platform-specific preferences save
2020-12-05 23:23:35 -08:00
Prateek Machiraju
f0528f00e7
[build] CMake: Use project-specific binary and source dirs ( #2886 )
...
This ensures that allwpilib will still build correctly when added as a CMake external project.
2020-11-24 20:25:44 -08:00
Peter Johnson
5e0808c848
[wpigui] Fix Windows cmake build
2020-11-14 21:03:22 -08:00
Peter Johnson
6d22b5a3c6
[wpigui] Render during resize events ( #2857 )
...
This fixes scaling and black window artifacts on Mac.
2020-11-13 21:18:08 -08:00
Prateek Machiraju
5fe8f9017f
[build] Refactor CMake flags ( #2788 )
...
The CMake enable/disable flags as currently structured are a confusing mix of
WITH, WITHOUT, and USE with odd defaults. This changes the flags to consistently
use WITH and default the build options to everything enabled.
2020-10-22 21:52:24 -07:00
Prateek Machiraju
0503225928
[build] CMake: Fix Metal linking on macOS ( #2725 )
2020-09-20 09:31:20 -07:00
Peter Johnson
56972447b2
[wpigui] Only build static for both gradle and cmake ( #2703 )
...
Final use of wpigui is essentially always the static library.
2020-09-13 00:34:28 -07:00
Peter Johnson
1ae8da3b3f
[wpigui] Move portable-file-dialogs.h to wpigui and upgrade it ( #2704 )
...
Also split source and implementation to avoid platform headers in header.
2020-09-12 21:15:02 -07:00
Peter Johnson
183b7c85a1
[wpigui] Handle Direct3D framebuffer resize
2020-08-30 06:48:52 -07:00
Peter Johnson
b83709b269
[wpigui] Add GetDistSquared and MaxFit functions
...
These utility functions were moved from halsim_gui.
2020-08-30 06:48:52 -07:00
Peter Johnson
c699d55175
[wpigui] Build dev executable in cmake build
2020-08-30 06:48:52 -07:00
Peter Johnson
781afaa852
[wpigui] Refactor texture handling
...
The platform-specific code now only has create, update, and delete texture.
Image reading functions have been moved to common code.
Also add pixel data functions and image data functions in addition to image
file loading.
2020-08-30 06:48:52 -07:00
Prateek Machiraju
c2c4090902
[build] Fix CMake imgui and wpigui on macOS ( #2669 )
2020-08-29 20:40:50 -07:00
Peter Johnson
b80fde4388
[wpigui] Add wpigui wrappers for GLFW+imgui
...
These hide the platform specifics behind a common C++ API. Platforms:
- Windows: DirectX 11 (with 10 backwards compatibility)
- Linux: OpenGL 3
- Mac: Metal
2020-08-27 21:05:17 -07:00