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

托管的 Direct3D之 使用 Frame Hierarchy 创建动画(翻译)
string path = Path.Combine(Path.GetDirectoryName(this.xFilePath), m[i].TextureFilename); this.textures[i] = TextureLoader.FromFile(this.MeshData.Mesh.Device, path); } } } public Texture[] Textures { get { return this.textures; } } } public class CustomAllocateHierarchy : AllocateHierarchy { private string xFilePath; public CustomAllocateHierarchy(string xFilePath) : base() { this.xFilePath = xFilePath; } public override Frame CreateFrame(string name) { return new CustomFrame(name); } public override MeshContainer CreateMeshContainer(string name, MeshData meshData, ExtendedMaterial[] materials, EffectInstance[] effectInstances, GraphicsStream adjacency, SkinInformation skinInfo) { CustomMeshContainer mc = new CustomMeshContainer(this.xFilePath, name, meshData, materials, effectInstances, adjacency, skinInfo); mc.Initialize(); return mc; } }<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>
本站地址:http://www.bajiao123.com

