diff --git a/Bonsai.Shaders/TextureSequence.cs b/Bonsai.Shaders/TextureSequence.cs index bd83567d..1f12f04c 100644 --- a/Bonsai.Shaders/TextureSequence.cs +++ b/Bonsai.Shaders/TextureSequence.cs @@ -3,28 +3,62 @@ namespace Bonsai.Shaders { - class TextureSequence : Texture, ITextureSequence + /// + /// Represents a sequence of texture objects with an enumerator. + /// + public class TextureSequence : Texture, ITextureSequence { readonly TextureArray textures; + /// + /// Initializes a new instance of the class + /// with the specified number of texture objects in the internal . + /// + /// + /// The total number of texture objects in the . + /// public TextureSequence(int length) : base(0) { textures = new TextureArray(length); } + /// + /// Initializes a new instance of the class + /// with existing texture handles. + /// + /// + /// The texture handles. + /// public TextureSequence(int[] textures) { this.textures = new TextureArray(textures); } + /// + /// Gets the associated with this texture sequence. + /// public TextureArray Textures { get { return textures; } } + /// + /// The target playback rate of the texture sequence. + /// public double PlaybackRate { get; set; } + /// + /// Returns an enumerator that iterates through all texture objects in + /// the sequence. + /// + /// + /// Boolean specifying whether the sequence should loop. + /// + /// + /// An enumerator that can be used to iterate through the texture objects + /// in the sequence. + /// public IEnumerator> GetEnumerator(bool loop) { var index = 0;