mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 13:21:40 +00:00
74 lines
2.3 KiB
C++
74 lines
2.3 KiB
C++
// NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#ifndef NL_LOGIC_INFO_H
|
|
#define NL_LOGIC_INFO_H
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
#include "nel/misc/rgba.h"
|
|
#include "nel/3d/point_light_influence.h"
|
|
#include <vector>
|
|
|
|
|
|
namespace NL3D
|
|
{
|
|
|
|
|
|
/**
|
|
* An interface for UScene to retrieve client information for a specified UTransform
|
|
* ( see UTransfrom::setLogicInfo() ).
|
|
*
|
|
* implemented by user. typically, methods are called during UScene::render() and are called
|
|
* only if necessary (typically after clip).
|
|
*
|
|
* \author Lionel Berenguier
|
|
* \author Nevrax France
|
|
* \date 2001
|
|
*/
|
|
class ILogicInfo
|
|
{
|
|
public:
|
|
|
|
/// Constructor
|
|
ILogicInfo();
|
|
virtual ~ILogicInfo();
|
|
|
|
|
|
/**
|
|
* This method must return the static light setup which influence the object attached with this ILogicInfo
|
|
* pointLightList.size() may not be 0. Deriver should just append his light and do not clear this list.
|
|
*
|
|
* NB: called by CLightingManager::computeModelLightContributions() when needed
|
|
*
|
|
* \param pointLightList append to this list static pointLights which may influence this object.
|
|
* \param sunContribution contribution factor of the sun to apply to the transform.
|
|
* \param localAmbient ig or landscape may replace sunAmbient with their special ambient.
|
|
* localAmbient.A tells the fraction of this color to take (255 => full contribution of the localAmbient, and
|
|
* no contribution of the ambient of the sun)
|
|
*/
|
|
virtual void getStaticLightSetup(NLMISC::CRGBA sunAmbient, std::vector<CPointLightInfluence> &pointLightList,
|
|
uint8 &sunContribution, NLMISC::CRGBA &localAmbient) =0;
|
|
|
|
|
|
};
|
|
|
|
|
|
} // NL3D
|
|
|
|
|
|
#endif // NL_LOGIC_INFO_H
|
|
|
|
/* End of logic_info.h */
|