#include "MAXProxyHeaders.hpp"

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
	MAXProxies::InitializeClasses()
{
	MAXScene::InitializeClass();
	MAXGroup::InitializeClass();
	MAXPolygonMesh::InitializeClass();
	MAXVertex::InitializeClass();
	MAXPolygon::InitializeClass();
	MAXIndex::InitializeClass();
	MAXState::InitializeClass();
	MAXTexture::InitializeClass();
	MAXStateLibrary::InitializeClass();
	MAXTextureLibrary::InitializeClass();
	MAXLight::InitializeClass();
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
	MAXProxies::TerminateClasses()
{
	MAXLight::TerminateClass();
	MAXTextureLibrary::TerminateClass();
	MAXStateLibrary::TerminateClass();
	MAXTexture::TerminateClass();
	MAXState::TerminateClass();
	MAXIndex::TerminateClass();
	MAXPolygon::TerminateClass();
	MAXVertex::TerminateClass();
	MAXPolygonMesh::TerminateClass();
	MAXGroup::TerminateClass();
	MAXScene::TerminateClass();
}

UnitQuaternion ConvertMaxToMW(Quat &quat)
{

UnitQuaternion rotation;
	rotation.x	= quat.x;
	rotation.y	= quat.z;
	rotation.z	= -quat.y;
	rotation.w	= -quat.w;

return rotation;
}

Point3D ConvertMaxToMW(Point3 &pnt)
{
Point3D translation;
	translation.x = pnt.x;
	translation.y = pnt.z;
	translation.z = -pnt.y;

return translation;
}