Panda3D

Loading...
Searching...
No Matches
fadeLodNode.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file fadeLodNode.I
10 * @author sshodhan
11 * @date 2004-06-14
12 */
13
14/**
15 * set the time taken to complete an LOD switch
16 */
17INLINE void FadeLODNode::
18 set_fade_time(PN_stdfloat t) {
19 _fade_time = t;
20}
21
22/**
23 * get the time taken to complete an LOD switch
24 */
25INLINE PN_stdfloat FadeLODNode::
26 get_fade_time() const {
27 return _fade_time;
28}
29
30
31/**
32 * Returns the cull bin that is assigned to the fading part of the geometry
33 * during a transition.
34 */
35INLINE const std::string &FadeLODNode::
36 get_fade_bin_name() const {
37 return _fade_bin_name;
38}
39
40/**
41 * Returns the draw order that is assigned (along with the bin name) to the
42 * fading part of the geometry during a transition.
43 */
44INLINE int FadeLODNode::
45 get_fade_bin_draw_order() const {
46 return _fade_bin_draw_order;
47}
48
49/**
50 * Returns the override value that is applied to the state changes necessary
51 * to apply the fade effect. This should be larger than any attrib overrides
52 * on the fading geometry.
53 */
54INLINE int FadeLODNode::
55 get_fade_state_override() const {
56 return _fade_state_override;
57}
FadeLODNode::get_fade_bin_name
get_fade_bin_name
Returns the cull bin that is assigned to the fading part of the geometry during a transition.
Definition fadeLodNode.h:43
FadeLODNode::get_fade_time
get_fade_time
get the time taken to complete an LOD switch
Definition fadeLodNode.h:38
FadeLODNode::get_fade_state_override
get_fade_state_override
Returns the override value that is applied to the state changes necessary to apply the fade effect.
Definition fadeLodNode.h:49
FadeLODNode::set_fade_time
set_fade_time
set the time taken to complete an LOD switch
Definition fadeLodNode.h:38
FadeLODNode::get_fade_bin_draw_order
get_fade_bin_draw_order
Returns the draw order that is assigned (along with the bin name) to the fading part of the geometry ...
Definition fadeLodNode.h:44