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
Garux
4b2f9d6080
* open/save dialogs: use current file path, name, focus it, if present
...
brushexport plugin: case insensitive extension check
2020-03-01 19:38:27 +03:00
Garux
097a662814
* preferences->Grid->Max grid coordinate: how much big grid to render (visual aid for games with small world)
...
known minor issues:
preference change to smaller value doesn't trigger 2d view origin, scale constraints evaluation (ok after doing manually)
preference change during region mode resets grid region size
2020-02-27 21:03:04 +03:00
Garux
05d7db4e3e
don't append excess slash to g_qeglobals.m_userGamePath
2019-09-12 20:21:24 +03:00
Garux
6c9870f941
* workaround gamma bug in 2D views and texture browser with fresh nvidia drivers
2019-08-31 12:22:47 +03:00
Garux
fb773e2bcb
tweak XYWnd code
2019-08-30 00:54:53 +03:00
Garux
1e0f7ba781
tweak VIEWTYPE related code
2019-08-29 00:41:40 +03:00
Garux
446e1148a5
* prevent runouts of 2D views from grid area
2019-08-23 23:38:29 +03:00
Garux
154b5f3619
shorten XYWnd::ZoomIn() / Out logic
...
fix odd wxywnd updates on zoom out of scale bounds
2019-08-23 20:32:28 +03:00
Garux
4e82cdf2f4
shorten code
2019-08-23 19:21:39 +03:00
Garux
da7c72547b
remove MIN use
2019-08-23 14:57:34 +03:00
Garux
49d1c98d81
* disable overlay front buffer rendering hack in 3D camera and completely in 64bit builds
...
* render 2D crosshair, as overlay, update it during manipulations
* fix active 2D view outline rendering in 2x2 layout
2019-08-23 13:06:16 +03:00
Garux
9c908392b9
fix warnings and error
2019-07-06 14:35:20 +03:00
Garux
58eb6e61d2
simplify RENDER_TEXT logic
...
class RenderTextLabel for text rendering
* consider texture alpha channel during rendering of shaders with qer_trans
2019-04-23 11:31:52 +03:00
Garux
213b680a3c
* region XY: only deselect excluded objects for convenience
2019-03-24 23:05:14 +03:00
Garux
b3154d301e
fix shaking XYWnd::XY_DrawAxis position
2019-03-07 23:48:48 +03:00
Garux
cdd1676a59
minus inclusion, a bit of correctness in FBO_fallback
2018-08-29 00:12:00 +03:00
Garux
e7fec22b52
* rewrite and fix 2d background image feature; fix bug on intels (glPushAttrib)
2018-08-28 23:58:02 +03:00
Garux
1f4143ece2
* render size info in 3d camera
2018-08-28 16:06:47 +03:00
Garux
82ff22882d
* render workzone in 3d camera
2018-08-20 23:33:33 +03:00
Garux
601ca95fbf
simplify XYWnd::PaintSizeInfo slightly
2018-08-19 19:57:02 +03:00
Garux
afdf2a76e0
make Scene_BoundsSelected lazily evaluatable
2018-08-19 16:40:48 +03:00
Garux
5c48131eba
* rectangular selector gestures, enabling select, deselect and toggle behaviors
2018-07-23 16:25:32 +03:00
Garux
c3a110bf2c
fix old mipmaps code: tex size could be = 0
2018-07-10 01:13:47 +03:00
Garux
f0057a86f4
* bindable commands FitTextureWidth, FitTextureHeight, FitTextureWidthOnly, FitTextureHeightOnly
2018-06-24 13:14:54 +03:00
Garux
24c02facb2
refactor status text, status labels
2018-05-31 16:16:47 +03:00
Garux
bf6e29d9c6
* remove entity->ungroup command: change classname to worldspawn does equal job; 'create worldspawn' click ungroups selected primitives only
2018-05-24 22:56:46 +03:00
Garux
17a7e2f413
* replace reGroup command with simpler to use Move Primitives to Entity one (select primitives to move, select target entity primitive, go)
...
fix crashes in Entity_ungroupSelected, Entity_connectSelected
rename entity commands uniformly for simpler search in the list
2018-05-24 18:21:38 +03:00
Garux
a42709f80a
reimplement: * ctrl + m1: quick clipper mode (quits one after split done) (in 2d)
2018-05-11 02:27:52 +03:00
Garux
8339ebfb23
remove code
2018-05-09 02:01:21 +03:00
Garux
7088653115
* clipper tool total rewrite; works in 3d viewport
...
* fix: update BrushClipPlane rendering on selection change
* clipper points are draggable right after been dropped
2018-05-09 00:24:02 +03:00
Garux
9114385dda
* fix mixed up ViewFront and ViewSide commands, NextView menu entry typo
2018-04-28 22:10:07 +03:00