rapid-render
    Preparing search index...

    Class FrameBufferObject

    Each Texture references a baseTexture, and different textures may have the same baseTexture

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a new FrameBufferObject instance

      Parameters

      • render: Rapid

        The Rapid instance to use

      • width: number

        Width of the framebuffer

      • height: number

        Height of the framebuffer

      • antialias: boolean = false

        Whether to enable antialiasing

      Returns FrameBufferObject

    Properties

    height: number
    texture: WebGLTexture
    width: number
    wrapMode: TextureWrapMode

    Methods

    • Override destroy method to clean up framebuffer resources

      Parameters

      • gl: WebGLContext

        WebGL context

      Returns void

    • Resize the framebuffer

      Parameters

      • width: number

        New width

      • height: number

        New height

      Returns void