libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.18k stars 1.86k forks source link

(N3DS) Add support for 3D stereoscopy rendering #11480

Open FelixWolf opened 1 week ago

FelixWolf commented 1 week ago

Description

3DS has support for 3D rendering, but that access to that functionality is absent in SDL. I've added support for that by adding a secondary screen that renders to it if gfxIs3D is enabled. Otherwise the left/right screen will just render, right screen takes priority, but if right screen isn't rendered to, then the left screen will render.

Existing Issue(s)

https://discourse.libsdl.org/t/dual-screen-rendering-on-the-n3ds-sdl3/55549/2

FelixWolf commented 1 week ago

Found an issue with framebuffer swapping causing a flicker in 3D mode, will be fixing. Update, the error was on my part in my application code, not the commit it's self. There isn't any bug as previously specified.

Also seems like the build isn't passing but it isn't related to my code?