Exemple #1
0
        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));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 /// <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);
 }