Sample cross platform C++ OpenGL ES code