top | item 41737487

(no title)

cxreiff | 1 year ago

Bevy lets you create a custom render pipeline, so you just have to get the rendered image and send it to ratatui instead of a window. I handled that part in bevy_ratatui_render (https://github.com/cxreiff/bevy_ratatui_render) which just gives you a bevy Camera and a ratatui Widget that draws the latest frame.

discuss

order

ladyanita22|1 year ago

I was wondering how did you manage to translate WGPU code into Ratatui code, but I guess there was no WGPU in the first place. Actually, it is kinda cool that you can switch renderers in Bevy, meaning you can take advantage of whatever API you may want.

littlestymaar|1 year ago

The cool thing with Bevy is that every built-in feature is in fact a `plugin` and can be disabled or replaced with a custom implementation.

Tiny glade[1], the first commercial success of a Bevy game, use Bevy but with their own renderer (IIRC they also replace other parts of Bevy but I don't remember which).

[1]: https://store.steampowered.com/app/2198150/Tiny_Glade/