textureCollection.I 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Filename: textureCollection.I
  2. // Created by: drose (16Mar02)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. ////////////////////////////////////////////////////////////////////
  15. // Function: TextureCollection::Destructor
  16. // Access: Published
  17. // Description:
  18. ////////////////////////////////////////////////////////////////////
  19. INLINE TextureCollection::
  20. ~TextureCollection() {
  21. }
  22. ////////////////////////////////////////////////////////////////////
  23. // Function: TextureCollection::operator +=
  24. // Access: Published
  25. // Description: Appends the other list onto the end of this one.
  26. ////////////////////////////////////////////////////////////////////
  27. INLINE void TextureCollection::
  28. operator += (const TextureCollection &other) {
  29. add_textures_from(other);
  30. }
  31. ////////////////////////////////////////////////////////////////////
  32. // Function: TextureCollection::operator +
  33. // Access: Published
  34. // Description: Returns a TextureCollection representing the
  35. // concatenation of the two lists.
  36. ////////////////////////////////////////////////////////////////////
  37. INLINE TextureCollection TextureCollection::
  38. operator + (const TextureCollection &other) const {
  39. TextureCollection a(*this);
  40. a += other;
  41. return a;
  42. }