Texture::Texture(const Texture& copy) : Resource<Texture>(), myWidth (0), myHeight (0), myTextureWidth (0), myTextureHeight(0), myTexture (0), myIsSmooth (copy.myIsSmooth), myPixelsFlipped(false) { if (copy.myTexture) LoadFromImage(copy.CopyToImage()); }
Texture::Texture(const Texture& copy) : myWidth (0), myHeight (0), myTextureWidth (0), myTextureHeight(0), myTexture (0), myIsSmooth (copy.myIsSmooth), myIsRepeated (copy.myIsRepeated), myPixelsFlipped(false), myCacheId (GetUniqueId()) { if (copy.myTexture) LoadFromImage(copy.CopyToImage()); }