Panda3D
|
00001 // Filename: texProjectorEffect.I 00002 // Created by: drose (25Jul04) 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: TexProjectorEffect::Constructor 00018 // Access: Protected 00019 // Description: Use TexProjectorEffect::make() to construct a new 00020 // TexProjectorEffect object. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE TexProjectorEffect:: 00023 TexProjectorEffect() { 00024 } 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: TexProjectorEffect::Copy Constructor 00028 // Access: Protected 00029 // Description: Use TexProjectorEffect::make() to construct a new 00030 // TexProjectorEffect object. 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE TexProjectorEffect:: 00033 TexProjectorEffect(const TexProjectorEffect ©) : 00034 _stages(copy._stages) 00035 { 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: TexProjectorEffect::StageDef::Constructor 00040 // Access: Public 00041 // Description: 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE TexProjectorEffect::StageDef:: 00044 StageDef() : 00045 _to_lens_node(NULL) 00046 { 00047 } 00048 00049 //////////////////////////////////////////////////////////////////// 00050 // Function: TexProjectorEffect::StageDef::set_from 00051 // Access: Public 00052 // Description: 00053 //////////////////////////////////////////////////////////////////// 00054 INLINE void TexProjectorEffect::StageDef:: 00055 set_from(const NodePath &from) { 00056 _from = from; 00057 } 00058 00059 //////////////////////////////////////////////////////////////////// 00060 // Function: TexProjectorEffect::StageDef::compare_to 00061 // Access: Public 00062 // Description: 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE int TexProjectorEffect::StageDef:: 00065 compare_to(const TexProjectorEffect::StageDef &other) const { 00066 int compare = _to.compare_to(other._to); 00067 if (compare != 0) { 00068 return compare; 00069 } 00070 00071 return _from.compare_to(other._from); 00072 }