thyme icon indicating copy to clipboard operation
thyme copied to clipboard

Add possibility for implementing a renderer?

Open AlexEne opened this issue 5 years ago • 1 comments

Hello,

This crate looks super cool so thanks for that. What do you think about adding the possibility for users of this crate to implement their own Renderer?

One use-case would be people that don't use glium/webgpu.rs (I use gl for my game). I woud build my own GLRenderer, but as it is now, the Renderer trait is impossible to implement as it depends on things that are private like TextureHandle, FontHandle, FontSource, etc.

Thanks, Alex

AlexEne avatar Oct 19 '20 23:10 AlexEne

Ideally I think the work creating a new Renderer would be included in crate. That way others could also use your work. If you did the bulk of the work actually doing the implementation I would be happy to handle updating docs, feature flags, etc.

However, I also don't think there is anything in particular preventing everything being used in Renderer from being made public. I guess this would mostly be a matter of adding docs. I would want to make it clear which types are only of interest for this sort of work vs which are of use for someone just using the crate.

Grokmoo avatar Oct 20 '20 02:10 Grokmoo