eggTextureCollection.I 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Filename: eggTextureCollection.I
  2. // Created by: drose (16Feb00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. INLINE EggTextureCollection::iterator EggTextureCollection::
  19. begin() const {
  20. nassertr(_ordered_textures.size() == _textures.size(),
  21. _ordered_textures.begin());
  22. return _ordered_textures.begin();
  23. }
  24. INLINE EggTextureCollection::iterator EggTextureCollection::
  25. end() const {
  26. return _ordered_textures.end();
  27. }
  28. INLINE bool EggTextureCollection::
  29. empty() const {
  30. return _ordered_textures.empty();
  31. }
  32. INLINE EggTextureCollection::size_type EggTextureCollection::
  33. size() const {
  34. nassertr(_ordered_textures.size() == _textures.size(), 0);
  35. return _ordered_textures.size();
  36. }