Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GraphicsRendererCollectionBase<T> Class

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll

    A collection of IGraphicsRenderer that is itself a IGraphicsRenderer handling automatically and .

    System.Object → DisposeBase → ComponentBase → RendererCoreBase → GraphicsRendererCollectionBase<T>
    Derived from GraphicsRendererCollectionBase<T>: GraphicsRendererCollection<T>

    [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
    Name Description
    T

    Type of the IGraphicsRenderer

    Name Description
    Constructors
    GraphicsRendererCollectionBase()

    Initializes a new instance of the GraphicsRendererCollection<T> class.

    Properties
    Count
    Enabled
    IsReadOnly
    Item[Int32]
    Methods
    Add(T)
    Clear()
    Contains(T)
    CopyTo(T[], Int32)
    Draw(RenderDrawContext)

    Draws this renderer with the specified context.

    DrawCore(RenderDrawContext)
    DrawRenderer(RenderDrawContext, T)
    GetEnumerator()
    IndexOf(T)
    InitializeRenderers(RenderContext)
    Insert(Int32, T)
    Remove(T)
    RemoveAt(Int32)
    Unload()
    Explicit Interface Implementations
    IEnumerable<T>.GetEnumerator()
    IEnumerable.GetEnumerator()
    | Improve this Doc View Source

    Constructors


    GraphicsRendererCollectionBase()

    Initializes a new instance of the GraphicsRendererCollection<T> class.

    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
    RendererCoreBase.Enabled

    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
    Type Description
    T
    | Improve this Doc View Source

    Methods


    Add(T)

    public void Add(T item)
    Parameters
    Type Name Description
    T item

    Clear()

    public void 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
    Type Name Description
    RenderDrawContext context

    The context.

    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
    Type Name Description
    RenderDrawContext context

    DrawRenderer(RenderDrawContext, T)

    protected abstract void DrawRenderer(RenderDrawContext context, T renderer)
    Parameters
    Type Name Description
    RenderDrawContext context
    T renderer

    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
    Type Name Description
    RenderContext context

    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
    RendererCoreBase.Unload()
    | 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

    Inherited Members

    RendererCoreBase.Profiling
    RendererCoreBase.ProfilingKey
    RendererCoreBase.Context
    RendererCoreBase.Services
    RendererCoreBase.Content
    RendererCoreBase.GraphicsDevice
    RendererCoreBase.EffectSystem
    RendererCoreBase.Initialized
    RendererCoreBase.Initialize(RenderContext)
    RendererCoreBase.InitializeCore()
    RendererCoreBase.PreDrawCore(RenderDrawContext)
    RendererCoreBase.PostDrawCore(RenderDrawContext)
    RendererCoreBase.NewScopedBuffer(BufferDescription, PixelFormat)
    RendererCoreBase.NewScopedTypedBuffer(Int32, PixelFormat, Boolean, GraphicsResourceUsage)
    RendererCoreBase.PushScopedResource<T>(T)
    RendererCoreBase.CheckIsInDrawCore()
    RendererCoreBase.Destroy()
    RendererCoreBase.ToLoadAndUnload<T>(T)
    RendererCoreBase.PreDrawCoreInternal(RenderDrawContext)
    RendererCoreBase.EnsureContext(RenderContext)
    RendererCoreBase.PostDrawCoreInternal(RenderDrawContext)
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    CollectionExtensions.SwapRemove<T>(IList<T>, T)
    CollectionExtensions.SwapRemoveAt<T>(IList<T>, Int32)
    CollectionExtensions.GetItemOrNull<T>(IList<T>, Int32)
    CollectionExtensions.IndexOf<T>(IReadOnlyList<T>, T)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.NotNull<T>(IEnumerable<T>)
    EnumerableExtensions.ToHashCode<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation