Advertisement
Guest User

Untitled

a guest
Feb 13th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. AtlasTexture(AtlasTexture&& other)
  2.     {
  3.         _valid = other._valid;
  4.         _width = other._width;
  5.         _height = other._height;
  6.         _originX = other._originX;
  7.         _originY = other._originY;
  8.         _minu = other._minu;
  9.         _maxu = other._maxu;
  10.         _minv = other._minv;
  11.         _maxv = other._maxv;
  12.         _rotated = other._rotated;
  13.  
  14.         _frameData = other._frameData;
  15.     }
  16.  
  17.     AtlasTexture& operator= (AtlasTexture&& other)
  18.     {
  19.         if (this == &other)
  20.             return *this;
  21.  
  22.         _valid = other._valid;
  23.         _width = other._width;
  24.         _height = other._height;
  25.         _originX = other._originX;
  26.         _originY = other._originY;
  27.         _minu = other._minu;
  28.         _maxu = other._maxu;
  29.         _minv = other._minv;
  30.         _maxv = other._maxv;
  31.         _rotated = other._rotated;
  32.  
  33.         if (_frameData.size() > 0)
  34.             FOR(i, _frameData.size())
  35.                 delete [] _frameData.at(i);
  36.         _frameData.clear();
  37.  
  38.         _frameData = other._frameData;
  39.  
  40.         return *this;
  41.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement