The gluBuild1DMipmaps function creates 1-D mipmaps.
int gluBuild1DMipmaps(
GLenum target,
GLint components,
GLint width,
GLenum format,
GLenum type,
const void * data
);
The gluBuild1DMipmaps function obtains the input image and generates all mipmap images (using gluScaleImage) so that the input image can be used as a mipmapped texture image. The glTexImage1D function is then called to load each of the images. 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. Otherwise, a GLU error code is returned (see gluErrorString).
For a description of the acceptable values for the format parameter, see glTexImage1D. For a description of the acceptable values for the type parameter, see glDrawPixels.
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in glu.h.
Import Library: Link with glu32.lib.
glDrawPixels, glTexImage1D, gluBuild2DMipmaps, gluScaleImage