Here is my little function:
void loadPaperdoll()
{
if (!mPaperdoll.mImageBody.LoadFromFile("res//vd//body//1.png"))
{
cout<<"Could not read file!!!";
}
mPaperdoll.mImageBody.SetSmooth(false);
if (!mPaperdoll.mImageComplete.LoadFromFile("res//vd//body//1.png"))
{
cout<<"Could not read file!!!";
}
mPaperdoll.mImageComplete.SetSmooth(false);
if (!mPaperdoll.mImageClothes.LoadFromFile("res//vd//clothes//1.png"))
{
cout<<"Could not read file!!!";
}
mPaperdoll.mImageClothes.SetSmooth(false);
if (!mPaperdoll.mImageHair.LoadFromFile("res//vd//hair//1.png"))
{
cout<<"Could not read file!!!";
}
mPaperdoll.mImageHair.SetSmooth(false);
sf::IntRect rct(0,0,0,0);
mPaperdoll.mImageComplete.Copy(mPaperdoll.mImageClothes,0,0,rct,true);
mPaperdoll.mImageComplete.Copy(mPaperdoll.mImageHair,0,0,rct,true);
mPaperdoll.mSprite.SetImage(mPaperdoll.mImageComplete);
mPaperdoll.mSprite.SetPosition(10,10);
mPaperdoll.mSprite.SetScale(2.0f,2.0f);
}
The problem is that it don't want to overlay the images.