Engine API Reference - v2.6.1
    Preparing search index...

    Class HdrParser

    Texture parser for hdr files.

    Hierarchy (View Summary)

    Index

    Methods

    Methods

    • Function

      Parameters

      • url: any

        The URL of the resource to load.

      • callback: any

        The callback used when the resource is loaded or an error occurs.

      • asset: any

        Optional asset that is passed by ResourceLoader.

      Returns void

      TextureParser#load

      Load the texture from the remote URL. When loaded (or failed), use the callback to return an the raw resource data (or error).

    • Function

      Parameters

      • url: any

        The URL of the resource to open.

      • data: any

        The raw resource data passed by callback from ResourceHandler#load.

      • device: any

        The graphics device.

      • textureOptions: {} = {}

      Returns null | Texture

      The parsed resource data.

      TextureParser#open

      Convert raw resource data into a resource instance. E.g. Take 3D model format JSON and return a Model.