Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class WebGL2CubeFrameBuffer

    Encapsulates a WebGL2 Framebuffer with a cube map color texture and depth/stencil renderbuffer.

    Index

    Constructors

    Accessors

    Methods

    • Binds a specific face of the cube map to the framebuffer for rendering.

      Parameters

      • faceIndex: number

        0-5 for Positive X to Negative Z.

      Returns void

    • Resizes the framebuffer.

      Parameters

      • width: number

        The new width.

      • height: number

        The new height.

      Returns void