17cupsofcoffee / tetra

🎮 A simple 2D game framework written in Rust
MIT License
909 stars 63 forks source link

ScreenScaler cannot use multisampling or stencil buffers #269

Closed 17cupsofcoffee closed 1 year ago

17cupsofcoffee commented 3 years ago

Summary: ScreenScaler currently can't access the multisampling/stencil buffer functionality of the underlying canvas.

I could add extra constructors for this, but I'm kinda wondering if having ScreenScaler be a wrapper is the wrong approach - it might be nicer to just have a function for drawing any canvas at window scale.

Why is this needed? To avoid having to create extra canvases when multisampling/stencilling.

17cupsofcoffee commented 1 year ago

I decided to just add a constructor in 0.8 - it's not the most elegant solution, but given development has slowed down on Tetra I thought it'd be better to at least add something.