2010-01-06 15:00:08 +01:00
|
|
|
/*
|
|
|
|
OpenMW - The completely unofficial reimplementation of Morrowind
|
|
|
|
Copyright (C) 2008-2010 Nicolay Korslund
|
|
|
|
Email: < korslund@gmail.com >
|
|
|
|
WWW: http://openmw.sourceforge.net/
|
|
|
|
|
|
|
|
This file (nif_types.h) is part of the OpenMW package.
|
|
|
|
|
|
|
|
OpenMW is distributed as free software: you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License
|
|
|
|
version 3, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
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
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
version 3 along with this program. If not, see
|
|
|
|
http://www.gnu.org/licenses/ .
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2013-02-24 13:51:56 -08:00
|
|
|
#ifndef OPENMW_COMPONENTS_NIF_NIFTYPES_HPP
|
|
|
|
#define OPENMW_COMPONENTS_NIF_NIFTYPES_HPP
|
2010-01-06 15:00:08 +01:00
|
|
|
|
2012-07-10 02:38:35 -07:00
|
|
|
#include <OgreVector3.h>
|
|
|
|
#include <OgreMatrix3.h>
|
|
|
|
|
2010-01-06 15:00:08 +01:00
|
|
|
// Common types used in NIF files
|
|
|
|
|
|
|
|
namespace Nif
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Transformation
|
|
|
|
{
|
2012-07-10 02:38:35 -07:00
|
|
|
Ogre::Vector3 pos;
|
2014-12-02 18:07:32 +01:00
|
|
|
Ogre::Matrix3 rotation;
|
2012-03-23 22:15:45 +02:00
|
|
|
float scale;
|
|
|
|
|
2012-07-09 21:35:36 -07:00
|
|
|
static const Transformation& getIdentity()
|
2012-03-23 22:15:45 +02:00
|
|
|
{
|
2012-07-10 23:13:03 -07:00
|
|
|
static const Transformation identity = {
|
2012-07-12 11:21:52 -07:00
|
|
|
Ogre::Vector3::ZERO, Ogre::Matrix3::IDENTITY, 1.0f
|
2012-07-10 23:13:03 -07:00
|
|
|
};
|
2012-07-09 21:35:36 -07:00
|
|
|
return identity;
|
2012-03-23 22:15:45 +02:00
|
|
|
}
|
2010-01-06 15:00:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // Namespace
|
|
|
|
#endif
|