Here is how to setup the Raspberry Pi to support normal OpenGL or GLES (both with acceleration) and be able to compile the Proton SDK examples. ​(tested with Raspbian "​Jessie" ​on 6/18/2016)

+

As a base, I started ​with a [[https://​retropie.org.uk/​download/​|RetroPi image]] [[https://​www.balena.io/​etcher/​|written]] to an SD card (tested with 4.4 on 1/28/2019) on a Raspberry 3B. Why? Because it comes with SDL2 pre-installed and pre configured so SDL will properly send mouse and keyboard input which saves a lot of hassle. (don't ask me why, but the version the standard stretch has on apt-get doesn'​t)

-

From my tests I got it working two ways:

+

If you REALLY want to use a standard Raspbian stretch install you can, just do these commands first to get ready:

-

1. Set it up using the OpenGL experimental driver. ​ Result: Proton examples only work in X11 in windows mode. Fullscreen (using the SDL2 harness) didn't work. [[proton:​raspi_opengl_setup|Directions to setup]]

+

<code bash>

+

sudo apt-get install cmake

+

sudo apt-get install libsdl2-2.0-0 libsdl2-dev

+

</​code>​

-

2. Set it up using GL ES, won'​t ​work in X11, works full screen by starting from console. ​ This is more useful for me as it's more pedal to the metal and easier to get 60 fps, no x overhead. ​ With this method we're setting up our own EGL context manually, but still using the SDL2 harness for other things

+

Also, I think the GL driver needs to be set to "​Legacy"​ to work, which is the default, but worth mentioning if you've changed it using raspi-config.

Hint: Using the RetroPi dist? You can edit the text file **/​opt/​retropie/​configs/​all/​autostart.sh** and comment out where it runs emulationstation and change that to run your own app - or nothing at all, so it drops into the shell on boot.

+

+

An easy way to replace the boot splash is replacing **/​opt/​retropie/​supplementary/​splashscreen/​retropie-default.png**