Panda3D

textureStageCollection.I

00001 // Filename: textureStageCollection.I
00002 // Created by:  drose (23Jul04)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: TextureStageCollection::Destructor
00018 //       Access: Published
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE TextureStageCollection::
00022 ~TextureStageCollection() {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: TextureStageCollection::operator +=
00027 //       Access: Published
00028 //  Description: Appends the other list onto the end of this one.
00029 ////////////////////////////////////////////////////////////////////
00030 INLINE void TextureStageCollection::
00031 operator += (const TextureStageCollection &other) {
00032   add_texture_stages_from(other);
00033 }
00034 
00035 ////////////////////////////////////////////////////////////////////
00036 //     Function: TextureStageCollection::operator +
00037 //       Access: Published
00038 //  Description: Returns a TextureStageCollection representing the
00039 //               concatenation of the two lists.
00040 ////////////////////////////////////////////////////////////////////
00041 INLINE TextureStageCollection TextureStageCollection::
00042 operator + (const TextureStageCollection &other) const {
00043   TextureStageCollection a(*this);
00044   a += other;
00045   return a;
00046 }
00047 
00048 ////////////////////////////////////////////////////////////////////
00049 //     Function: TextureStageCollection::CompareTextureStageSort::operator ()
00050 //       Access: Public
00051 //  Description: This STL function object is used to sort a list of
00052 //               texture stages in order by sort.
00053 ////////////////////////////////////////////////////////////////////
00054 INLINE bool TextureStageCollection::CompareTextureStageSort::
00055 operator () (const TextureStage *a, const TextureStage *b) const {
00056   return a->get_sort() < b->get_sort();
00057 }
 All Classes Functions Variables Enumerations