OLD | NEW |
1 Name | 1 Name |
2 | 2 |
3 CHROMIUM_copy_texture | 3 CHROMIUM_copy_texture |
4 | 4 |
5 Name Strings | 5 Name Strings |
6 | 6 |
7 GL_CHROMIUM_copy_texture | 7 GL_CHROMIUM_copy_texture |
8 | 8 |
9 Version | 9 Version |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and | 29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and |
30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha | 30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha |
31 processing occurs. This is the equivalent of having neither flag set. | 31 processing occurs. This is the equivalent of having neither flag set. |
32 | 32 |
33 The extension also supports copying BGRA textures and copying | 33 The extension also supports copying BGRA textures and copying |
34 EXTERNAL_OES texture to BGRA texture, which is not explicitly | 34 EXTERNAL_OES texture to BGRA texture, which is not explicitly |
35 granted by EXT_texture_format_BGRA8888. | 35 granted by EXT_texture_format_BGRA8888. |
36 | 36 |
37 New Procedures and Functions | 37 New Procedures and Functions |
38 | 38 |
39 The command | 39 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, |
| 40 GLenum dest_id, GLint level, |
| 41 GLint internal_format, GLenum dest_type) |
40 | 42 |
41 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, | 43 Copies the contents of texture referred to by <source_id> to texture |
42 GLenum dest_id, | 44 <dest_id>. |
43 GLint internal_format, GLenum dest_type) | |
44 | 45 |
45 Copies the contents of texture referred to by <source_id> to <dest_id> | 46 Texture level 0 is copied from the source image to level <level> of the |
46 texture. If <source_id> texture is not defined or has different dimension | 47 destination texture. The level parameter must be 0 at present. |
47 to <dest_id> texture, define <source_id> texture same to <dest_id> texture. | |
48 | |
49 Texture level 0 is copied from the source image to level 0 of the | |
50 destination texture. | |
51 | 48 |
52 The internal format of the destination texture is converted to that | 49 The internal format of the destination texture is converted to that |
53 specified by <internal_format>. Must be one of the following symbolic | 50 specified by <internal_format>. Must be one of the following symbolic |
54 constants: GL_RGB, GL_RGBA | 51 constants: GL_RGB, GL_RGBA |
55 The internal format of <source_id> texture must be one of the following | 52 The internal format of <source_id> texture must be one of the following |
56 symbolic constants: GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, | 53 symbolic constants: GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, |
57 GL_RGBA, GL_BGRA_EXT | 54 GL_RGBA, GL_BGRA_EXT |
58 When <source_id> texture doens't contain a superset of the component | 55 When <source_id> texture doens't contain a superset of the component |
59 required by <internal_format>, fill the components by following rules. | 56 required by <internal_format>, fill the components by following rules. |
60 | 57 |
(...skipping 22 matching lines...) Expand all Loading... |
83 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture | 80 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture |
84 objects. | 81 objects. |
85 | 82 |
86 INVALID_VALUE is generated if textures corresponding to <dest_id> have not | 83 INVALID_VALUE is generated if textures corresponding to <dest_id> have not |
87 been bound as GL_TEXTURE_2D object. | 84 been bound as GL_TEXTURE_2D object. |
88 | 85 |
89 INVALID_VALUE is generated if textures corresponding to <source_id> have not | 86 INVALID_VALUE is generated if textures corresponding to <source_id> have not |
90 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or | 87 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or |
91 GL_TEXTURE_EXTERNAL_OES objects. | 88 GL_TEXTURE_EXTERNAL_OES objects. |
92 | 89 |
93 INVALID_VALUE is generated if level 0 of the source texture is not defined. | 90 INVALID_VALUE is generated if <level> is not a valid level of the |
94 | 91 destination texture, or if level 0 of the source texture is not defined. |
95 The command | |
96 | |
97 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, | |
98 GLenum dest_id, | |
99 GLint xoffset, GLint yoffset) | |
100 | |
101 Copies the sub contents of texture referred to by <source_id> to <dest_id> | |
102 texture without redefining <dest_id> texture. | |
103 | |
104 See CopyTextureCHROMIUM for the interpretation of the <target> arguments. | |
105 | |
106 <xoffset> and <yoffset> specify a texel offset in the x and y direction | |
107 respectively within the destination texture. | |
108 | |
109 INVALID_OPERATION is generated if source internal_format and destination | |
110 internal_format are not one of the valid formats described above. | |
111 | |
112 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. | |
113 | |
114 INVALID_OPERATION is generated if the destination texture has not been | |
115 defined. | |
116 | |
117 INVALID_VALUE is generated if level 0 of the source texture or | |
118 the destination texture is not defined. | |
119 | |
120 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. | |
121 | |
122 INVALID_VALUE is generated if (<xoffset> + source_width) > dest_width, | |
123 or (<yoffset> + source_height) > dest_height. | |
124 | 92 |
125 Errors | 93 Errors |
126 | 94 |
127 None. | 95 None. |
128 | 96 |
129 New Tokens | 97 New Tokens |
130 | 98 |
131 None. | 99 None. |
132 | 100 |
133 New State | 101 New State |
134 | 102 |
135 None. | 103 None. |
136 | 104 |
137 Revision History | 105 Revision History |
138 | 106 |
139 8/1/2011 Documented the extension | 107 8/1/2011 Documented the extension |
140 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() | 108 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() |
141 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. | 109 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. |
OLD | NEW |