#pragma once

namespace Mix{ namespace Tool{ namespace Win32{ namespace Graphics{

	//MTM定数
	enum MTM_VALUE
	{
		MTM_MAGICNUMBER		= 0x464D544D, //MTMF

		MTM_VERSION_1_0_0_0	= 0x01000000,

		MTM_VERSION			= MTM_VERSION_1_0_0_0,
	};

	//MTMファイルヘッダ構造体
	struct MTM_FILE_HEADER_1_0_0_0
	{
		unsigned int magicNumber;
		unsigned int version;
	};

	//MTMデータヘッダ構造体
	struct MTM_DATA_HEADER_1_0_0_0
	{
		unsigned int materialNum;
		unsigned int meshNum;
		unsigned int nodeNum;

		unsigned int collShapeSize;
		unsigned int collPolygonNum;
		unsigned int collMaterialNum;
	};

	//MTMノード構造体
	struct MTM_NODE_1_0_0_0
	{
		Mix::Tool::Win32::Geometry::AABB aabb;
		int mesh;
		int parent;
		int childCount;
		int reserve;
	};
}}}}
