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.
| 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() |
boolean isPremultipliedAlpha()
true iff the values returned are in premultiplied alpha
formlong getWidth()
long getHeight()
void getPixel(int x,
int y,
com.io7m.jtensors.VectorWritable4DType v)
(x, y), writing the color data to v.x - The X coordinatey - The Y coordinatev - The output vectorCopyright © 2016 <code@io7m.com> http://io7m.com