code: public static JCGLPixelFormat pixelTypeFromGL(
      final int e)
    {
      switch (e) {
        case GL.GL_UNSIGNED_INT_24_8:
          return JCGLPixelFormat.PIXEL_PACKED_UNSIGNED_INT_24_8;
        case GL.GL_UNSIGNED_SHORT_5_6_5:
          return JCGLPixelFormat.PIXEL_PACKED_UNSIGNED_SHORT_565;
        case GL.GL_UNSIGNED_SHORT_5_5_5_1:
          return JCGLPixelFormat.PIXEL_PACKED_UNSIGNED_SHORT_5551;
        case GL.GL_UNSIGNED_SHORT_4_4_4_4:
          return JCGLPixelFormat.PIXEL_PACKED_UNSIGNED_SHORT_4444;
        case GL2ES2.GL_UNSIGNED_INT_10_10_10_2:
          return JCGLPixelFormat.PIXEL_PACKED_UNSIGNED_INT_1010102;
        case GL.GL_UNSIGNED_SHORT:
          return JCGLPixelFormat.PIXEL_COMPONENT_UNSIGNED_SHORT;
        case GL.GL_UNSIGNED_INT:
          return JCGLPixelFormat.PIXEL_COMPONENT_UNSIGNED_INT;
        case GL.GL_UNSIGNED_BYTE:
          return JCGLPixelFormat.PIXEL_COMPONENT_UNSIGNED_BYTE;
        case GL.GL_SHORT:
          return JCGLPixelFormat.PIXEL_COMPONENT_SHORT;
        case GL2ES2.GL_INT:
          return JCGLPixelFormat.PIXEL_COMPONENT_INT;
        case GL.GL_FLOAT:
          return JCGLPixelFormat.PIXEL_COMPONENT_FLOAT;
        case GL.GL_BYTE:
          return JCGLPixelFormat.PIXEL_COMPONENT_BYTE;
        case GL.GL_HALF_FLOAT:
          return JCGLPixelFormat.PIXEL_COMPONENT_HALF_FLOAT;
        default:
          throw new UnreachableCodeException();
      }
    }
docs: Convert pixel types from GL constants.
  
  @param e The GL constant.
  
  @return The value.