Panda3D
textureStageCollection.I
1 // Filename: textureStageCollection.I
2 // Created by: drose (23Jul04)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: TextureStageCollection::Destructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE TextureStageCollection::
22 ~TextureStageCollection() {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: TextureStageCollection::operator +=
27 // Access: Published
28 // Description: Appends the other list onto the end of this one.
29 ////////////////////////////////////////////////////////////////////
30 INLINE void TextureStageCollection::
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: TextureStageCollection::operator +
37 // Access: Published
38 // Description: Returns a TextureStageCollection representing the
39 // concatenation of the two lists.
40 ////////////////////////////////////////////////////////////////////
42 operator + (const TextureStageCollection &other) const {
43  TextureStageCollection a(*this);
44  a += other;
45  return a;
46 }
47 
48 ////////////////////////////////////////////////////////////////////
49 // Function: TextureStageCollection::CompareTextureStageSort::operator ()
50 // Access: Public
51 // Description: This STL function object is used to sort a list of
52 // texture stages in order by sort.
53 ////////////////////////////////////////////////////////////////////
54 INLINE bool TextureStageCollection::CompareTextureStageSort::
55 operator () (const TextureStage *a, const TextureStage *b) const {
56  return a->get_sort() < b->get_sort();
57 }
TextureStageCollection operator+(const TextureStageCollection &other) const
Returns a TextureStageCollection representing the concatenation of the two lists. ...
void add_texture_stages_from(const TextureStageCollection &other)
Adds all the TextureStages indicated in the other collection to this texture_stage.
void operator+=(const TextureStageCollection &other)
Appends the other list onto the end of this one.
Defines the properties of a named stage of the multitexture pipeline.
Definition: textureStage.h:38
int get_sort() const
Returns the sort order of this texture stage.
Definition: textureStage.I:75