historical/toontown-classic.git/panda/include/fogAttrib.I
2024-01-16 11:20:27 -06:00

37 lines
811 B
Text

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file fogAttrib.I
* @author drose
* @date 2002-03-14
*/
/**
* Use FogAttrib::make() to construct a new FogAttrib object.
*/
INLINE FogAttrib::
FogAttrib() {
}
/**
* Returns true if the FogAttrib is an 'off' FogAttrib, indicating that it
* should disable fog.
*/
INLINE bool FogAttrib::
is_off() const {
return _fog == nullptr;
}
/**
* If the FogAttrib is not an 'off' FogAttrib, returns the fog that is
* associated. Otherwise, return NULL.
*/
INLINE Fog *FogAttrib::
get_fog() const {
return _fog;
}