XFile.h
#pragma once
namespace Core
{
/// Xファイル
public ref class XFile
{
// Construction --------------------------------------------------------
public:
XFile( Microsoft::DirectX::Direct3D::Device^ device, System::String^ fileName );
~XFile() { XFile::!XFile(); }
!XFile();
// Operation -----------------------------------------------------------
public:
void Render( Microsoft::DirectX::Direct3D::Device^ device );
// Attribute ===========================================================
private:
Microsoft::DirectX::Direct3D::Mesh^ m_mesh; ///< メッシュ
array< Microsoft::DirectX::Direct3D::Material >^ m_materials; ///< マテリアル
array< Microsoft::DirectX::Direct3D::Texture^ >^ m_textures; ///< テクスチャ
// Property ------------------------------------------------------------
public:
/// メッシュ
property Microsoft::DirectX::Direct3D::Mesh^ Mesh
{
Microsoft::DirectX::Direct3D::Mesh^ get()
{
return m_mesh;
}
}
};
}