-
Is there a way to render the slint ui directly on linux's /dev/fb0 while using rust's std ? I looked at the documentation, but couldn't find a tutorial or demo . please help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Not out of the box ( #712 ) But this is possible if you use a custom platform and the software renderer. (unfortunately not the GL renderer at this point) The documentation on how to create a custom platform is here: https://docs.rs/slint/latest/slint/docs/mcu/index.html This would make for a good demo actually. |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? The example provided above works for me as well, but it sounds like quite experimental rather than a production ready solution. Please apologize if this should be completely wrong, I'm still trying to pull all pieces of the puzzle together with linux-fb, skia, femto, winit, wayland, qt, openGL, kms, drm and so on and so forth... Thanks! |
Beta Was this translation helpful? Give feedback.
Not out of the box ( #712 )
But this is possible if you use a custom platform and the software renderer. (unfortunately not the GL renderer at this point)
The documentation on how to create a custom platform is here: https://docs.rs/slint/latest/slint/docs/mcu/index.html
This talks about no_std environment, but you can also use it with std environment (with the std feature of slint)
You'll have to use some library to draw the image on the frame buffer. Maybe there is a crate for that.
This would make for a good demo actually.