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
Dan Paulat
5ae098daff
Geo line requires two projection matrices
2022-10-03 01:03:27 -05:00
Dan Paulat
4aad9fd3d4
Use map projection with geo line
2022-10-03 00:40:59 -05:00
Dan Paulat
ca9331cf7c
Add shader programs to Geo Line class
2022-10-03 00:21:31 -05:00
Dan Paulat
224d36bae5
Define draw item shaders in draw items, not the generic draw layer
2022-10-03 00:13:01 -05:00
Dan Paulat
d84a618d3d
Add GlContext base class for MapContext
2022-10-02 23:44:09 -05:00
Dan Paulat
a45e996872
Create shader programs through map context in order to cache programs through re-initialization
2022-10-02 23:35:25 -05:00
Dan Paulat
8d2fcf3802
Shader program cleanup
2022-10-02 22:28:56 -05:00
Dan Paulat
7a07e0f698
Untested geo line implementation without texture
2022-09-24 16:12:30 -05:00
Dan Paulat
ff58f5bcf6
Fixing warnings in scwx-qt
2022-06-11 07:42:18 -05:00
Dan Paulat
e6bddc79db
Boost.Log -> spdlog - qt/map
2022-04-18 09:09:02 -05:00
Dan Paulat
15bc3afc87
Boost.Log -> spdlog - config, gl, manager
2022-04-18 08:39:24 -05:00