Exemple #1
0
 static string GetName(ModelAttributeChannel channel, int index)
 {
     if (index > 0)
     {
         return(channel.ToString() + index);
     }
     return(channel.ToString());
 }
 public ModelAttribute(string name, GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index)
 {
     this.Channel = channel;
     this.Index = index;
     this.Name = name;
     this.Buffer = buffer;
     this.OffsetInBytes = offsetInBytes;
     this.Format = format;
     this.Stride = stride;
 }
Exemple #3
0
 public ModelAttribute(string name, GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index)
 {
     this.Channel       = channel;
     this.Index         = index;
     this.Name          = name;
     this.Buffer        = buffer;
     this.OffsetInBytes = offsetInBytes;
     this.Format        = format;
     this.Stride        = stride;
 }
 static string GetName(ModelAttributeChannel channel, int index)
 {
     if(index > 0)
         return channel.ToString() + index;
     return channel.ToString();
 }
 public ModelAttribute(GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index)
     : this(GetName(channel, index), buffer, offsetInBytes, format, stride, channel, index)
 {
 }
Exemple #6
0
 public ChannelList(ModelAttributeChannel id, T defaultValue)
 {
     this.id = id; this.DefaultValue = defaultValue;
 }
Exemple #7
0
 public ModelAttribute(GraphicsBuffer buffer, int offsetInBytes, Format format, int stride, ModelAttributeChannel channel, int index) : this(GetName(channel, index), buffer, offsetInBytes, format, stride, channel, index)
 {
 }