Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 GLenum dest_id, GLint level, | 40 GLenum dest_id, GLint level, |
| 41 GLint internal_format, GLenum dest_type) | 41 GLint internal_format, GLenum dest_type) |
| 42 | 42 |
| 43 Copies the contents of texture referred to by <source_id> to texture | 43 Copies the contents of texture referred to by <source_id> to texture |
| 44 <dest_id>. | 44 <dest_id>. |
| 45 | 45 |
| 46 Texture level 0 is copied from the source image to level <level> of the | 46 Texture level 0 is copied from the source image to level <level> of the |
| 47 destination texture. The level parameter must be 0 at present. | 47 destination texture. The level parameter must be 0 at present. |
| 48 | 48 |
| 49 The internal format of the destination texture is converted to that | 49 The internal format of the destination texture is converted to that |
| 50 specified by <internal_format>. | 50 specified by <internal_format>. Must be one of the following symbolic |
| 51 constants: GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA | |
| 52 When <source_id> texture doens't contain a superset of the component | |
| 53 required by <internal_format>, fill the components by following rules. | |
| 54 | |
| 55 » source format color components | |
| 56 » ================================================= | |
| 57 » GL_ALPHA (0, 0, 0, A) | |
| 58 » GL_LUMINANCE (L, L, L, 1) | |
| 59 » GL_LUMINANCE_ALPHA (L, L, L, A) | |
| 60 » GL_RGB (R, G, B, 1) | |
| 61 » GL_RGBA (R, G, B, A) | |
|
reveman
2014/08/11 20:48:46
nit: please use spaces instead of tabs.
dshwang
2014/08/12 07:03:01
Done.
| |
| 51 | 62 |
| 52 The format type of the destination texture is converted to that specified | 63 The format type of the destination texture is converted to that specified |
| 53 by <dest_type>. | 64 by <dest_type>. |
| 54 | 65 |
| 55 <target> uses the same parameters as TexImage2D. | 66 <target> uses the same parameters as TexImage2D. |
| 56 | 67 |
| 57 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. | 68 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. |
| 58 | 69 |
| 59 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture | 70 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture |
| 60 objects. | 71 objects. |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 79 | 90 |
| 80 New State | 91 New State |
| 81 | 92 |
| 82 None. | 93 None. |
| 83 | 94 |
| 84 Revision History | 95 Revision History |
| 85 | 96 |
| 86 8/1/2011 Documented the extension | 97 8/1/2011 Documented the extension |
| 87 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() | 98 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() |
| 88 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. | 99 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. |
| OLD | NEW |