Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pgraph/fogAttrib.I

Go to the documentation of this file.
00001 // Filename: fogAttrib.I
00002 // Created by:  drose (14Mar02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: FogAttrib::Constructor
00022 //       Access: Private
00023 //  Description: Use FogAttrib::make() to construct a new FogAttrib
00024 //               object.
00025 ////////////////////////////////////////////////////////////////////
00026 INLINE FogAttrib::
00027 FogAttrib() {
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: FogAttrib::is_off
00032 //       Access: Published
00033 //  Description: Returns true if the FogAttrib is an 'off' FogAttrib,
00034 //               indicating that it should disable fog.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE bool FogAttrib::
00037 is_off() const {
00038   return _fog == (const Fog *)NULL;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: FogAttrib::get_fog
00043 //       Access: Published
00044 //  Description: If the FogAttrib is not an 'off' FogAttrib,
00045 //               returns the fog that is associated.  Otherwise,
00046 //               return NULL.
00047 ////////////////////////////////////////////////////////////////////
00048 INLINE Fog *FogAttrib::
00049 get_fog() const {
00050   return _fog;
00051 }

Generated on Fri May 2 00:41:39 2003 for Panda by doxygen1.3