gl.TexImage(level, internalformat, format, type, pixels[, border])
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.TexImage() will define a texture of type #GL_TEXTURE_1D. If there are multiple
subtables within pixels, #GL_TEXTURE_2D will be used.
Note that only #GL_FLOAT and #GL_UNSIGNED_BYTE are currently supported for type and internalformat only
accepts #GL_RGB, #GL_RGBA, #GL_ALPHA, #GL_LUMINANCE, #GL_LUMINANCE_ALPHA, #GL_DEPTH_COMPONENT and the values
1, 2, 3, and 4.
See gl.TexImage2D for more details on the parameters accepted by this function.
Please consult an OpenGL reference manual for more information.