Beispiel #1
0
        public TextureSetNode(ContainerElement elem)
            : base(elem)
        {
            Text = "Textures";

            if (RmdNodes.Length > 0 && RmdNodes.First().ElementType == 0x01)
            {
                RmdNodes.First().Text = "Count Node";
            }

            if (RmdNodes.Length > 1 && RmdNodes.Last().ElementType == 0x03)
            {
                RmdNodes.Last().Text = "Ex Data";
            }

            _SurrogateObject = new SurrogateDataObject(this);
        }
Beispiel #2
0
        public DrawCallNode(ContainerElement elem)
            : base(elem)
        {
            Text = string.Format("Draw Call [{0}]", GetMeshIndex());

            if (RmdNodes.Length > 0 && RmdNodes.First().ElementType == 0x01)
            {
                RmdNodes.First().Text = "Draw Data";
            }

            if (RmdNodes.Length > 1 && RmdNodes.Last().ElementType == 0x03)
            {
                RmdNodes.Last().Text = "Ex Data";
            }

            _SurrogateObject = new SurrogateDataObject(this);
        }
Beispiel #3
0
        public MaterialNode(ContainerElement elem)
            : base(elem)
        {
            if (RmdNodes.Length > 0 && RmdNodes.First().ElementType == 0x1)
            {
                RmdNodes.First().Text = "Material Data";
            }

            _TextureRefNode = Nodes[1] as TextureRefNode;
            if (_TextureRefNode != null)
            {
                _TextureRefNode.Text = "Texture Reference";
            }

            if (RmdNodes.Length > 1 && RmdNodes.Last().ElementType == 0x3)
            {
                RmdNodes.Last().Text = "Ex Data";
            }


            Text             = string.Format("Material [{0}]", _TextureRefNode.TextureName);
            _SurrogateObject = new SurrogateDataObject(this);
        }