GlTexSubImage1D: Difference between revisions
m (Protected "GlTexSubImage1D" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
m (Removed protection from "GlTexSubImage1D") |
(No difference)
|
Revision as of 19:14, 2 June 2022
_glTexSubImage1D: specify a one-dimensional texture subimage
Syntax
SUB _glTexSubImage1D (BYVAL target AS _UNSIGNED LONG, BYVAL level AS LONG, BYVAL xoffset AS LONG, BYVAL width AS LONG, BYVAL format AS _UNSIGNED LONG, BYVAL type AS _UNSIGNED LONG, pixels AS _OFFSET) void _glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * data);
- target
- Specifies the target texture. Must be Template:KW.
- level
- Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
- xoffset
- Specifies a texel offset in the x direction within the texture array.
- width
- Specifies the width of the texture subimage.
Template:Glapi pixeltransferupparams
Description
Texturing maps a portion of a specified texture image onto each graphical primitive for which texturing is enabled. To enable or disable one-dimensional texturing, call Template:KW and Template:KW with argument Template:KW.
_glTexSubImage1D redefines a contiguous subregion of an existing one-dimensional texture image. The texels referenced by data replace the portion of the existing texture array with x indices xoffset and xoffset + width - 1, inclusive. This region may not include any texels outside the range of the texture array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect.
If a non-zero named buffer object is bound to the Template:KW target (see Template:KW) while a texture image is specified, data is treated as a byte offset into the buffer object's data store.
Template:KW modes affect texture images.
_glTexSubImage1D specifies a one-dimensional subtexture for the current texture unit, specified with Template:KW.
Template:KW is generated if target is not one of the allowable values.
Template:KW is generated if format is not an accepted format constant.
Template:KW is generated if type is not a type constant.
Template:KW is generated if level is less than 0.
Template:KW may be generated if level is greater than log<sub>2</sub>(max), where max is the returned value of Template:KW.
Template:KW is generated if xoffset < 0, or if xoffset + width > w, where w is the Template:KW. Note that w includes twice the border width.
Template:KW is generated if width is less than 0.
Template:KW is generated if the texture array has not been defined by a previous Template:KW operation.
Template:KW is generated if type is one of Template:KW, Template:KW, Template:KW, or Template:KW and format is not Template:KW.
Template:KW is generated if type is one of Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, or Template:KW and format is neither Template:KW nor Template:KW.
Template:KW is generated if a non-zero buffer object name is bound to the Template:KW target and the buffer object's data store is currently mapped.
Template:KW is generated if a non-zero buffer object name is bound to the Template:KW target and the data would be unpacked from the buffer object such that the memory reads required would exceed the data store size.
Template:KW is generated if a non-zero buffer object name is bound to the Template:KW target and data is not evenly divisible into the number of bytes needed to store in memory a datum indicated by type.
Template:KW with argument Template:KW
See also
SUB _GL Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW, Template:KW