示例#1
0
        private void btnRenderSkeleton_Click(object sender, EventArgs e)
        {
            var skele = fileNavigator.SelectedNode.Tag as DatDigger.Sections.Skeleton.SkeletonSection;

            if (skele == null)
            {
                return;
            }

            // Launch the texture renderer in a separate thread
            System.Threading.Thread t = new System.Threading.Thread((data) =>
            {
                using (Renderer.PreviewSkeleton sample = new Renderer.PreviewSkeleton((DatDigger.Sections.Skeleton.SkeletonSection)data))
                {
                    sample.Run();
                }
            });
            t.Start(skele);
        }
示例#2
0
        private void btnRenderSkeleton_Click(object sender, EventArgs e)
        {
            var skele = fileNavigator.SelectedNode.Tag as DatDigger.Sections.Skeleton.SkeletonSection;
            if (skele == null)
            {
                return;
            }

            // Launch the texture renderer in a separate thread
            System.Threading.Thread t = new System.Threading.Thread((data) =>
            {
                using (Renderer.PreviewSkeleton sample = new Renderer.PreviewSkeleton((DatDigger.Sections.Skeleton.SkeletonSection)data))
                {
                    sample.Run();
                }
            });
            t.Start(skele);
        }