mesh = pScene->getMesh( (GetBaseAppPath() + "game/girl-0408-head.x").c_str());
node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( (GetBaseAppPath() + "game/girl-hair.rttex").c_str() ));

////////////////////////want as follow

byte* mesh_mem;
byte* tex_mem;

//mesh_mem and tex_mem allocated data

mesh = pScene->getMesh( mesh_mem );
node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( tex_mem ));