1GLCOPYTEXIMAGE1D(3G)            [FIXME: manual]           GLCOPYTEXIMAGE1D(3G)
2
3
4

NAME

6       glCopyTexImage1D - copy pixels into a 1D texture image
7

C SPECIFICATION

9       void glCopyTexImage1D(GLenum target, GLint level,
10                             GLenum internalformat, GLint x, GLint y,
11                             GLsizei width, GLint border);
12

PARAMETERS

14       target
15           Specifies the target texture. Must be GL_TEXTURE_1D.
16
17       level
18           Specifies the level-of-detail number. Level 0 is the base image
19           level. Level n is the nth mipmap reduction image.
20
21       internalformat
22           Specifies the internal format of the texture. Must be one of the
23           following symbolic constants: GL_COMPRESSED_RED, GL_COMPRESSED_RG,
24           GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA.  GL_COMPRESSED_SRGB,
25           GL_COMPRESSED_SRGB_ALPHA.  GL_DEPTH_COMPONENT,
26           GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32,
27           GL_STENCIL_INDEX8, GL_RED, GL_RG, GL_RGB, GL_R3_G3_B2, GL_RGB4,
28           GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2,
29           GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16,
30           GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8.
31
32       x, y
33           Specify the window coordinates of the left corner of the row of
34           pixels to be copied.
35
36       width
37           Specifies the width of the texture image. The height of the texture
38           image is 1.
39
40       border
41           Must be 0.
42

DESCRIPTION

44       glCopyTexImage1D defines a one-dimensional texture image with pixels
45       from the current GL_READ_BUFFER.
46
47       The screen-aligned pixel row with left corner at x y and with a length
48       of width defines the texture array at the mipmap level specified by
49       level.  internalformat specifies the internal format of the texture
50       array.
51
52       The pixels in the row are processed exactly as if glReadPixels() had
53       been called, but the process stops just before final conversion. At
54       this point all pixel component values are clamped to the range 0 1 and
55       then converted to the texture's internal format for storage in the
56       texel array.
57
58       Pixel ordering is such that lower x screen coordinates correspond to
59       lower texture coordinates.
60
61       If any of the pixels within the specified row of the current
62       GL_READ_BUFFER are outside the window associated with the current
63       rendering context, then the values obtained for those pixels are
64       undefined.
65
66       glCopyTexImage1D defines a one-dimensional texture image with pixels
67       from the current GL_READ_BUFFER.
68
69       When internalformat is one of the sRGB types, the GL does not
70       automatically convert the source pixels to the sRGB color space. In
71       this case, the glPixelMap function can be used to accomplish the
72       conversion.
73

NOTES

75       1, 2, 3, and 4 are not accepted values for internalformat.
76
77       An image with 0 width indicates a NULL texture.
78
79       GL_STENCIL_INDEX8 is accepted for internalformat only if the GL version
80       is 4.4 or higher.
81

ERRORS

83       GL_INVALID_ENUM is generated if target is not one of the allowable
84       values.
85
86       GL_INVALID_VALUE is generated if level is less than 0.
87
88       GL_INVALID_VALUE may be generated if level is greater than log 2 ⁢ max,
89       where max is the returned value of GL_MAX_TEXTURE_SIZE.
90
91       GL_INVALID_VALUE is generated if internalformat is not an allowable
92       value.
93
94       GL_INVALID_VALUE is generated if width is less than 0 or greater than
95       GL_MAX_TEXTURE_SIZE.
96
97       GL_INVALID_VALUE is generated if border is not 0.
98
99       GL_INVALID_OPERATION is generated if internalformat is
100       GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, or
101       GL_DEPTH_COMPONENT32 and there is no depth buffer.
102

ASSOCIATED GETS

104       glGetTexImage()
105

VERSION SUPPORT

107       ┌─────────────────┬───────────────────────────────────────────────────────────────────────┐
108       │                 │                OpenGL Version                                         
109       ├─────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
110Function         2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
111/                │     │     │     │     │     │     │     │     │     │     │     │     │
112Feature          │     │     │     │     │     │     │     │     │     │     │     │     │
113Name             │     │     │     │     │     │     │     │     │     │     │     │     │
114       ├─────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
115glCopyTexImage1D │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
116       └─────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
117

SEE ALSO

119       glCopyTexImage2D(), glCopyTexSubImage1D(), glCopyTexSubImage2D(),
120       glPixelStore(), glTexImage1D(), glTexImage2D(), glTexSubImage1D(),
121       glTexSubImage2D(), glTexParameter()
122
124       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2012-2014
125       Khronos Group. This document is licensed under the SGI Free Software B
126       License. For details, see http://oss.sgi.com/projects/FreeB/.
127
129       Copyright © 2012-2014 Khronos Group
130
131
132
133[FIXME: source]                   03/06/2019              GLCOPYTEXIMAGE1D(3G)
Impressum