private static EffectAnnotationCollection ReadAnnotations(BinaryReader reader) { var count = (int)reader.ReadByte(); if (count == 0) { return(EffectAnnotationCollection.Empty); } var annotations = new EffectAnnotation[count]; // TODO: Annotations are not implemented! return(new EffectAnnotationCollection(annotations)); }
private static EffectAnnotationCollection ReadAnnotations(BinaryReader reader) { var count = (int)reader.ReadByte(); if (count == 0) return EffectAnnotationCollection.Empty; var annotations = new EffectAnnotation[count]; // TODO: Annotations are not implemented! return new EffectAnnotationCollection(annotations); }
/// <summary> /// Creates a new instance of <see cref="XNAEffectAnnotation"/>. /// </summary> /// <param name="anno">The XNA annotation.</param> internal XNAEffectAnnotation(XFG.EffectAnnotation anno) { _annotation = anno; SetClassAndType(anno.ParameterClass, anno.ParameterType); }