Commit Graph
13 Commits
Author SHA1 Message Date
meehl b48edb72e1 Clean up return values of some API functions 2026-08-12 21:05:34 +02:00
meehl e43da1b9e8 Lint 2026-08-12 20:46:43 +02:00
meehl 99fc9f608e Improve performance of image handle access in API draw calls.
Use raw Lua C API to store image handles in Lua userdata instead
of using `mlua::UserData`. `mlua` wraps UserData in a special way
to maintain Rust safety guarantees which prevents direct access
of the underlying data from a raw Lua state.
The `DrawImage` and `DrawImageQuad` API calls used a workaround to
access the underlying image handle before which added significant
overhead. The overhead is eliminated by manually constructing the
userdata metatable for `ImageHandle` at the cost of weaker safety
guarantees.
2026-08-12 18:03:41 +02:00
AiSatan 8034eef8c7 fix removing build directory 2026-03-11 16:48:11 +01:00
AiSatan 913d2127d8 Fix to enable "Save changes" popup 2026-03-09 14:10:30 +01:00
meehl 2739c45181 Use better name for context 2025-11-02 09:53:37 +01:00
meehl 64960b8c3c Add stubs for DPI scale overrides 2025-10-31 00:17:50 +01:00
meehl 6e35123b5d Add stub for TakeScreenshot api function 2025-10-28 23:15:24 +01:00
meehl 38e3a39782 Implement missing SetForeground api function. Fixes #2 2025-10-28 23:12:09 +01:00
meehl 3352152ef6 Handle dpi awareness api feature flag 2025-10-28 16:54:44 +01:00
meehl d8e52218f8 Remove global context 2025-10-27 23:10:11 +01:00
meehl e52aed0890 Use right buffer type for inflate and deflate. fixes #1
Using a String for zlib decoder/encoder output doesn't work because
it can only hold valid utf8. Read into a Vec<u8> instead and construct
a lua string from it.
2025-10-19 20:15:01 +02:00
meehl 6e1613f73f Initial commit 2025-10-16 17:00:59 +02:00