Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE EggTextureCollection::iterator EggTextureCollection::
18begin() const {
19 nassertr(_ordered_textures.size() == _textures.size(),
20 _ordered_textures.begin());
21 return _ordered_textures.begin();
22}
23
24/**
25 *
26 */
27INLINE EggTextureCollection::iterator EggTextureCollection::
28end() const {
29 return _ordered_textures.end();
30}
31
32/**
33 *
34 */
35INLINE bool EggTextureCollection::
36empty() const {
37 return _ordered_textures.empty();
38}
39
40/**
41 * Returns the nth EggTexture in the collection.
42 */
44operator [] (size_type n) const {
45 return get_texture(n);
46}
47
48/**
49 * Returns the number of EggTextures in the collection.
50 */
51INLINE EggTextureCollection::size_type EggTextureCollection::
52size() const {
53 nassertr(_ordered_textures.size() == _textures.size(), 0);
54 return _ordered_textures.size();
55}
get_texture
Returns the nth EggTexture in the collection.
EggTexture * operator[](size_type n) const
Returns the nth EggTexture in the collection.
size_type size() const
Returns the number of EggTextures in the collection.
Defines a texture map that may be applied to geometry.
Definition eggTexture.h:30