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

托管的 Direct3D之 使用 Frame Hierarchy 创建动画(翻译)
以下是MeshContainer 的定义:
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) {
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
本站地址:http://www.bajiao123.com

