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
fc6cdc729b
If placefile lines overlap, hover text should come from the top line
2023-08-30 22:55:37 -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
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
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
Dan Paulat
8f2b87790a
Update placefile polygon data outside of render loop
2023-08-19 18:30:49 -05:00
Dan Paulat
a4027ba120
Refactor placefile text into its own draw item
2023-08-19 10:05:26 -05:00
Dan Paulat
35b90fa98d
Replace boost/units in favor of units library
2023-08-18 19:03:46 -05:00
Dan Paulat
12833202b7
Use geometry shaders for icon and polygon thresholds, fix threshold method to map distance for placefile text
2023-08-18 00:42:55 -05:00
Dan Paulat
2113cb9ba8
Additional support for loading geometry shaders (and other shaders)
2023-08-16 00:13:09 -05:00
Dan Paulat
913151e063
Add support for loading geometry shaders (and other shaders)
2023-08-12 00:36:07 -05:00
Dan Paulat
0c5a504ad5
Placefile polygon Linux fixes
2023-08-11 08:36:08 -05:00
Dan Paulat
cdef5a9938
Placefile polygon rendering
2023-08-11 00:45:42 -05:00
Dan Paulat
6c0b62709f
Rotate placefile icons
2023-08-05 01:28:34 -05:00
Dan Paulat
e66c202edf
Fix x/y pixel offsets of placefile icons
2023-08-05 00:44:37 -05:00
Dan Paulat
0be94c4de3
Buffer texture atlas on more than the first context after change
...
- Icons now work on all maps
2023-08-02 20:49:48 -05:00
Dan Paulat
a536d46bb4
Don't interpolate placefile icon pixels
...
This is a 90% solution to icon placement/blurring. The pixel coordinates
will need rounded in the vertex shader once the MVP and map matrices are
broken out for proper rotation.
2023-08-02 20:22:14 -05:00
Dan Paulat
b735589e9a
Fix placefile icon orientation
2023-08-02 00:23:52 -05:00
Dan Paulat
bc1bf8cef6
Fix rendering of placefile icons, now works on one map
2023-08-02 00:02:33 -05:00
Dan Paulat
f074e487de
First attempt at rendering placefile icons, does not work yet
2023-08-01 00:30:40 -05:00
Dan Paulat
4c093d65f6
Populate cached images into the texture atlas
2023-07-30 22:31:05 -05:00
Dan Paulat
8e8567a48f
Updating MapLibre Native to the latest version (2023-04-28)
2023-04-29 01:44:23 -05:00
Dan Paulat
023688b746
General GCC compilation fixes
2023-04-17 18:37:23 -05:00
Dan Paulat
509fc76653
Guard pragma warning statements with ifdef msvc
2023-04-16 01:02:56 -05:00
Dan Paulat
90c8c0183a
USe a common default geodesic object instead of duplicate copies.
...
All used functions are constant, and don't require unique instantiations for thread safety.
2023-02-19 15:16:34 -06:00
Dan Paulat
2ac141ea1a
Update to latest maplibre-gl-native, including rename from QMapboxGL to QMapLibreGL
2022-10-20 22:54:53 -05:00
Dan Paulat
aadf948656
Fixing geo line angle
2022-10-17 22:24:41 -05:00
Dan Paulat
507b2c4f59
Removing unused texture loading routines from GL context
2022-10-06 00:40:36 -05:00
Dan Paulat
0fa6ef01f0
Move texture binding to layer, and reference atlas coordinates in draw item
2022-10-06 00:35:22 -05:00
Dan Paulat
fb37139073
Manage texture atlas in GL context
2022-10-06 00:32:15 -05:00
Dan Paulat
49eba4e839
Fixing MSVC compile error due to warning in boost::gil
2022-10-04 23:33:33 -05:00
Dan Paulat
4b1d63ea62
Adding default texture to line, fixing texture coordinates
2022-10-04 23:16:57 -05:00
Dan Paulat
ab50f0b9a2
Add texture loading in GlContext
2022-10-04 23:15:52 -05:00