Parameters target Specifies the target texture.
Specifies the number of color components in the texture. If the width of the input image is not a power of two, then the image is scaled to the nearest power of two before the mipmaps are generated. A return value of zero indicates success. Please refer to the glTexImage1D reference page for a description of the acceptable values for the format parameter. See the glDrawPixels reference page for a description of the acceptable values for the type parameter.