80 lines
2.4 KiB
C++
80 lines
2.4 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_MAX_TO_LIGO_H
|
|
#define NL_MAX_TO_LIGO_H
|
|
|
|
#include "nel/misc/types_nl.h"
|
|
|
|
#ifdef NL_NEW
|
|
#undef new
|
|
#endif
|
|
|
|
|
|
#include <max.h>
|
|
#undef min
|
|
#undef max
|
|
|
|
namespace NLLIGO
|
|
{
|
|
|
|
class CZoneTemplate;
|
|
class CLigoConfig;
|
|
class CLigoError;
|
|
|
|
/**
|
|
* Convert a 3dsmax nel patch mesh in ligo data
|
|
*
|
|
* \author Cyril 'Hulud' Corvazier
|
|
* \author Nevrax France
|
|
* \date 2001
|
|
*/
|
|
class CMaxToLigo
|
|
{
|
|
public:
|
|
|
|
/** Convert a 3dsmax NeL patch mesh in a CZoneTemplate
|
|
*
|
|
* \param pNode is the node of the object
|
|
* \param patchMesh is the patch mesh to convert
|
|
* \param zoneTemplate is the zone template to build
|
|
* \param config is the current lingo config file
|
|
* \param errors is the errors structure returned if the method returns false
|
|
* \param time is the time of the export
|
|
* \return true if success else check errors.
|
|
*/
|
|
static bool buildZoneTemplate (INode* pNode, const PatchMesh &patchMesh, CZoneTemplate &zoneTemplate,
|
|
const CLigoConfig &config, CLigoError &errors, TimeValue time);
|
|
|
|
/** Load the config file
|
|
*/
|
|
static bool loadLigoConfigFile (CLigoConfig& config, Interface& it, bool dialog);
|
|
|
|
/** Output an error message in a message box or in the system message
|
|
*
|
|
* \param msg is the message to display
|
|
* \param title is the title for the dialog
|
|
* \param it if a max interface
|
|
* \param dialog is true to see the message in a dilog, false to see it in the script window.
|
|
*/
|
|
static void errorMessage (const char *msg, const char *title, Interface& it, bool dialog);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // NL_MAX_TO_LIGO_H
|
|
|
|
/* End of max_to_ligo.h */
|