code: public static int scalarIntegralTypeToGL(final JCGLScalarIntegralType type)
    {
      switch (type) {
        case TYPE_BYTE:
          return GL.GL_BYTE;
        case TYPE_INT:
          return GL2ES2.GL_INT;
        case TYPE_SHORT:
          return GL.GL_SHORT;
        case TYPE_UNSIGNED_BYTE:
          return GL.GL_UNSIGNED_BYTE;
        case TYPE_UNSIGNED_INT:
          return GL.GL_UNSIGNED_INT;
        case TYPE_UNSIGNED_SHORT:
          return GL.GL_UNSIGNED_SHORT;
      }
  
      throw new UnreachableCodeException();
    }
docs: Convert types to GL constants.
  
  @param type The type.
  
  @return The resulting GL constant.