| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 The command | 34 The command |
| 35 | 35 |
| 36 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, | 36 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, |
| 37 GLenum dest_id, | 37 GLenum dest_id, |
| 38 GLint internal_format, GLenum dest_type, | 38 GLint internal_format, GLenum dest_type, |
| 39 GLboolean unpack_flip_y, | 39 GLboolean unpack_flip_y, |
| 40 GLboolean unpack_premultiply_alpha, | 40 GLboolean unpack_premultiply_alpha, |
| 41 GLboolean unpack_unmultiply_alpha) | 41 GLboolean unpack_unmultiply_alpha) |
| 42 | 42 |
| 43 Copies the contents of texture referred to by <source_id> to <dest_id> | 43 Copies the contents of <source_id> texture to <dest_id> texture. |
| 44 texture. If <source_id> texture is not defined or has different dimension | |
| 45 to <dest_id> texture, define <source_id> texture same to <dest_id> texture. | |
| 46 | 44 |
| 47 Texture level 0 is copied from the source image to level 0 of the | 45 Texture level 0 is copied from the source image to level 0 of the |
| 48 destination texture. | 46 destination texture. |
| 49 | 47 |
| 50 The internal format of the destination texture is converted to that | 48 The internal format of the destination texture is converted to that |
| 51 specified by <internal_format>. Must be one of the following symbolic | 49 specified by <internal_format>. Must be one of the following symbolic |
| 52 constants: GL_RGB, GL_RGBA | 50 constants: GL_RGB, GL_RGBA |
| 53 The internal format of <source_id> texture must be one of the following | 51 The internal format of <source_id> texture must be one of the following |
| 54 symbolic constants: GL_R8, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, | 52 symbolic constants: GL_R8, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, |
| 55 GL_RGB, GL_RGBA, GL_BGRA_EXT, GL_RGB_YCBCR_422_CHROMIUM | 53 GL_RGB, GL_RGBA, GL_BGRA_EXT, GL_RGB_YCBCR_422_CHROMIUM |
| (...skipping 21 matching lines...) Expand all Loading... |
| 77 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true, | 75 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true, |
| 78 no alpha processing occurs. This is the equivalent of having neither flag | 76 no alpha processing occurs. This is the equivalent of having neither flag |
| 79 set. | 77 set. |
| 80 | 78 |
| 81 INVALID_OPERATION is generated if <internal_format> is not one of the valid
formats | 79 INVALID_OPERATION is generated if <internal_format> is not one of the valid
formats |
| 82 described above. | 80 described above. |
| 83 | 81 |
| 84 INVALID_OPERATION is generated if the internal format of <source_id> is not
one of | 82 INVALID_OPERATION is generated if the internal format of <source_id> is not
one of |
| 85 formats from the table above. | 83 formats from the table above. |
| 86 | 84 |
| 87 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. | 85 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D or |
| 86 GL_TEXTURE_RECTANGLE_ARB. |
| 88 | 87 |
| 89 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture | 88 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture |
| 90 objects. | 89 objects. |
| 91 | 90 |
| 92 INVALID_VALUE is generated if textures corresponding to <dest_id> have not | 91 INVALID_VALUE is generated if textures corresponding to <dest_id> have not |
| 93 been bound as GL_TEXTURE_2D object. | 92 been bound as GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB object. |
| 94 | 93 |
| 95 INVALID_VALUE is generated if textures corresponding to <source_id> have not | 94 INVALID_VALUE is generated if textures corresponding to <source_id> have not |
| 96 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or | 95 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or |
| 97 GL_TEXTURE_EXTERNAL_OES objects. | 96 GL_TEXTURE_EXTERNAL_OES objects. |
| 98 | 97 |
| 99 INVALID_VALUE is generated if level 0 of the source texture is not defined. | 98 INVALID_VALUE is generated if level 0 of the source texture is not defined. |
| 100 | 99 |
| 101 The command | 100 The command |
| 102 | 101 |
| 103 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, | 102 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 118 <xoffset> and <yoffset> specify a texel offset in the x and y direction | 117 <xoffset> and <yoffset> specify a texel offset in the x and y direction |
| 119 respectively within the destination texture. | 118 respectively within the destination texture. |
| 120 | 119 |
| 121 <x> and <y> specify specify a texel offset in the x and y direction | 120 <x> and <y> specify specify a texel offset in the x and y direction |
| 122 respectively within the source texture. | 121 respectively within the source texture. |
| 123 | 122 |
| 124 <width> specifies the width of the texture subimage. | 123 <width> specifies the width of the texture subimage. |
| 125 | 124 |
| 126 <height> specifies the width of the texture subimage. | 125 <height> specifies the width of the texture subimage. |
| 127 | 126 |
| 127 INVALID_VALUE is generated if either <source_id> texture or <dest_id> |
| 128 texture is not defined. |
| 129 |
| 128 INVALID_OPERATION is generated if source internal_format and destination | 130 INVALID_OPERATION is generated if source internal_format and destination |
| 129 internal_format are not one of the valid formats described above. | 131 internal_format are not one of the valid formats described above. |
| 130 | 132 |
| 131 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. | 133 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D or |
| 134 GL_TEXTURE_RECTANGLE_ARB. |
| 132 | 135 |
| 133 INVALID_OPERATION is generated if the destination texture has not been | 136 INVALID_OPERATION is generated if the destination texture has not been |
| 134 defined. | 137 defined. |
| 135 | 138 |
| 139 INVALID_VALUE is generated if <dest_id> texture is not bound as |
| 140 GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB. |
| 141 |
| 136 INVALID_VALUE is generated if level 0 of the source texture or | 142 INVALID_VALUE is generated if level 0 of the source texture or |
| 137 the destination texture is not defined. | 143 the destination texture is not defined. |
| 138 | 144 |
| 139 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. | 145 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. |
| 140 | 146 |
| 141 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width, | 147 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width, |
| 142 or (<yoffset> + <height>) > dest_height. | 148 or (<yoffset> + <height>) > dest_height. |
| 143 | 149 |
| 144 Dependencies on ARB_texture_rg | 150 Dependencies on ARB_texture_rg |
| 145 | 151 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 163 | 169 |
| 164 None. | 170 None. |
| 165 | 171 |
| 166 Revision History | 172 Revision History |
| 167 | 173 |
| 168 8/1/2011 Documented the extension | 174 8/1/2011 Documented the extension |
| 169 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() | 175 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() |
| 170 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target | 176 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target |
| 171 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and | 177 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and |
| 172 unpack_unmultiply_alpha to both commands. | 178 unpack_unmultiply_alpha to both commands. |
| 179 22/12/2015 Add GL_TEXTURE_RECTANGLE_ARB as valid dest_id target |
| OLD | NEW |