Commit graph

27 commits

Author SHA1 Message Date
Dan Paulat
a2f2181f1b Add geographic coordinates to mouse picking functions 2024-01-02 00:45:15 -06:00
Dan Paulat
8326b2f2bf Fix backslash interpretation in IconFile and Image statements 2023-10-09 23:36:21 -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
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
4feff1cb6e Placefile icons looping 2023-09-06 21:51:37 -05:00
Dan Paulat
4cc1a2b310 Placefile text animation support 2023-09-04 21:56:59 -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
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
0421435e97 Placefile icon mouse picking 2023-08-31 23:34:12 -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
ddf11884a8 Buffer new icons when placefile changes 2023-08-20 22:38:16 -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
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
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
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