2012-05-29 13:31:11 +00:00
|
|
|
// 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/>.
|
|
|
|
|
|
|
|
#include "std3d.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "nel/3d/init_3d.h"
|
|
|
|
#include <cfloat>
|
2015-02-01 19:29:26 +00:00
|
|
|
#include "nel/3d/scene.h"
|
|
|
|
#include "nel/3d/register_3d.h"
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
static bool _Initialized = false;
|
|
|
|
}
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
namespace NL3D
|
|
|
|
{
|
|
|
|
|
|
|
|
void init3d ()
|
|
|
|
{
|
2015-02-01 19:29:26 +00:00
|
|
|
|
|
|
|
if( _Initialized )
|
|
|
|
return;
|
|
|
|
|
2012-05-29 13:31:11 +00:00
|
|
|
// Init for windows
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
// Enable FPU exceptions
|
|
|
|
|
|
|
|
// Enable divid by zero and overflow exception
|
2015-02-01 19:29:26 +00:00
|
|
|
//_control87 (_EM_INVALID|_EM_DENORMAL/*|_EM_ZERODIVIDE|_EM_OVERFLOW*/|_EM_UNDERFLOW|_EM_INEXACT, _MCW_EM);
|
2015-02-06 01:29:33 +00:00
|
|
|
#endif // NL_OS_WINDOWS
|
2015-02-01 19:29:26 +00:00
|
|
|
|
|
|
|
NL3D::registerSerial3d();
|
|
|
|
CScene::registerBasics();
|
|
|
|
|
|
|
|
_Initialized = true;
|
2012-05-29 13:31:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // NL3D
|