Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to provide custom texture (similar to QSGTextureProvider) #977

Closed
oosavu opened this issue Feb 21, 2022 · 3 comments · Fixed by #2767
Closed

Ability to provide custom texture (similar to QSGTextureProvider) #977

oosavu opened this issue Feb 21, 2022 · 3 comments · Fixed by #2767
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@oosavu
Copy link

oosavu commented Feb 21, 2022

Hi!
I'm looking for a rust GUI library for my project. One of the critical requirements for me is a "custom render to texture" ability.
Not a using slint as overlay for my opengl scene but an ability to insert my dynamically changed texture to the slint scene graph.
Similar class from Qt world: https://doc.qt.io/qt-5/qsgtextureprovider.html

Is it possible in slint? Thanks!

@tronical tronical self-assigned this Feb 21, 2022
@tronical tronical added the enhancement New feature or request label Feb 21, 2022
@tronical
Copy link
Member

That is a feature I've started working on. I've got a proof-of-concept that works in conjunction with femtovg/femtovg#79 . I think initially this would be limited to (A)RGB 8bpp textures, but it would make sense to add support for more formats in the future (to be done in femtovg's shaders).

@oosavu
Copy link
Author

oosavu commented Feb 21, 2022

Thanks, tronikal! ARGB will be enough for my purposes.
Will this feature be added within a few month?
Anyway I wish this project big future!

@tronical
Copy link
Member

Thanks, tronikal! ARGB will be enough for my purposes.

Good.

Will this feature be added within a few month?

Yes.

Anyway I wish this project big future!

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants