Home Creators Posts Import Register Favorites Logout

Content

This is just whizzing along now.  :)

That's a Nintendo Switch running SDL's "testsprite2" program. It doesn't look like much, but if you can see that, a few things are true: we can draw on the screen, obviously, and OpenGL works. SDL's simple rendering API is up and running, too.

What you can't see in this video is that SDL's new Vulkan support works, too: you can create an SDL_WINDOW_VULKAN window and draw into it just the same as you can do SDL_WINDOW_OPENGL.

And, naturally, OpenGL ES is available, too. You can also work directly with the "official" Nintendo rendering API, but why would you do that?  :)

Next up is getting input from the controllers and the touch screen. Then maybe porting something to it for fun.

A few other developers with devkits are starting to pull in this work, so I would expect to see some initial screenshots of other games popping up sooner than later, in any case.

Files

SDL2/switch: video

Now we’re making progress! This is SDL’s render API running on the Switch, which means we’ve got 3D accelerated rendering available now. If you like what I’m doing here, contribute to my Patreon at https://patreon.com/icculus Thanks!

Comments

R L

Any debug tools available for OpenGL debugging?

boomerz

Never heard of such a thing as open gl is such a low level library , that would kinda be unsafe right?

boomerz

I need to get a switch dev kit but my game isn't ready, I really want to work on this.

Ryan C. Gordon

I think they expect you to work those issues out on Windows (the Switch SDK can also target Windows), but I'm not sure. So far, what I've got has Just Worked.

Isa Bolling

In setting up switch controllers, will the gyroscope of the controllers be supported as extra SDL Joystick axis, like how gyroscope is done for sdl2 on android?

Egor Dorichev

Woah, could you share the solution code later, please? So awesome!

Ryan C. Gordon

It’s available to anyone with Switch access on their nintendo.developer.com account. Right now that’s not many people, but I’m hoping Nintendo will open this up to the general public eventually, like they did for the 3DS and Wii-U.

Martin Gerhardy

Cool stuff. Can you give an ETA for the vulkan renderer in the main repo?

Ryan C. Gordon

Vulkan support is in the main repo already, so you can get up and running and draw your own stuff with Vulkan; we don't have a Vulkan backend for our render api yet, though.