com.io7m.jcanephora.texture.loader.core

## Interface JCGLTLTextureDataType

-     public interface JCGLTLTextureDataType

  The type of loaded texture data.

  Instances of this type present the illusion that all images are RGBA images with unsigned normalized double precision floating point values. Greyscale images are presented as grey RGB values with a fully opaque alpha channel. Greyscale-with-alpha images are presented as grey RGB values with the original alpha value intact. RGB images are presented as RGB values with a fully opaque alpha channel. RGBA images are presented unmodified. Indexed color images are presented as RGB values with a fully opaque alpha channel.

  The `(0, 0)` origin is considered to be the top left corner of the image, which is in contrast to OpenGL's bottom left corner.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `height()`
    `boolean` | `isPremultipliedAlpha()`
    `void` | `pixel(int x, int y, com.io7m.jtensors.storage.heap.VectorMutable4D v)` Retrieve the pixel at `(x, y)`, writing the color data to `v`.
    `long` | `width()`

- - ### Method Detail

    - #### isPremultipliedAlpha

          boolean isPremultipliedAlpha()

      Returns:
        `true` iff the values returned are in premultiplied alpha form

    - #### width

          long width()

      Returns:
        The width of the texture in pixels

    - #### height

          long height()

      Returns:
        The height of the texture in pixels

    - #### pixel

          void pixel(int x,
                     int y,
                     com.io7m.jtensors.storage.heap.VectorMutable4D v)

      Retrieve the pixel at `(x, y)`, writing the color data to `v`.
      Parameters:
        `x` - The X coordinate
        `y` - The Y coordinate
        `v` - The output vector

Copyright © 2017 <code@io7m.com> http://io7m.com