mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
swrenderer: rewrite TargetPixelBuffer::draw_texture interface
Instead of using datastructure that are tailored to our line by line renderer and draw functions, use more generic and future proof data that are easier to handle by hardware accelerator, and may be easier to stabilize. The screenshots from the screenshots test have to be re-done because the rounding is different Note: the C++ API DrawTextureArgs is not exposed yet
This commit is contained in:
parent
cf3f1cadd9
commit
c8138ff1db
10 changed files with 562 additions and 598 deletions
|
@ -902,7 +902,7 @@ fn gen_platform(
|
|||
.with_after_include(
|
||||
r"
|
||||
namespace slint::platform { struct Rgb565Pixel; }
|
||||
namespace slint::cbindgen_private { struct WindowProperties; using slint::platform::Rgb565Pixel; using slint::cbindgen_private::types::TexturePixelFormat; }
|
||||
namespace slint::cbindgen_private { struct WindowProperties; using slint::platform::Rgb565Pixel; using slint::cbindgen_private::types::TexturePixelFormat; struct DrawTextureArgs; }
|
||||
",
|
||||
)
|
||||
.generate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue