How to display spherical planet by using cubemap or icosahedron?

Folks,

Does anyone know any OpenGL programs to render cubemap or icosahedron-based spherical planet in both wireframe and texture mode? I googled about it but can’t find them so far. I found only one source about “Making Worlds” page on acko.net website. It has example source code but it uses Ogre 3D instead. How about OpenGL programs by using basic vertexes? That’s why I want to learn with basic vertexes first then write GLSL programs later.

Also does anyone know about conversions from world bitmap into cubemap or icosahedron tiles in LOD levels? That’s why I want to learn how to write programs for rendering procedural planet with massive terrain mapping for space simulator.

Thanks,
Tim