error = glu.BuildMipmaps(internalformat, format, pixels)
Width and height of the texture will be automatically determined by the layout of the table in pixels. If there
is only one subtable within pixels, gl.BuildMipmaps() will create 1D mipmaps. If there are multiple subtables
within pixels, 2D mipmaps will be created.
Note that #GL_UNSIGNED_BYTE is currently the only supported data type. glu.BuildMipmaps() expects all elements
in pixels to use the #GL_UNSIGNED_BYTE data type.
See glu.Build2DMipmaps for more details on the parameters accepted by this function.
Please consult an OpenGL reference manual for more information.