1a045e5e86
* 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 |
||
---|---|---|
.. | ||
api | ||
README.md |
README.md
Interface Files
This directory holds the documentation for the Lua C API that is hidden in the C source files of Lite. The idea of these files is to serve you as a quick reference about the functionality that is not written in Lua it self. Please note that they don't have any real code, just metadata or annotations.
Also, these interfaces are using EmmyLua annotation syntax which is supported by LSP servers like the Sumneko Lua LSP. This means that you can get nice code autocompletion and descriptions of Lite core libraries and symbols when developing plugins or adding any options to your User Module File (init.lua).
The Base Core
Most of the code that is written in Lua for Lite is powered by the exposed C API in the four namespaces that follow:
Finally, all global variables are documented in the file named globals.lua.