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

Which backend can be used to draw image on screen #75

Closed
killkrt opened this issue Aug 16, 2019 · 6 comments
Closed

Which backend can be used to draw image on screen #75

killkrt opened this issue Aug 16, 2019 · 6 comments

Comments

@killkrt
Copy link

killkrt commented Aug 16, 2019

Sorry to open an issue that is not a real issue, actually is a question, but I was not able to find a clear answer in the documentation or examples.

I am trying to find a good pure Rust library to write a simple UI toolkit for a little game, and I was looking for something fast, with few dependencies and with vector graphics support (I would like to write a toolkit that easy scale on different DPI monitors), so raqote seems to be a good candidate!

My questions are:

  • Which are the supported backend to render a DrawTarget (or maybe Image) to a window? GFX? Piston Graphics?
  • Is raqote using any hardware acceleration (or multi-core) in order to speed the rendering process?

Thank you.

@jrmuizel
Copy link
Owner

A quick reply for now: Drawing to a window isn't that well supported/documented yet.

In the mean time you can take a look at #67 and https://github.com/cbrewster/raqote-win.

Raqote does not use any hardware acceleration (and has no current plans to). It also doesn't use multiple threads, though this is something that may happen in the future.

@killkrt
Copy link
Author

killkrt commented Aug 18, 2019

Thank you for your reply.

So maybe, at this time, raqote is not yet ready to be used as fast realtime 2D vector graphics library.
Anyway I will keep an eye on it, it seems promising!

@killkrt killkrt closed this as completed Aug 18, 2019
@parasyte
Copy link
Contributor

parasyte commented Sep 19, 2020

FWIW, I added an example that uses raqote to animate some vectors with pixels: https://github.com/parasyte/pixels/tree/master/examples/raqote-winit The example uses winit for window handling, input, and event loop.

@tiye
Copy link

tiye commented Jun 11, 2021

@parasyte tried the demo and worked, but when I tried it with my code copy, it failed. so weird, maybe dependency problem somewhere since not all deps are up-to-date...

@parasyte
Copy link
Contributor

@jiyinyiyong I may be able to help you better if you open a ticket on the pixels issue tracker. The example in the main branch has dependencies pretty much up to date.

@tiye
Copy link

tiye commented Jun 12, 2021

@parasyte tried again with a fresh new project and it works. last time I tried it inside an existing project of mine, but I didn't preserve the code. probably trying later. I'll report to pixels if I could reproduce.

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

No branches or pull requests

4 participants