3 ms·
Funny how i have visited almost all of your links before. Do I understand it correctly that rxi/lite is just using plain SDL2 underneath to render the UI, do in
by fileeditview 6y ago
Funny how i have visited almost all of your links before. Do I understand it correctly that rxi/lite is just using plain SDL2 underneath to render the UI, do input processing, windowing,..? They must have had a lot of work implementing all of that. I always wondered why there are no well known ui frameworks on top of SDL.
- pqb 6y agoYes, that's right. To be honest, I spent some time already to inspect and analyze its code, because I found it as a nice example to learn Rust by rewriting this project. rxi/lite have tens of functions in C to provide operation of file-system, implement fuzzy-finder or simple rendering calls for rectangles. Rest of code is written in Lua that shares a lot of signature-compatible functions with Sublime Text API. There is only Lua, STB (stb_truetype) and SDL2. Also compilation script is basic shell script [0]. It is also worth noting there is interesting contribution to provide sub-pixel rendering [1] (now, a fork [2]) which includes usage of libagg [3]. [0]: https://github.com/rxi/lite/blob/master/build.sh https://github.com/rxi/lite/blob/master/build.sh [1]: https://github.com/rxi/lite/issues/145#issuecomment-641554095 https://github.com/rxi/lite/issues/145#issuecomment-64155409... [2]: https://github.com/franko/lite-xl https://github.com/franko/lite-xl [3]: http://antigrain.com/ http://antigrain.com/