cube mapping sdl

C++
if
  
Source

Also in C++: