Panda3D

fogAttrib.I

00001 // Filename: fogAttrib.I
00002 // Created by:  drose (14Mar02)
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: FogAttrib::Constructor
00018 //       Access: Private
00019 //  Description: Use FogAttrib::make() to construct a new FogAttrib
00020 //               object.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE FogAttrib::
00023 FogAttrib() {
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: FogAttrib::is_off
00028 //       Access: Published
00029 //  Description: Returns true if the FogAttrib is an 'off' FogAttrib,
00030 //               indicating that it should disable fog.
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE bool FogAttrib::
00033 is_off() const {
00034   return _fog == (const Fog *)NULL;
00035 }
00036 
00037 ////////////////////////////////////////////////////////////////////
00038 //     Function: FogAttrib::get_fog
00039 //       Access: Published
00040 //  Description: If the FogAttrib is not an 'off' FogAttrib,
00041 //               returns the fog that is associated.  Otherwise,
00042 //               return NULL.
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE Fog *FogAttrib::
00045 get_fog() const {
00046   return _fog;
00047 }
 All Classes Functions Variables Enumerations