Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    VisibilityGroup Class

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

    Represents a group of visible RenderObject.

    System.Object → VisibilityGroup
    Derived from VisibilityGroup:

    public class VisibilityGroup : IDisposable
    Name Description
    Constructors
    VisibilityGroup(RenderSystem)
    Fields
    RenderData

    Stores render data.

    RenderStageMaskKey
    RenderStageMaskSizePerEntry
    Tags

    Gets the attached properties to this visibility group.

    Properties
    RenderObjects

    List of objects registered in this group.

    RenderSystem
    Methods
    ComputeDataArrayExpectedSize(DataType)
    Copy(RenderView, RenderView)
    Dispose()
    FrustumContainsBox(ref BoundingFrustum, ref BoundingBoxExt, Boolean)
    Reset()
    TryCollect(RenderView)

    Collects render objects visibile in a view (if not previously collected before).

    | Improve this Doc View Source

    Constructors


    VisibilityGroup(RenderSystem)

    public VisibilityGroup(RenderSystem renderSystem)
    Parameters
    Type Name Description
    RenderSystem renderSystem
    | Improve this Doc View Source

    Fields


    RenderData

    Stores render data.

    public RenderDataHolder RenderData
    Field Value
    Type Description
    RenderDataHolder

    RenderStageMaskKey

    public readonly StaticObjectPropertyKey<uint> RenderStageMaskKey
    Field Value
    Type Description
    StaticObjectPropertyKey<System.UInt32>

    RenderStageMaskSizePerEntry

    public const int RenderStageMaskSizePerEntry = 32
    Field Value
    Type Description
    System.Int32

    Tags

    Gets the attached properties to this visibility group.

    public PropertyContainer Tags
    Field Value
    Type Description
    PropertyContainer
    | Improve this Doc View Source

    Properties


    RenderObjects

    List of objects registered in this group.

    public RenderObjectCollection RenderObjects { get; }
    Property Value
    Type Description
    RenderObjectCollection

    RenderSystem

    public RenderSystem RenderSystem { get; }
    Property Value
    Type Description
    RenderSystem
    | Improve this Doc View Source

    Methods


    ComputeDataArrayExpectedSize(DataType)

    protected int ComputeDataArrayExpectedSize(DataType type)
    Parameters
    Type Name Description
    DataType type
    Returns
    Type Description
    System.Int32

    Copy(RenderView, RenderView)

    public void Copy(RenderView source, RenderView target)
    Parameters
    Type Name Description
    RenderView source
    RenderView target

    Dispose()

    public void Dispose()

    FrustumContainsBox(ref BoundingFrustum, ref BoundingBoxExt, Boolean)

    public static bool FrustumContainsBox(ref BoundingFrustum frustum, ref BoundingBoxExt boundingBoxExt, bool ignoreDepthPlanes)
    Parameters
    Type Name Description
    BoundingFrustum frustum
    BoundingBoxExt boundingBoxExt
    System.Boolean ignoreDepthPlanes
    Returns
    Type Description
    System.Boolean

    Reset()

    public void Reset()

    TryCollect(RenderView)

    Collects render objects visibile in a view (if not previously collected before).

    public void TryCollect(RenderView view)
    Parameters
    Type Name Description
    RenderView view

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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