[TUTORIAL] Hardware accelerated SDL2 on Raspberry Pi

Raspbian Wheezy didn’t come with SDL2 installed, Raspbian Jessie comes with SDL2-2.0.2, a mere apt-get away.

New in SDL2-2.0.4 is a RPI video target that uses a hardware accelerated OpenGLES2 renderer for the frame buffer to speed up screen drawing. This is obviously something we want, especially if we are playing about with games or emulation. This isn’t packaged for us anywhere to install yet (it will be in Raspbian Stretch when it releases, but it’s not there yet)

Read the tutorial here