Commit graph

119 commits

Author SHA1 Message Date
Dan Paulat
bbaae5d1ba Hold a reference to current images in the placefile manager, removing old, unused images 2023-09-17 00:28:54 -05:00
Dan Paulat
da267c4c22 Load texture atlas images into shared pointers 2023-09-16 23:18:19 -05:00
Dan Paulat
23740d2601 Add tooltip method to settings 2023-09-14 23:53:11 -05:00
Dan Paulat
9ea3ed47a6 Use unit library to perform font size conversions 2023-09-12 23:55:00 -05:00
Dan Paulat
10a1755056 Tooltip styling updates 2023-09-12 22:58:17 -05:00
Dan Paulat
e14db6cd21 Add tooltip display methods 2023-09-11 00:24:53 -05:00
Dan Paulat
555fbf479a Don't call glGenTextures every time the texture atlas updates 2023-09-10 21:44:45 -05:00
Dan Paulat
0badf01a92 Refactor tooltip display 2023-09-09 00:49:23 -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
f9e69d15e4 Add hover text wrap to settings 2023-08-31 21:26:57 -05:00
Dan Paulat
23732cef48 Wrap hover text, default to 80 characters 2023-08-30 22:43:44 -05:00
Dan Paulat
2c3de1a28f Refactoring map and ImGui functions from hover text 2023-08-28 23:43:07 -05:00
Dan Paulat
8dfb9f1105 Placefile line hover in-work 2023-08-28 00:15:57 -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
35b90fa98d Replace boost/units in favor of units library 2023-08-18 19:03:46 -05:00
Dan Paulat
5e1b1a5ba6 Map distance helper function 2023-08-16 00:15:08 -05:00
Dan Paulat
4fcfb54890 Textures may change between loads, don't skip reloading 2023-08-07 22:57:26 -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
f0bdeb09b1 Replace black with transparent, increase atlas size 2023-08-02 00:04:00 -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
4c093d65f6 Populate cached images into the texture atlas 2023-07-30 22:31:05 -05:00
Dan Paulat
0f9fbdbf63 Load placefile icons into texture atlas cache 2023-07-30 00:40:05 -05:00
Dan Paulat
8be32a8998 Render hover text in monospace
- TODO: Configure separate font size for monospace
2023-07-21 22:34:19 -05:00
Dan Paulat
1c39464228 Extract utility geographic and maplibre functions 2023-07-20 23:12:36 -05:00
Dan Paulat
68a6d5f97f Ignoring additional warnings required for MSVC 14.36 2023-06-16 23:34:43 -05:00
Dan Paulat
5a078800e4 QDate::toStdSysDays is needlessly behind __cpp_lib_chrono >= 201907L 2023-05-26 22:42:06 -05:00
Dan Paulat
023688b746 General GCC compilation fixes 2023-04-17 18:37:23 -05:00
Dan Paulat
cdd4ced28e Warning pragmas 2023-04-17 18:34:04 -05:00
Dan Paulat
d8b669262c Missing includes 2023-04-17 18:31:23 -05:00
Dan Paulat
31db9a4315 GCC doesn't implement <format> yet, use fmt 2023-04-17 18:24:50 -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
1d597eb120 Enable loading color palettes from embedded Qt resources 2023-01-02 00:23:46 -06:00
Dan Paulat
ad6eb61898 Initial QFileInputStream implementation 2023-01-01 21:44:03 -06:00
Dan Paulat
08965aa7f3 Initial QFileBuffer implementation 2023-01-01 01:33:24 -06:00
Dan Paulat
14f825d896 Draw alert boxes using colors from settings 2022-12-25 21:55:27 -06:00
Dan Paulat
2b55d0cd69 Adding alert colors to settings 2022-12-25 00:57:57 -06:00
Dan Paulat
0c1706ce6f Removing unused JSON functionality 2022-12-23 00:14:15 -06:00
Dan Paulat
7522162095 Return SettingsVariable objects instead of values 2022-12-19 00:32:35 -06:00
Dan Paulat
891b6c839f Inheriting MapSettings and PaletteSettings from SettingsCategory, updating SettingsManager initialization 2022-12-18 08:45:05 -06:00
Dan Paulat
ca044850fa Apply settings to font loading 2022-11-30 00:30:05 -06:00
Dan Paulat
81f1beb8d8 Adding settings for debug enabled and font sizes 2022-11-30 00:22:26 -06:00
Dan Paulat
5d9bf67fcc Add fonts to ImGui 2022-11-29 10:13:47 -06:00
Dan Paulat
976617d342 Don't use std::move when returning a local variable, allow NRVO 2022-10-08 00:03:47 -05:00
Dan Paulat
d3f7347be0 Texture atlas should fill unused pixels with magenta 2022-10-06 00:32:51 -05:00
Dan Paulat
e4629eb9ef Expose texture attributes in interface 2022-10-05 23:10:23 -05:00
Dan Paulat
17192470ec Initial texture atlas creation implementation 2022-10-05 22:41:39 -05:00