Commit graph

574 commits

Author SHA1 Message Date
Dan Paulat
555fbf479a Don't call glGenTextures every time the texture atlas updates 2023-09-10 21:44:45 -05:00
Dan Paulat
d78e650368 URL query parameters should be pretty decoded, not fully decoded 2023-09-10 21:26:09 -05:00
Dan Paulat
bb5acf3d1e Placefile TimeRange is supported in version 1.5
- Fixes AllisonHouse looping
2023-09-09 22:40:26 -05:00
Dan Paulat
477d9309a9 Fix placefile image/icon vertex count calculation 2023-09-09 22:39:47 -05:00
Dan Paulat
2f41993d7b Support placefile icon modulate with "scwx-ModulateIcon:" statement 2023-09-09 16:00:19 -05:00
Dan Paulat
1a9e87ba07 Don't display a disabled placefile when renaming 2023-09-09 12:20:17 -05:00
Dan Paulat
0badf01a92 Refactor tooltip display 2023-09-09 00:49:23 -05:00
Dan Paulat
9ebc859756 Add cursor position (screen coordinates) to mouse picking 2023-09-08 22:57:30 -05:00
Dan Paulat
f158c4174c Placefile images looping 2023-09-06 22:00:52 -05:00
Dan Paulat
4feff1cb6e Placefile icons looping 2023-09-06 21:51:37 -05:00
Dan Paulat
d160eb6f94 Placefile lines looping 2023-09-05 23:57:33 -05:00
Dan Paulat
5c77bff2c6 Placefile triangle looping 2023-09-05 23:43:35 -05:00
Dan Paulat
1a4b064214 Placefile polygon looping 2023-09-05 23:38:56 -05:00
Dan Paulat
4cc1a2b310 Placefile text animation support 2023-09-04 21:56:59 -05:00
Dan Paulat
e013b9a77f If no images are able to be packed into a texture atlas layer, don't create more 2023-09-04 21:09:49 -05:00
Dan Paulat
94a5898755 Remove debug writing of texture atlas images 2023-09-03 18:59:34 -05:00
Dan Paulat
9766e02f32 Generate multiple texture atlases when first atlas is full 2023-09-02 23:37:45 -05:00
Dan Paulat
7198d1c7af Use GL_TEXTURE_2D_ARRAY to enable multiple texture atlases 2023-09-02 13:44:56 -05:00
Dan Paulat
922e875b07 Placefile icon render error logging 2023-09-02 00:59:25 -05:00
Dan Paulat
00c297094e Placefile image rendering 2023-09-02 00:58:52 -05:00
Dan Paulat
44030fdf87 For placefile icons, only buffer texture data on texture atlas update 2023-09-01 23:35:30 -05:00
Dan Paulat
854d4a43db Placefile thresholds should apply to mouse picking 2023-09-01 22:23:41 -05:00
Dan Paulat
26a326b450 Render placefile triangles 2023-09-01 00:28:32 -05:00
Dan Paulat
0421435e97 Placefile icon mouse picking 2023-08-31 23:34:12 -05:00
Dan Paulat
0b2a118c42 Removing unused hover line parameter, moving mouse picking function to bottom (no change) 2023-08-31 23:33:27 -05:00
Dan Paulat
f9e69d15e4 Add hover text wrap to settings 2023-08-31 21:26:57 -05:00
Dan Paulat
fc6cdc729b If placefile lines overlap, hover text should come from the top line 2023-08-30 22:55:37 -05:00
Dan Paulat
23732cef48 Wrap hover text, default to 80 characters 2023-08-30 22:43:44 -05:00
Dan Paulat
24c919afb6 Search for hovered lines in parallel 2023-08-28 23:51:24 -05:00
Dan Paulat
2c3de1a28f Refactoring map and ImGui functions from hover text 2023-08-28 23:43:07 -05:00
Dan Paulat
5bb5093579 Fixing placefile line hover offsets 2023-08-28 23:09:05 -05:00
Dan Paulat
8dfb9f1105 Placefile line hover in-work 2023-08-28 00:15:57 -05:00
Dan Paulat
37d751774d Move placefile text hover to mouse picking pass 2023-08-27 08:51:04 -05:00
Dan Paulat
38b56be7c4 Mouse picking boilerplate 2023-08-27 00:29:17 -05:00
Dan Paulat
c7487281ad Fixing minor data race and memory issues in Placefile Manager 2023-08-26 21:28:26 -05:00
Dan Paulat
80c307c5fc Enable placefile auto-refresh (no more frequent than every 15 seconds) 2023-08-23 21:39:17 -05:00
Dan Paulat
170e30ca6c Placefile GCC warning cleanup 2023-08-23 07:50:25 -05:00
Dan Paulat
e7da934db1 Need to wait for application initialization before reading placefiles, and emit placefile enabled when adding an enabled URL 2023-08-23 01:14:18 -05:00
Dan Paulat
6f14745a59 Save (works) and reload (doesn't work) placefiles from settings 2023-08-23 01:06:51 -05:00
Dan Paulat
ad5c2b583d Placefile "Remove" functionality 2023-08-22 23:52:55 -05:00
Dan Paulat
9955c4ccbe Clean up placefile shared pointer usage with const references 2023-08-22 21:52:11 -05:00
Dan Paulat
232fafc9fa Interpolate icon coordinates for anti-aliasing
- Still needs a little work, but this looks MUCH better
2023-08-21 22:20:50 -05:00
Dan Paulat
f512df9dd6 Enable anti-aliasing (MSAA x4) 2023-08-21 22:19:42 -05:00
Dan Paulat
c6c64de169 Clean up placefile lines, draw second line underneath for a black border 2023-08-21 22:19:18 -05:00
Dan Paulat
ddf11884a8 Buffer new icons when placefile changes 2023-08-20 22:38:16 -05:00
Dan Paulat
c85e4cef58 Basic placefile lines rendering
Desired to make the line styling look more like warning boxes
2023-08-20 22:37:46 -05:00
Dan Paulat
e3c6850a1e Use LatLongToScreenCoordinate from maplibre utility in DrawItem 2023-08-19 22:53:18 -05:00
Dan Paulat
565734217b Update placefile icon texture coordinates when the texture atlas changes 2023-08-19 22:52:38 -05:00
Dan Paulat
e021484bfb Update placefile icon data outside of render loop, polygon and text cleanup 2023-08-19 22:19:32 -05:00
Dan Paulat
b159540215 Update placefile text data outside of render loop, polygon cleanup 2023-08-19 21:43:57 -05:00