How to create a cube-map

 // Load first cubemap face (+X).
 video::Texture* CubeMap = spRenderer->loadTexture("CubeMapFace0.jpg");
 
 // Load other 5 cubemap faces and add them at the end of the image buffer.
 for (s32 i = 1; i < 6; ++i)
     CubeMap->addTextureFrame(spRenderer->loadTexture("CubeMapFace" + io::stringc(i) + ".jpg"), video::TEXTURE_FRAME_VERTICAL);
 
 // Configure the cubemap texture.
 CubeMap->setDimension(video::TEXTURE_CUBEMAP);
 CubeMap->setWrapMode(video::TEXWRAP_CLAMP);
 
 // Add the cubemap to the object and configure texture coordinate generation.
 MeshObject->addTexture(CubeMap);
 MeshObject->getMeshBuffer(0)->setMappingGen(0, video::MAPGEN_REFLECTION_MAP);
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines