4

Is there any way to "enable" modern OpenGL on the Raspberry Pi (specifically the Raspberry Pi3)?

I would like to use C++ instead of Python, since I'm a lot more familiar with it. I know there is a way of creating graphics using pyOpenGL and pyGame, but I would like to know if it is possible (and how) to access "pure" OpenGL using the graphics drivers

5

Assuming your running the latest Raspbian Stretch with Desktop.

To enable OpenGL, from a terminal window:

sudo raspi-config

Select 'Advanced Options'

enter image description here

Select 'GL Driver'

enter image description here

Select 'GL (Full KMS)'

enter image description here

Then Reboot

To test it's working you can install and run glxgears - a graphical demo that should run at close to 60fps:

sudo apt-get -y install mesa-utils
glxgears

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy