1GLCOPYTEXIMAGE1D(3G)             OpenGL 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_RED, GL_RG, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8,
28           GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4,
29           GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SRGB,
30           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. Must be 0 or 2 n + 2 ⁡
38           border for some integer n. The height of the texture image is 1.
39
40       border
41           Specifies the width of the border. Must be either 0 or 1.
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 + 2 ⁡ border defines the texture array at the mipmap level
49       specified by level.  internalformat specifies the internal format of
50       the texture 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

ERRORS

80       GL_INVALID_ENUM is generated if target is not one of the allowable
81       values.
82
83       GL_INVALID_VALUE is generated if level is less than 0.
84
85       GL_INVALID_VALUE may be generated if level is greater than log 2 ⁢ max,
86       where max is the returned value of GL_MAX_TEXTURE_SIZE.
87
88       GL_INVALID_VALUE is generated if internalformat is not an allowable
89       value.
90
91       GL_INVALID_VALUE is generated if width is less than 0 or greater than
92       GL_MAX_TEXTURE_SIZE.
93
94       GL_INVALID_VALUE is generated if non-power-of-two textures are not
95       supported and the width cannot be represented as 2 n + 2 ⁡ border for
96       some integer value of n.
97
98       GL_INVALID_VALUE is generated if border is not 0 or 1.
99
100       GL_INVALID_OPERATION is generated if internalformat is
101       GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, or
102       GL_DEPTH_COMPONENT32 and there is no depth buffer.
103

ASSOCIATED GETS

105       glGetTexImage()
106

SEE ALSO

108       glCopyTexImage2D(), glCopyTexSubImage1D(), glCopyTexSubImage2D(),
109       glPixelStore(), glTexImage1D(), glTexImage2D(), glTexSubImage1D(),
110       glTexSubImage2D(), glTexParameter()
111
113       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
114       under the SGI Free Software B License. For details, see
115       http://oss.sgi.com/projects/FreeB/.
116

AUTHORS

118       opengl.org
119
120
121
122opengl.org                        06/10/2014              GLCOPYTEXIMAGE1D(3G)
Impressum