Commit graph

147 commits

Author SHA1 Message Date
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
Dan Paulat
689f3dc464 Change text background to draw item 2021-12-18 22:45:29 -06:00
Dan Paulat
d30b6d4011 Implement active box using new draw item on draw layers 2021-12-18 21:43:15 -06:00
Dan Paulat
f7f86ec24a Adding map context to simplify parameter passing 2021-11-27 19:00:49 -06:00
Dan Paulat
5a97d99a34 Namespace cleanup 2021-08-08 08:24:40 -05:00
Dan Paulat
89ca94eda8 Text alignment and point size 2021-08-07 08:12:14 -05:00
Dan Paulat
ee0f3b35bf Extracting FontBuffer logic from Font 2021-08-07 01:03:41 -05:00
Dan Paulat
289ed430c7 Scalable fonts using freetype-gl 2021-08-06 22:16:34 -05:00
Dan Paulat
82b265b6d4 Create a text shader and font utility 2021-07-31 22:09:00 -05:00