Currently I am working with lua on embedded platfrom, and I faced the next problem - I need some open-source graphic library written in lua. Is there any existed library which match these requirments? Thank you on advance.
相关问题
- How to get the return code of a shell script in lu
- Accessing Light userdata in Lua
- Disabling interrupt in interrupt handler STM32F407
- Serving static html files using DefaultServlet on
- Wireshark dissector that works with tls/ssl
相关文章
- infinite abort() in a backrace of a c++ program co
- Difference between arm-none-eabi and arm-linux-gnu
- Lua Integer type
- Decode Base64 string to byte array
- First character uppercase Lua
- Problem with time() function in embedded applicati
- How can I make my n-resize display correctly?
- torch / lua: retrieving n-best subset from Tensor
While it is not clear what your requirements are (except for open source, and graphics), you could take a look at luagd.
Such a thing not only does not exist, it is not actually possible to write one.
The Lua runtime does not provide access to the low-level platform-specific details that would be required to actually display graphics in Lua itself. You could code graphics routines in Lua, but it would never be able to draw to an actual screen. It could draw to a file or something of that nature. But not the screen.
This means that you are going to have to use some kind of non-Lua library to at least display the image. However, you won't find one of those either, because nobody would bother to write a graphics library in Lua itself. There's just no point; it would be terribly slow. It would be so much easier to just bind Cairo or OpenGL or some other native code library to Lua. You get all the same power and flexibility that you would out of a native Lua library, but you also get performance.