00001 // Filename: fadelodNode.I 00002 // Created by: sshodhan (14Jun04) 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: FadeLODNode::set_fade_time 00018 // Access: Published 00019 // Description: set the time taken to complete an LOD switch 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE void FadeLODNode:: 00022 set_fade_time(PN_stdfloat t) { 00023 _fade_time = t; 00024 } 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: FadeLODNode::get_fade_time 00028 // Access: Published 00029 // Description: get the time taken to complete an LOD switch 00030 //////////////////////////////////////////////////////////////////// 00031 INLINE PN_stdfloat FadeLODNode:: 00032 get_fade_time() const { 00033 return _fade_time; 00034 } 00035 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: FadeLODNode::get_fade_bin_name 00039 // Access: Published 00040 // Description: Returns the cull bin that is assigned to the fading 00041 // part of the geometry during a transition. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE const string &FadeLODNode:: 00044 get_fade_bin_name() const { 00045 return _fade_bin_name; 00046 } 00047 00048 //////////////////////////////////////////////////////////////////// 00049 // Function: FadeLODNode::get_fade_bin_draw_order 00050 // Access: Published 00051 // Description: Returns the draw order that is assigned (along with 00052 // the bin name) to the fading part of the geometry 00053 // during a transition. 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE int FadeLODNode:: 00056 get_fade_bin_draw_order() const { 00057 return _fade_bin_draw_order; 00058 } 00059 00060 //////////////////////////////////////////////////////////////////// 00061 // Function: FadeLODNode::get_fade_state_override 00062 // Access: Published 00063 // Description: Returns the override value that is applied to the 00064 // state changes necessary to apply the fade effect. 00065 // This should be larger than any attrib overrides on 00066 // the fading geometry. 00067 //////////////////////////////////////////////////////////////////// 00068 INLINE int FadeLODNode:: 00069 get_fade_state_override() const { 00070 return _fade_state_override; 00071 } 00072 00073