This is a simple OpenGL example using SDL2 to manage the window. It just draws a basic cube made out of triangles and spins it. It works on PC and PSP.
Run the following commands:
mkdir build
cd build
cmake ..
make
The binary will be in the build directory.
Install the PSPDEV Toolchain. Then run the following commands:
mkdir build
cd build
psp-cmake ..
make
The EBOOT.PBP will be in the build directory.