
本站地址:http://www.bajiao123.com

托管的 Direct3D之 使用 Frame Hierarchy 创建动画(翻译)
{ return this.customTransform; } set { this.customTransform = value; } } } public class CustomMeshContainer : MeshContainer { private string xFilePath; private Texture[] textures; public CustomMeshContainer(string xFilePath, string name, MeshData meshData, ExtendedMaterial[] materials, EffectInstance[] effectInstances, GraphicsStream adjacency, SkinInformation skinInfo) : base() { this.Name = name; this.MeshData = meshData; this.SetMaterials(materials); this.SetEffectInstances(effectInstances); this.SetAdjacency(adjacency); this.SkinInformation = skinInfo; this.textures = null; this.xFilePath = xFilePath; } public void Initialize() { // Load the textures for the mesh. ExtendedMaterial[] m = this.GetMaterials(); this.textures = new Texture[m.Length]; for(int i=0; i<m.Length; i++) { if(m[i].TextureFilename != null) { &nb << 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>
本站地址:http://www.bajiao123.com

