Class GLImageFormat

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

public final class GLImageFormat extends Object
Describes an OpenGL image format.
  • Field Details

    • internalFormat

      public final int internalFormat
    • format

      public final int format
    • dataType

      public final int dataType
    • compressed

      public final boolean compressed
    • swizzleRequired

      public final boolean swizzleRequired
  • Constructor Details

    • GLImageFormat

      public GLImageFormat(int internalFormat, int format, int dataType)
      Constructor for formats.
      Parameters:
      internalFormat - OpenGL internal format
      format - OpenGL format
      dataType - OpenGL datatype
    • GLImageFormat

      public GLImageFormat(int internalFormat, int format, int dataType, boolean compressed)
      Constructor for formats.
      Parameters:
      internalFormat - OpenGL internal format
      format - OpenGL format
      dataType - OpenGL datatype
      compressed - Format is compressed
    • GLImageFormat

      public GLImageFormat(int internalFormat, int format, int dataType, boolean compressed, boolean swizzleRequired)
      Constructor for formats.
      Parameters:
      internalFormat - OpenGL internal format
      format - OpenGL format
      dataType - OpenGL datatype
      compressed - Format is compressed
      swizzleRequired - Need to use texture swizzle to upload texture