Enum PixelFormat

  • All Implemented Interfaces:
    Serializable, Comparable<PixelFormat>

    public enum PixelFormat
    extends Enum<PixelFormat>
    Basic pixel formats

    Notation follows OpenGL notation, i.e. name consist of all it's component names followed by their bit size.

    Order of component names is from lowest-bit to highest-bit.

    In case component-size is 1 byte (e.g. OpenGL data-type GL_UNSIGNED_BYTE), component names are ordered from lowest-byte to highest-byte. Note that OpenGL applies special interpretation if data-type is e.g. GL_UNSIGNED_8_8_8_8_REV or GL_UNSIGNED_8_8_8_8_REV.

    PixelFormat can be converted to OpenGL GLPixelAttributes via

      GLPixelAttributes glpa = GLPixelAttributes.convert(PixelFormat pixFmt, GLProfile glp);
     

    See OpenGL Specification 4.3 - February 14, 2013, Core Profile, Section 8.4.4 Transfer of Pixel Rectangles, p. 161-174.