interface, which represents 2D Texture interface. Subinterface of Image

Hierarchy

Methods

  • Returns number

    height of loaded Image

  • Returns number

    channels count of loaded Image (R, RG, RGBA, i.e. 1, 2, or 4).

  • Returns string

    Image name

  • Returns boolean

    tiled Texture wrapping flag.

  • Returns number

    width of loaded Image

  • Returns boolean

    mimpap generation flag

  • Load Texture data from specified file name. For now only supported .png, .jpeg, .jpg, .ktx Images.

    Parameters

    • fileName: string

      absolute path for Image file

    Returns void

  • set Texture filtering mode

    Parameters

    Returns void

  • set mimpap generation flag. (affect only on ogl backend).

    Parameters

    • enable: boolean

      mipmap generation enable flag.

    Returns void

  • enable/disable Texture tiling

    Parameters

    • enable: boolean

      tiled wrapping flag

    Returns void