mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
preprocess the images at compile time
For the MCU port, we need to proccess the image to save them in the binary in a convenient format. This patch start this work by trying to anaylyze what format should an image be using, and saving it as a texture in the binary. The current graphical backend and the C++ frontend are not yet supported
This commit is contained in:
parent
d539d4be79
commit
d1cae710df
21 changed files with 452 additions and 65 deletions
|
@ -212,12 +212,13 @@ fn gen_corelib(root_dir: &Path, include_dir: &Path) -> anyhow::Result<()> {
|
|||
"ImageInner",
|
||||
"Image",
|
||||
"Size",
|
||||
"IntSize",
|
||||
"sixtyfps_image_size",
|
||||
"sixtyfps_image_path",
|
||||
"SharedPixelBuffer",
|
||||
"SharedImageBuffer",
|
||||
],
|
||||
vec![],
|
||||
vec!["Color"],
|
||||
"sixtyfps_image_internal.h",
|
||||
),
|
||||
(
|
||||
|
@ -335,8 +336,8 @@ fn gen_corelib(root_dir: &Path, include_dir: &Path) -> anyhow::Result<()> {
|
|||
.with_include("sixtyfps_sharedvector.h")
|
||||
.with_include("sixtyfps_properties.h")
|
||||
.with_include("sixtyfps_callbacks.h")
|
||||
.with_include("sixtyfps_image.h")
|
||||
.with_include("sixtyfps_color.h")
|
||||
.with_include("sixtyfps_image.h")
|
||||
.with_include("sixtyfps_pathdata.h")
|
||||
.with_include("sixtyfps_brush.h")
|
||||
.with_after_include(format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue