Panda3D
eggTextureCollection.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file eggTextureCollection.I
10  * @author drose
11  * @date 2000-02-16
12  */
13 
14 /**
15  *
16  */
17 INLINE EggTextureCollection::iterator EggTextureCollection::
18 begin() const {
19  nassertr(_ordered_textures.size() == _textures.size(),
20  _ordered_textures.begin());
21  return _ordered_textures.begin();
22 }
23 
24 /**
25  *
26  */
27 INLINE EggTextureCollection::iterator EggTextureCollection::
28 end() const {
29  return _ordered_textures.end();
30 }
31 
32 /**
33  *
34  */
35 INLINE bool EggTextureCollection::
36 empty() const {
37  return _ordered_textures.empty();
38 }
39 
40 /**
41  * Returns the nth EggTexture in the collection.
42  */
44 operator [] (size_type n) const {
45  return get_texture(n);
46 }
47 
48 /**
49  * Returns the number of EggTextures in the collection.
50  */
51 INLINE EggTextureCollection::size_type EggTextureCollection::
52 size() const {
53  nassertr(_ordered_textures.size() == _textures.size(), 0);
54  return _ordered_textures.size();
55 }
EggTexture * operator [](size_type n) const
Returns the nth EggTexture in the collection.
Defines a texture map that may be applied to geometry.
Definition: eggTexture.h:30
size_type size() const
Returns the number of EggTextures in the collection.
get_texture
Returns the nth EggTexture in the collection.