Add support for importing OpenGL textures into Slint

This is the initial API for Slint to borrow OpenGL textures from the
application for rendering.
This commit is contained in:
Simon Hausmann 2023-05-10 16:17:18 +02:00 committed by Simon Hausmann
parent 9d2cc6ee5e
commit eadfec64a3
16 changed files with 879 additions and 1 deletions

View file

@ -245,6 +245,8 @@ compile_error!(
pub use slint_macros::slint;
pub use i_slint_core::api::*;
#[cfg(not(target_arch = "wasm32"))]
pub use i_slint_core::graphics::BorrowedOpenGLTexture;
pub use i_slint_core::graphics::{
Brush, Color, Image, LoadImageError, Rgb8Pixel, Rgba8Pixel, RgbaColor, SharedPixelBuffer,
};