Martin Fouilleul
f36e144bc0
start integrating milepost components to orca
2023-04-17 10:55:19 +02:00
Martin Fouilleul
c6e89c1869
[wip] adding smooth live-resizing example
2023-04-11 10:50:14 +02:00
martinfouilleul
cae8666561
[ui, win32] Fixed char input and modifier keys
2023-03-09 18:03:27 +01:00
Martin Fouilleul
56874c99d6
[ui, layout] layout constraint solving, first draft
2023-03-09 12:36:38 +01:00
Martin Fouilleul
1212d714d5
[platform/canvas]
...
- Changed canvas coordinate system to match UI coord system (origin at top left, y axis down)
- Changed mouse coordinate system to match UI and canvas
- No need to pass width/height to ui_begin_frame() anymore
2023-03-08 13:19:18 +01:00
Martin Fouilleul
bfc19665ce
[util]
...
- shorten str8_lit macro to STR8
- use strlen() in STR8 and remove str8_from_cstring(). Usage with string literal seem to always be optimized by compile-time constant, so there's little need for a confusing macro that only works with literals and breaks with pointers.
- replaced str8_unbox() with str8_lp/str8_ip
2023-03-08 11:40:40 +01:00
Martin Fouilleul
1af132352a
[ui, textbox] Scroll text inside text box to always show edit cursor.
2023-03-05 16:35:55 +01:00
Martin Fouilleul
e95efe85e8
[wip, input system] Fixed bug on macOS, where keyUp events are not received when the command modifier key is down and makes a meaningful combination with the pressed key (note this is normal macOS event handling behaviour, but we still want all events to arrive to track key states).
...
Fixed by overloading the sendEvent method of our derived NSApplication class. There we check if modifier is down and send the event.
Note glfw solves that by adding a block handler for the keyUp event with addLocalMonitorForEventsMatchingMask.
2023-03-04 19:24:30 +01:00
martinfouilleul
653ddec978
[win32 surface sharing] win32 surface sharing using window reparenting
2023-03-03 12:41:09 +01:00
Martin Fouilleul
731e5b1ae8
[surface] pull mp_layer into the generic mg_surface_data struct, out of each backend-specific implementation
2023-03-03 11:50:12 +01:00
Martin Fouilleul
94373d12ae
[surface] extracted common layer functionality from osx surfaces. Use layer in platform-agnostic egl surface.
2023-02-21 13:40:30 +01:00
Martin Fouilleul
4306d0a01c
back osx surfaces by CALayer
2023-02-20 16:49:44 +01:00
Martin Fouilleul
2232b647ed
reintroduced GLES backend to osx
2023-02-20 11:05:01 +01:00
Martin Fouilleul
9bf62d2218
re-working graphics surfaces
2022-12-26 18:33:31 +01:00
Martin Fouilleul
db5b4966e9
- Restructure osx version to use mp_app_internal.h/mp_app.c
...
- test new run loop structure on osx
2022-12-24 15:33:32 +01:00
martinfouilleul
72338b1a25
Extracted commonalities from platform specific app backends
2022-12-23 20:46:42 +01:00
martinfouilleul
2421871c3e
windows port initial commit: simple window with GL 4.3 context
2022-12-21 12:03:55 +01:00
Martin Fouilleul
7f62938f84
directory create/remove
2022-08-28 13:49:40 +02:00
Martin Fouilleul
00b282dcd4
Platform file system functions (remove, move, etc)
2022-08-26 14:47:20 +02:00
Martin Fouilleul
884e05abd2
Adding plaform specific move file functions
2022-08-21 19:14:59 +02:00
Martin Fouilleul
1d77a36640
Fixed executable/bundle paths procs
2022-08-21 17:07:54 +02:00
Martin Fouilleul
440668129c
Remote GLES surfaces
2022-08-19 20:55:00 +02:00