GraphicsRendererCollectionBase<T> Class
              
              
              Namespace: Stride.Rendering
              Assembly: Stride.Rendering.dll
              
              
              
              
              
              
              
              
              
              
              
                [DataSerializer(typeof(ListAllSerializer<, >), Mode = DataSerializerGenericMode.TypeAndGenericArguments)]
public abstract class GraphicsRendererCollectionBase<T> : RendererCoreBase, IComponent, IReferencable, ICollectorHolder, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class, IGraphicsRendererCore
               
              
              Type Parameters
              
              
              
              
              
                  
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Constructors
              
                
              
              
              
              
              
              GraphicsRendererCollectionBase()
              
              
              
              
              
                protected GraphicsRendererCollectionBase()
               
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Properties
              
                
              
              
              
              
              
              Count
              
              
              
              
              
                public int Count { get; }
               
              
              Property Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                     | 
                  
                
              
              
              
              
              
              
              Enabled
              
              
              
              
              
                public override bool Enabled { get; set; }
               
              
              Property Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              Overrides
              
              
              
              
              
              
              IsReadOnly
              
              
              
              
              
                public bool IsReadOnly { get; }
               
              
              Property Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
              
              
              
              Item[Int32]
              
              
              
              
              
                public T this[int index] { get; set; }
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    index | 
                     | 
                  
                
              
              Property Value
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Methods
              
                
              
              
              
              
              
              Add(T)
              
              
              
              
              
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              
              
              
              
              
              Clear()
              
              
              
              
              
              
              
              
              
              
              
              Contains(T)
              
              
              
              
              
                public bool Contains(T item)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
              
              
              
              CopyTo(T[], Int32)
              
              
              
              
              
                public void CopyTo(T[] array, int arrayIndex)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T[] | 
                    array | 
                     | 
                  
                  
                    | System.Int32 | 
                    arrayIndex | 
                     | 
                  
                
              
              
              
              
              
              
              Draw(RenderDrawContext)
              
              Draws this renderer with the specified context.
 
              
              
              
                public void Draw(RenderDrawContext context)
               
              
              Parameters
              
              Exceptions
              
                
                  
                    | Type | 
                    Condition | 
                  
                
                
                  
                    | System.ArgumentNullException | 
                    context 
 | 
                  
                  
                    | System.InvalidOperationException | 
                    Cannot use a different context between Load and Draw 
 | 
                  
                
              
              
              
              
              
              
              DrawCore(RenderDrawContext)
              
              
              
              
              
                protected virtual void DrawCore(RenderDrawContext context)
               
              
              Parameters
              
              
              
              
              
              
              DrawRenderer(RenderDrawContext, T)
              
              
              
              
              
                protected abstract void DrawRenderer(RenderDrawContext context, T renderer)
               
              
              Parameters
              
              
              
              
              
              
              GetEnumerator()
              
              
              
              
              
                public List<T>.Enumerator GetEnumerator()
               
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Collections.Generic.List.Enumerator<> | 
                     | 
                  
                
              
              
              
              
              
              
              IndexOf(T)
              
              
              
              
              
                public int IndexOf(T item)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                     | 
                  
                
              
              
              
              
              
              
              InitializeRenderers(RenderContext)
              
              
              
              
              
                protected void InitializeRenderers(RenderContext context)
               
              
              Parameters
              
              
              
              
              
              
              Insert(Int32, T)
              
              
              
              
              
                public void Insert(int index, T item)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    index | 
                     | 
                  
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              
              
              
              
              
              Remove(T)
              
              
              
              
              
                public bool Remove(T item)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
              
              
              
              RemoveAt(Int32)
              
              
              
              
              
                public void RemoveAt(int index)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    index | 
                     | 
                  
                
              
              
              
              
              
              
              Unload()
              
              
              
              
              
                protected override void Unload()
               
              
              Overrides
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Explicit Interface Implementations
              
                
              
              
              
              
              
              IEnumerable<T>.GetEnumerator()
              
              
              
              
              
                IEnumerator<T> IEnumerable<T>.GetEnumerator()
               
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Collections.Generic.IEnumerator<T> | 
                     | 
                  
                
              
              
              
              
              
              
              IEnumerable.GetEnumerator()
              
              
              
              
              
                IEnumerator IEnumerable.GetEnumerator()
               
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Collections.IEnumerator | 
                     | 
                  
                
              
              
              
 
              
               
              
              
              
              
              
              
              Extension Methods