Panda3D
fogAttrib.I
1 // Filename: fogAttrib.I
2 // Created by: drose (14Mar02)
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: FogAttrib::Constructor
18 // Access: Private
19 // Description: Use FogAttrib::make() to construct a new FogAttrib
20 // object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE FogAttrib::
23 FogAttrib() {
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: FogAttrib::is_off
28 // Access: Published
29 // Description: Returns true if the FogAttrib is an 'off' FogAttrib,
30 // indicating that it should disable fog.
31 ////////////////////////////////////////////////////////////////////
32 INLINE bool FogAttrib::
33 is_off() const {
34  return _fog == (const Fog *)NULL;
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: FogAttrib::get_fog
39 // Access: Published
40 // Description: If the FogAttrib is not an 'off' FogAttrib,
41 // returns the fog that is associated. Otherwise,
42 // return NULL.
43 ////////////////////////////////////////////////////////////////////
44 INLINE Fog *FogAttrib::
45 get_fog() const {
46  return _fog;
47 }
Fog * get_fog() const
If the FogAttrib is not an 'off' FogAttrib, returns the fog that is associated.
Definition: fogAttrib.I:45
Specifies how atmospheric fog effects are applied to geometry.
Definition: fog.h:46
bool is_off() const
Returns true if the FogAttrib is an 'off' FogAttrib, indicating that it should disable fog...
Definition: fogAttrib.I:33