Class GLImageFormats

java.lang.Object
com.jme3.renderer.opengl.GLImageFormats

public final class GLImageFormats extends Object
Generates a table of supported image formats for a given renderer caps.
  • Method Details

    • getFormatsForCaps

      public static GLImageFormat[][] getFormatsForCaps(EnumSet<Caps> caps)
      Generates a list of supported texture formats. The first dimension of the array specifies the colorspace, currently 0 means linear and 1 means sRGB. The second dimension is the ordinal in the image format.
      Parameters:
      caps - The capabilities for which to determine supported formats.
      Returns:
      An 2D array containing supported texture formats.