gl.TexSubImage(level, format, type, pixels, xoffset[, yoffset])
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.TexSubImage()
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
.
See gl.TexSubImage2D for more details on the parameters accepted by this function.
Please consult an OpenGL reference manual for more information.