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` | `getHeight()`
    `void` | `getPixel(int x, int y, com.io7m.jtensors.VectorWritable4DType v)` Retrieve the pixel at `(x, y)`, writing the color data to `v`.
    `long` | `getWidth()`
    `boolean` | `isPremultipliedAlpha()`

- - ### Method Detail

    - #### isPremultipliedAlpha

          boolean isPremultipliedAlpha()

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

    - #### getWidth

          long getWidth()

      Returns:
        The width of the texture in pixels

    - #### getHeight

          long getHeight()

      Returns:
        The height of the texture in pixels

    - #### getPixel

          void getPixel(int x,
                        int y,
                        com.io7m.jtensors.VectorWritable4DType 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 © 2016 <code@io7m.com> http://io7m.com