RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Class RedGPUContextViewContainer

    RedGPUContextViewContainer 클래스는 RedGPUContext의 뷰(View3D) 관리를 담당합니다.

    • 뷰 추가, 제거, 조회 및 순서 변경 등의 기능을 제공합니다.
    • 각 뷰는 RedGPUContext에 종속되며, 뷰 리스트를 통해 관리됩니다.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Checks if the given child View3D is contained within the current View3D.

      Parameters

      • child: View3D

        The child View3D to check for containment.

      Returns boolean

      • Returns true if the child View3D is contained, otherwise false.
    • Removes the view at the specified index from the view list.

      Parameters

      • index: number

        The index of the view to remove.

      Returns void

      • Throws an error if the index is out of range.
    • Sets the view at the specified index in the viewList of the RedGPUContext instance.

      Parameters

      • view: View3D

        The View3D instance to set at the specified index.

      • index: number

        The index at which to set the view.

      Returns void

      If the input view is not registered in the RedGPUContext instance.

      If the index is out of bounds, i.e., greater than or equal to the length of viewList.

    • Swaps the positions of two views in the view list of the RedGPUContext instance.

      Parameters

      • view1: View3D

        The first view to be swapped.

      • view2: View3D

        The second view to be swapped.

      Returns void

      If either view1 or view2 is not an instance of the View3D class.

      If either view1 or view2 is not a child of this RedGPUContext instance.

    • Swaps two views at the specified indices in the view list.

      Parameters

      • index1: number

        The index of the first view to swap.

      • index2: number

        The index of the second view to swap.

      Returns void

      • If either index1 or index2 is not a positive integer. If either index1 or index2 is larger than or equal to the length of the view list.