Panda3D

Loading...
Searching...
No Matches
eggMaterialCollection.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 eggMaterialCollection.I
10 * @author drose
11 * @date 2001-04-30
12 */
13
14INLINE EggMaterialCollection::iterator EggMaterialCollection::
15begin() const {
16 nassertr(_ordered_materials.size() == _materials.size(),
17 _ordered_materials.begin());
18 return _ordered_materials.begin();
19}
20
21INLINE EggMaterialCollection::iterator EggMaterialCollection::
22end() const {
23 return _ordered_materials.end();
24}
25
26INLINE bool EggMaterialCollection::
27empty() const {
28 return _ordered_materials.empty();
29}
30
31INLINE EggMaterialCollection::size_type EggMaterialCollection::
32size() const {
33 nassertr(_ordered_materials.size() == _materials.size(), 0);
34 return _ordered_materials.size();
35}