74 lines
2.6 KiB
Plaintext
Executable File
74 lines
2.6 KiB
Plaintext
Executable File
// Filename: polylightEffect.I
|
|
// Created by: sshodhan (02Jun04)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PolylightEffect::Constructor
|
|
// Access: Protected
|
|
// Description: Use PolylightEffect::make() to construct a new
|
|
// PolylightEffect object.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE PolylightEffect::
|
|
PolylightEffect() {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PolylightEffect::Constructor
|
|
// Access: Protected
|
|
// Description: Copy Constructor used by the const methods
|
|
// to modify data on a copy and return a new one
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE PolylightEffect::
|
|
PolylightEffect(const PolylightEffect ©) :
|
|
_contribution_type(copy._contribution_type),
|
|
_weight(copy._weight),
|
|
_lightgroup(copy._lightgroup),
|
|
_effect_center(copy._effect_center)
|
|
{
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PolylightEffect::get_weight
|
|
// Access: Published
|
|
// Description: Get the weight value
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float PolylightEffect::
|
|
get_weight() const {
|
|
return _weight;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PolylightEffect::get_contrib
|
|
// Access: Published
|
|
// Description: Returns CT_all or CT_proximal
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE PolylightEffect::ContribType PolylightEffect::
|
|
get_contrib() const {
|
|
return _contribution_type;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PolylightEffect::get_effect_center
|
|
// Access: Published
|
|
// Description: Return the value of the _effect_center
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LPoint3f PolylightEffect::
|
|
get_effect_center() const {
|
|
return _effect_center;
|
|
}
|