Пример #1
0
        public CLR0MaterialEntryNode CreateEntry()
        {
            CLR0MaterialNode      node  = new CLR0MaterialNode();
            CLR0MaterialEntryNode entry = new CLR0MaterialEntryNode();

            entry._target     = EntryTarget.Color0;
            entry._name       = entry._target.ToString();
            entry._numEntries = -1;
            entry.NumEntries  = _numFrames;
            entry.Constant    = true;
            entry.SolidColor  = new ARGBPixel();
            node.Name         = this.FindName("MaterialName");
            this.AddChild(node);
            node.AddChild(entry);
            return(entry);
        }
Пример #2
0
 public CLR0MaterialNode CreateEntry()
 {
     CLR0MaterialNode node = new CLR0MaterialNode();
     CLR0MaterialEntryNode entry = new CLR0MaterialEntryNode();
     entry._target = EntryTarget.Color0;
     entry._name = entry._target.ToString();
     entry._numEntries = -1;
     entry.NumEntries = _numFrames;
     entry.Constant = true;
     entry.SolidColor = new ARGBPixel();
     node.Name = this.FindName(null);
     this.AddChild(node);
     node.AddChild(entry);
     return node;
 }
Пример #3
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     _mat = (CLR0MaterialNode)(listBox1.Items[listBox1.SelectedIndex] as CLR0MaterialNode);
     if (_mat.Children.Count > 0)
         lstTarget.SelectedIndex = (int)((CLR0MaterialEntryNode)_mat.Children[0]).Target;
     else
         lstTarget.SelectedIndex = 0;
 }