OSDN Git Service

#32713 初コミット。SVNrev567時点での、ファイルはbranch/140707(ReBuild XGVersion)から移行したもの。
[dtxmaniaxg-verk/dtxmaniaxg-verk-git.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / MeshContainer.h
1 /*
2 * Copyright (c) 2007-2010 SlimDX Group
3
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22 #pragma once
23
24 namespace SlimDX
25 {
26         namespace Direct3D9
27         {
28                 ref class MeshContainer;
29                 ref class MeshData;
30                 ref class SkinInfo;
31
32                 class MeshContainerShim : public D3DXMESHCONTAINER
33                 {
34                 private:
35                         gcroot<MeshContainer^> m_Container;
36
37                 public:
38                         MeshContainerShim( MeshContainer^ container );
39
40                         MeshContainer^ GetMeshContainer()
41                         {
42                                 return m_Container;
43                         }
44                 };
45
46                 public ref class MeshContainer
47                 {
48                 internal:
49                         property D3DXMESHCONTAINER *Pointer;
50
51                         void Destruct();
52
53                         System::String^ m_Name;
54                         MeshContainer^ m_NextContainer;
55                         MeshData^ m_MeshData;
56                         SkinInfo^ m_SkinInfo;
57
58                 public:
59                         MeshContainer();
60                         virtual ~MeshContainer();
61                         !MeshContainer();
62
63                         array<ExtendedMaterial>^ GetMaterials();
64                         void SetMaterials( array<ExtendedMaterial>^ materials );
65
66                         array<EffectInstance>^ GetEffects();
67                         void SetEffects( array<EffectInstance>^ effects );
68
69                         array<int>^ GetAdjacency();
70                         void SetAdjacency( array<int>^ adjacency );
71
72                         property System::String^ Name
73                         {
74                                 System::String^ get();
75                                 void set( System::String^ value );
76                         }
77
78                         property MeshData^ MeshData
79                         {
80                                 SlimDX::Direct3D9::MeshData^ get();
81                                 void set( SlimDX::Direct3D9::MeshData^ value );
82                         }
83
84                         property SkinInfo^ SkinInfo
85                         {
86                                 SlimDX::Direct3D9::SkinInfo^ get();
87                                 void set( SlimDX::Direct3D9::SkinInfo^ value );
88                         }
89
90                         property MeshContainer^ NextMeshContainer
91                         {
92                                 MeshContainer^ get();
93                                 void set( MeshContainer^ value );
94                         }
95                 };
96         }
97 }