Commit Graph

12 Commits

Author SHA1 Message Date
Jan 1a045e5e86
move window creation and management to Lua (#1751)
* remove scaling logic from font code
for the time being its been hardcoded to 1 for the non SDL Renderer basewin setup, so nothing is lost for non MacOS users.
will be revisited in the future when scaling is improved with SDL3 and moved into scripts.

* remove unused window_renderer argument from font functions

* move window logic to lua, pass window via argument

* rename window creation functions `*_create`, `*_destroy`, add real init

* Set active window when processing frame

* get size directly from RenWindow, get active window size from renderer

* correct reverted draw calls

* fix window not reappearing on restart

* add simple logic to persist the core window

* fix style

* add renwindow documentation

* make windows hidden by default again

* reorder ren_update_rects execution, add comment to note future work
2024-06-22 15:01:39 -04:00
Chloé Vulquin 1a5fd97c20
Add system.setenv (#1706)
* add system.setenv

* document system.setenv

* system.setenv: use wide versions of functions on windows

* do not include processenv.h

* system.setenv: report failure, including of utfconv

* system.setenv: free utfconv output
2024-01-23 00:22:44 +01:00
Guldoman dd75e676bc Fix running `core.step` when receiving an event while not waiting
When `time_to_wake` was <= 0, so when a coroutine needed to be executed 
as soon as possible, we didn't check for events, so we only performed a 
`core.step` with the blink timer.
This resulted in jerky reactions to input.
2023-11-29 09:11:39 +08:00
Takase 54c9a76cf2
docs(system): fix missing parameter for system.path_compare (#1566)
* docs(system): fix missing parameter for system.path_compare

* docs(system): fix missing parameter in function prototype
2023-07-23 13:17:45 +02:00
takase1121 696161ed0f
docs(system): make all parameters for set_window_hit_test optional 2023-05-13 18:30:03 +08:00
Jan200101 b137d77183
add touch events 2022-12-20 09:30:58 +01:00
jgmdev 563fa7f29e docs api: minor corrections 2022-11-30 01:11:13 -04:00
Takase 718791857b
update documentation for system (#1210) 2022-11-23 23:38:06 -04:00
Jefferson González ba0a454c97
system: added raise_window() (#1131) 2022-09-29 11:31:55 -04:00
jgmdev aec6806d8f Added system.get_process_id() to api docs. 2022-02-04 15:43:42 -04:00
jgmdev 900e9d1422 Namespaced aliases, virtual classes and added missing returns. 2021-07-09 18:33:25 -04:00
jgmdev bd50401687 Documented with EmmyLua the C API using .lua interface files. 2021-06-25 02:25:05 -04:00