Commit graph

761 commits

Author SHA1 Message Date
Yousef Khadadeh
0e732bea40 Fixed rich text modifiers for textbox edit 2026-03-07 13:12:11 +03:00
Yousef Khadadeh
783f645699 Edit tool works with events 2026-03-07 13:00:10 +03:00
Yousef Khadadeh
32b84d0813 Fix zoom with touch breaking when canvas is scaled up 2026-03-06 14:12:13 +03:00
Yousef Khadadeh
23347a5ee6 Using text for number fields to workaround bug on android 2026-03-05 23:53:05 +03:00
Yousef Khadadeh
f3671e667d Send textbox rectangle and textbox type to SDL 2026-03-05 23:34:30 +03:00
Yousef Khadadeh
d38156ec26 Touch events are handled differently in GUI 2026-03-05 21:09:30 +03:00
Yousef Khadadeh
fe37c3348b Screenshot tool and saving/reading files works on android 2026-03-05 15:03:05 +03:00
Yousef Khadadeh
19983c7b1c Tool cursor not drawn on touch devices, and fixed translating objects with touch 2026-03-05 12:36:34 +03:00
Yousef Khadadeh
8b46c31bd7 Added 2 finger camera pan, zoom, and rotate 2026-03-05 12:03:10 +03:00
Yousef Khadadeh
ac911f3f87 Rename SDL3 lib file 2026-03-04 13:56:21 +03:00
Yousef Khadadeh
167108db7d GUI now (mostly) reacts on tap (left click release) instead of left clicks 2026-03-04 13:50:15 +03:00
Yousef Khadadeh
911b7bc91d GUI now collects events on its own 2026-03-04 12:15:24 +03:00
Yousef Khadadeh
a7030059a4 Grid modify tool and drag drop work with events 2026-03-04 11:03:05 +03:00
Yousef Khadadeh
e39c94ff19 Brush tool works with events 2026-03-03 22:31:48 +03:00
Yousef Khadadeh
4814780bec Pen events passed to tools 2026-03-03 16:01:21 +03:00
Yousef Khadadeh
5b6316bd15 Start using pen input events 2026-03-03 14:59:18 +03:00
Yousef Khadadeh
451bf9b6b2 Screenshot tool works with events 2026-03-03 13:10:27 +03:00
Yousef Khadadeh
017102a2b1 Fixed clay ID error 2026-03-03 12:11:11 +03:00
Yousef Khadadeh
6effc6de56 Eraser tool works with events 2026-03-03 12:06:48 +03:00
Yousef Khadadeh
803eb2c08a Use info from events, and textbox place tool works with events 2026-03-03 10:18:47 +03:00
Yousef Khadadeh
3dc2455f13 Ellipse, rectangle, and eye dropper tools use events 2026-03-03 09:54:43 +03:00
Yousef Khadadeh
3016549f57 Removing SDL3 precompilied library 2026-03-02 23:42:08 +03:00
Yousef Khadadeh
e6c87ecf87 DrawCamera works on events 2026-03-02 23:09:48 +03:00
Yousef Khadadeh
a53fd7c1dd Line Draw tool works with events 2026-03-02 16:47:09 +03:00
Yousef Khadadeh
eac8610456 Switching to hardcoded callback functions. Selection tools are working with callbacks 2026-03-02 16:36:34 +03:00
Yousef Khadadeh
109fd96b67 Started work on mouse callbacks 2026-03-01 17:28:43 +03:00
Yousef Khadadeh
e1e93b8a31 Setting text box input no longer involves repeatedly setting it each frame 2026-03-01 12:09:27 +03:00
Yousef Khadadeh
8c11141ac5 Start switching to callbacks on SDL input events 2026-02-28 22:47:35 +03:00
Yousef Khadadeh
ae88521b32 Start work on touchscreen support 2026-02-27 16:16:51 +03:00
Yousef Khadadeh
815737ce3e Get android release build working 2026-02-26 20:58:56 +03:00
Yousef Khadadeh
1c81296e91 Remove SDL android project files to fix compile errors 2026-02-26 20:34:25 +03:00
Yousef Khadadeh
f225c421fc Set an update sleep duration to save battery 2026-02-25 18:57:55 +03:00
Yousef Khadadeh
711eb48f15 Dont block on SwapBuffer for Vsync 2026-02-25 15:25:00 +03:00
Yousef Khadadeh
3e69d2af56 Fixed drawData mistake 2026-02-25 13:29:46 +03:00
Yousef Khadadeh
23dbfcfede DrawData is passed to main draw function 2026-02-25 13:26:35 +03:00
Yousef Khadadeh
8ce9bd8aa3 Divide window safe area by gui scale 2026-02-24 21:25:35 +03:00
Yousef Khadadeh
b8b00145af GUI rendered in usable window area, and multiplayer working on android 2026-02-24 21:13:34 +03:00
Yousef Khadadeh
18b73a5926 Remove testing println statements 2026-02-24 17:25:13 +03:00
Yousef Khadadeh
ab13ccd595 Starting work on Android port 2026-02-24 17:21:41 +03:00
Yousef Khadadeh
5d1b7678f0 Add automatically generated mipmaps to smallest mipmap level to improve tiny image quality 2026-02-20 00:01:28 +03:00
Yousef Khadadeh
e20ae17759 Improve scaled down image quality 2026-02-19 23:50:03 +03:00
Yousef Khadadeh
1f80107005 Clear image cache when tabbing out of canvas 2026-02-19 22:29:24 +03:00
Yousef Khadadeh
c7024578af Small optimizations to image resource display calculations 2026-02-19 22:02:18 +03:00
Yousef Khadadeh
fbc079154e Remove unneeded variable 2026-02-19 16:13:48 +03:00
Yousef Khadadeh
fec602e46a New ImageResourceDisplay implementation that should decrease RAM usage 2026-02-19 15:21:47 +03:00
Yousef Khadadeh
a69d9e3c6c Erase cached mipmap levels after a long time of not being used 2026-02-17 14:41:08 +03:00
Yousef Khadadeh
462443ed0a Removed selection glow code, and moved surface creation code to function 2026-02-16 21:27:42 +03:00
Yousef Khadadeh
9216be3b7c Use manual mipmaps to improve image draw performance 2026-02-16 18:19:17 +03:00
Yousef Khadadeh
ddface1de6 Reset default smoothness 2026-02-12 16:18:46 +03:00
Yousef Khadadeh
52dd4c112c Decrease default smoothness for brush strokes 2026-02-12 16:17:09 +03:00