Panda3D
fadeLodNode.I
1 // Filename: fadelodNode.I
2 // Created by: sshodhan (14Jun04)
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: FadeLODNode::set_fade_time
18 // Access: Published
19 // Description: set the time taken to complete an LOD switch
20 ////////////////////////////////////////////////////////////////////
21 INLINE void FadeLODNode::
22 set_fade_time(PN_stdfloat t) {
23  _fade_time = t;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: FadeLODNode::get_fade_time
28 // Access: Published
29 // Description: get the time taken to complete an LOD switch
30 ////////////////////////////////////////////////////////////////////
31 INLINE PN_stdfloat FadeLODNode::
32 get_fade_time() const {
33  return _fade_time;
34 }
35 
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: FadeLODNode::get_fade_bin_name
39 // Access: Published
40 // Description: Returns the cull bin that is assigned to the fading
41 // part of the geometry during a transition.
42 ////////////////////////////////////////////////////////////////////
43 INLINE const string &FadeLODNode::
45  return _fade_bin_name;
46 }
47 
48 ////////////////////////////////////////////////////////////////////
49 // Function: FadeLODNode::get_fade_bin_draw_order
50 // Access: Published
51 // Description: Returns the draw order that is assigned (along with
52 // the bin name) to the fading part of the geometry
53 // during a transition.
54 ////////////////////////////////////////////////////////////////////
55 INLINE int FadeLODNode::
57  return _fade_bin_draw_order;
58 }
59 
60 ////////////////////////////////////////////////////////////////////
61 // Function: FadeLODNode::get_fade_state_override
62 // Access: Published
63 // Description: Returns the override value that is applied to the
64 // state changes necessary to apply the fade effect.
65 // This should be larger than any attrib overrides on
66 // the fading geometry.
67 ////////////////////////////////////////////////////////////////////
68 INLINE int FadeLODNode::
70  return _fade_state_override;
71 }
72 
73 
void set_fade_time(PN_stdfloat t)
set the time taken to complete an LOD switch
Definition: fadeLodNode.I:22
const string & get_fade_bin_name() const
Returns the cull bin that is assigned to the fading part of the geometry during a transition...
Definition: fadeLodNode.I:44
int get_fade_bin_draw_order() const
Returns the draw order that is assigned (along with the bin name) to the fading part of the geometry ...
Definition: fadeLodNode.I:56
int get_fade_state_override() const
Returns the override value that is applied to the state changes necessary to apply the fade effect...
Definition: fadeLodNode.I:69
PN_stdfloat get_fade_time() const
get the time taken to complete an LOD switch
Definition: fadeLodNode.I:32