Commit Graph
142 Commits
Author SHA1 Message Date
Garux e1e551ff45 minor tweaks 2025-11-03 00:35:36 +05:00
Garux 5b380fd6fe remove explicit float literal specifiers 2025-11-02 01:27:42 +05:00
Garux 2f17128f06 remove some odd static_cast<> 2025-11-01 20:49:05 +05:00
Garux 17d6588d1a use std::fabs to avoid conversion to double 2025-11-01 19:08:32 +05:00
Garux 00c352b697 remove odd newlines 2025-10-09 02:45:30 +05:00
Garux f7630df89c * del: DeleteSelection3 as most expected deletion bind 2025-10-09 02:05:25 +05:00
Garux 66e15e9ba0 minor tweaks 2025-09-23 02:45:24 +05:00
Garux 2b0136cd57 fix -Wdeprecated-enum-enum-conversion 2025-09-08 00:23:09 +05:00
Garux 5426732f28 minor tweaks 2025-09-02 05:04:33 +05:00
Garux c812caf013 menu * Entity->Reload Entity Definitions 2025-08-05 14:25:29 +05:00
Garux 4a368deef0 minor refactoring 2025-02-04 12:15:12 +05:00
Garux 256bbfd2fa workaround poorly visible white lights on bright grid background (use eclass color)
fixes #178
2025-01-31 08:29:11 +05:00
Garux d107800f6d * Misc->Colors: add Model Browser Background control 2025-01-30 21:29:54 +05:00
Garux 8820a72d05 meaningful naming of color preferences 2025-01-30 20:39:08 +05:00
Garux a3e673302c * Misc->Colors: add CameraIcon, AxisX, AxisY, AxisZ controls 2025-01-29 23:44:11 +05:00
TimePath b65f27b166 Callback: cleanup 2025-01-22 14:57:22 +05:00
TimePath 57c8189225 Callback: remove fixed-arity wrappers 2025-01-22 12:39:14 +05:00
Garux 87464acfee make position of selection position text consistent in 2D view 2024-02-11 01:05:08 +06:00
Garux 1f45694358 Revert "fix build in ubuntu via using deprecated Qt function"
This reverts commit f7977eb851.
2024-02-04 10:08:29 +06:00
Garux f36b8999b0 move f2f inside Renderer_GetStats() 2024-02-03 17:17:51 +06:00
Garux 649fcd4067 use CopiedString.empty() 2024-02-02 01:04:42 +06:00
Garux df02774ff5 tweak StringOutputStream use
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
2024-01-29 16:54:08 +06:00
Garux 27dff0c888 fix mouse chasing in 2x2 & floating layouts
QTimer was getting new connections added w/o removing existing ones; fix the same in FreezePointer
zero check is seemingly not needed now; zeros spam was caused by this QTimer misuse
2024-01-09 04:12:08 +06:00
Garux bb4c510c4c show coordinates by default 2023-08-21 15:42:22 +06:00
Garux 52a8b41229 * 2D view new brush creation: do not stumble on one dimenstion resizing, when the other is 0
* 2D view new brush creation: preserve brush start world coordinate, when viewpoint is changed in the process
2022-12-04 02:18:31 +06:00
Garux 15ca706037 support DPI scaling by viewports rendering and input in certain scenarios
e.g. in mac, kde, wayland or after QT_SCALE_FACTOR=1.25 ./install/radiant
2022-11-07 19:02:40 +03:00
Garux f7977eb851 fix build in ubuntu via using deprecated Qt function 2022-10-27 10:04:56 +03:00
Garux 9d3d204018 Qt 2022-10-27 09:10:31 +03:00
Garux d3e48d8c31 * render Q3 shader based skyboxes
logic: load 6 skybox textures when shader gets used by scene, don't unload dynamically, just on 'flush'
texture browser only uses normal preview image and doesn't trigger potentially heavy box loading
also fix R_ResampleTexture for [2+x upscaling
2022-07-18 10:05:19 +03:00
Garux 53382854f9 * view.show.blocks (_blocksize display): support q3map2 way of handling (3 values input, zero values, Z splits) 2021-11-07 08:28:41 +03:00
Garux 4016d64859 use std::chrono::steady_clock timer 2021-11-03 19:43:44 +03:00
Garux da98e8fde3 various code cleanups 2021-10-30 16:04:31 +03:00
Garux 0c390241c8 fix formatting 2021-10-26 18:16:24 +03:00
Garux d812cbd4d4 replace ArrayRange by tcb::span (reproduction of std::span) 2021-10-24 08:32:10 +03:00
Garux 02a3b9c026 use ostream_write( CopiedString ) 2021-09-18 15:30:11 +03:00
Garux 2222100316 indent classes, align by spaces 2021-03-24 00:25:15 +03:00
Garux 02874bebee shorten some StringOutputStream uses 2021-02-08 13:48:49 +03:00
Garux 8b204ac054 add and use class PathExtensionless 2021-01-21 15:15:07 +03:00
Garux 7fc079c658 merge duplicated path_ functions
handle backslashes, which is out of convention, but safer, as practically paths may contain them in many spots
2021-01-21 08:53:34 +03:00
Garux 5977a04550 * unzoom from mouse pointer in 2D and 3D 2020-06-13 20:58:10 +03:00
Garux 62603d25fb don't check equality to gboolean FALSE and TRUE 2020-05-21 16:27:31 +03:00
Garux 70cf8c4bdd gtk_widget_ref/gtk_widget_unref -> g_object_ref/g_object_unref 2020-05-21 16:27:28 +03:00
Garux 0140da6e72 only #include <gtk/gtk.h> 2020-05-21 16:27:17 +03:00
Garux 4f8e6e7ee5 fix the rest of errors with CFLAGS+="-DGSEAL_ENABLE" except accel_label->accel_string required hack 2020-05-21 16:27:14 +03:00
Garux ff33df7d45 replace GTK_WIDGET_VISIBLE -> gtk_widget_get_visible() 2020-05-19 23:46:54 +03:00
Garux 112f66fb06 remove deprecated GTK_WIDGET_SET_FLAGS GTK_WIDGET_UNSET_FLAGS use 2020-05-19 22:08:00 +03:00
Garux e1a145c234 remove excess (GdkModifierType) casts 2020-05-19 21:40:52 +03:00
Garux 0831e0966d Replace GDK_<keyname> with GDK_KEY_<keyname> 2020-05-19 21:15:11 +03:00
Garux a0a47640b0 * new rendering system for volatile text
(symbols rendered to atlas texture)
deliver position via glRasterPos + glGet GL_CURRENT_RASTER_POSITION to avoid adding calculations of screen coords in many spots
solves problem: pango 1.44 switch freetype->harfbuzz = bitmap fonts aren't available, in particular no gdk_gl_font_use_pango_font()
text is rendered from font bottom (was from baseline)(latter is wanted less often)
wgl bitmap<->pango sizes do not match, thus realign all text positions, increase default font size
make 2D axes labels, view type text, sizing info adaptive to font size
#24
fixes #42
2020-05-14 07:51:34 +03:00
Garux 7ae79b263d minor refactoring 2020-04-28 08:30:25 +03:00