rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
117 stars 17 forks source link

Create some traits for swapping/flushing screen buffers #118

Closed ian-h-chamberlain closed 1 year ago

ian-h-chamberlain commented 1 year ago

Coming from https://github.com/rust3ds/ctru-rs/pull/116#discussion_r1164231506

I tried to implement this, it seems to work mostly for compile time checks at least, but I haven't tested that it actually works as expected when running. Let me know what you think, maybe this is a slightly better API to make it clearer that both left + right top screen buffers have to be swapped at once?