Page 1 of 1

Include glut on Nintendo Switch

Posted: Sat Jul 06, 2024 10:46 am
by octokling
Hello everyone,

I have a quick question for you.

I am currently creating a video game for Windows and Linux using freeglut (https://github.com/freeglut/freeglut). I would like to know if it is possible to port my game to Nintendo Switch using freeglut as well?

If yes, does anyone have a tutorial on how to import their library onto the Switch?

(I compile my app with with my WSL based on Ubuntu)

Thanks in advance for your answers :wink:

Re: Include glut on Nintendo Switch

Posted: Tue Jul 23, 2024 5:12 pm
by fincs
Hi there. freeglut is a library intended for old-style fixed function GL (think glBegin/glPushMatrix/etc), which is not the best suited GPU programming model for modern GPUs such as the one present in the Nintendo Switch. You may want to look into modern OpenGL programming instead, and use the GLM library (which we provide through pacman) to perform any necessary 3D maths.