Panda3D

polylightEffect.I

00001 // Filename: polylightEffect.I
00002 // Created by:  sshodhan (02Jun04)
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: PolylightEffect::Constructor
00018 //       Access: Protected
00019 //  Description: Use PolylightEffect::make() to construct a new
00020 //               PolylightEffect object.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE PolylightEffect::
00023 PolylightEffect() {
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: PolylightEffect::Constructor
00028 //       Access: Protected
00029 //  Description: Copy Constructor used by the const methods
00030 //               to modify data on a copy and return a new one
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE PolylightEffect::
00033 PolylightEffect(const PolylightEffect &copy) :
00034   _contribution_type(copy._contribution_type),
00035   _weight(copy._weight),
00036   _lightgroup(copy._lightgroup),
00037   _effect_center(copy._effect_center)
00038 {
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: PolylightEffect::get_weight
00043 //       Access: Published
00044 //  Description: Get the weight value
00045 ////////////////////////////////////////////////////////////////////
00046 INLINE PN_stdfloat PolylightEffect:: 
00047 get_weight() const {
00048   return _weight;
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: PolylightEffect::get_contrib
00053 //       Access: Published
00054 //  Description: Returns CT_all or CT_proximal
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE PolylightEffect::ContribType PolylightEffect::
00057 get_contrib() const {
00058   return _contribution_type;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: PolylightEffect::get_effect_center
00063 //       Access: Published
00064 //  Description: Return the value of the _effect_center
00065 ////////////////////////////////////////////////////////////////////
00066 INLINE LPoint3 PolylightEffect::
00067 get_effect_center() const {
00068   return _effect_center;
00069 }
 All Classes Functions Variables Enumerations