OLD | NEW |
1 Name | 1 Name |
2 | 2 |
3 CHROMIUM_image | 3 CHROMIUM_image |
4 | 4 |
5 Name Strings | 5 Name Strings |
6 | 6 |
7 GL_CHROMIUM_image | 7 GL_CHROMIUM_image |
8 | 8 |
9 Version | 9 Version |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 Issues | 25 Issues |
26 | 26 |
27 None | 27 None |
28 | 28 |
29 New Tokens | 29 New Tokens |
30 | 30 |
31 None | 31 None |
32 | 32 |
33 New Procedures and Functions | 33 New Procedures and Functions |
34 | 34 |
35 GLuint CreateImageCHROMIUM(ClientBuffer buffer, | 35 GLuint CreateImageCHROMIUM(ClientBuffer buffer, |
36 GLsizei width, | 36 GLsizei width, |
37 GLsizei height, | 37 GLsizei height, |
38 GLenum internalformat) | 38 GLenum internalformat) |
39 | 39 |
40 Create an image from <buffer> with width equal to <width> and | 40 Create an image from <buffer> with width equal to <width> and |
41 height equal to <height> and format equal to <internalformat>. | 41 height equal to <height> and format equal to <internalformat>. |
42 | 42 |
43 Returns a unique identifier for the image that could be used in | 43 Returns a unique identifier for the image that could be used in |
44 subsequent operations. | 44 subsequent operations. |
45 | 45 |
46 INVALID_VALUE is generated if <width> or <height> is nonpositive. | 46 INVALID_VALUE is generated if <width> or <height> is nonpositive. |
47 | 47 |
48 INVALID_VALUE is generated if <internalformat> is not one of | 48 INVALID_VALUE is generated if <internalformat> is not one of |
49 RED, RGB, RGBA, BGRA_EXT, ATC_RGB_AMD, ATC_RGBA_INTERPOLATED_ALPHA_AMD, | 49 RED, RGB, RGBA, BGRA_EXT, ATC_RGB_AMD, ATC_RGBA_INTERPOLATED_ALPHA_AMD, |
50 COMPRESSED_RGB_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT5_EXT or | 50 COMPRESSED_RGB_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT5_EXT or |
51 ETC1_RGB8_OES. | 51 ETC1_RGB8_OES. |
52 | 52 |
53 void DestroyImageCHROMIUM(GLuint image_id) | 53 void DestroyImageCHROMIUM(GLuint image_id) |
54 | 54 |
55 Frees the image previously created by a call to CreateImageCHROMIUM. | 55 Frees the image previously created by a call to CreateImageCHROMIUM. |
56 | 56 |
57 INVALID_OPERATION is generated if <image_id> is not a valid image id. | 57 INVALID_OPERATION is generated if <image_id> is not a valid image id. |
58 | 58 |
| 59 void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) |
| 60 |
| 61 Binds the texture object currently bound to <target> to the image |
| 62 <image_id> previously created by a call to CreateImageCHROMIUM. |
| 63 |
| 64 INVALID_OPERATION is generated if no texture is bound to <target>. |
| 65 |
| 66 INVALID_OPERATION is generated if <image_id> is not a valid image id. |
| 67 |
| 68 void BindTexImage2DWithInternalformatCHROMIUM(GLenum target, |
| 69 GLenum internalformat, |
| 70 GLint image_id) |
| 71 |
| 72 Behaves exactly like BindTexImage2DCHROMIUM, but forces the |
| 73 texture to use the specified <internalformat> rather than the |
| 74 default one. This function is provided solely as a workaround for |
| 75 driver bugs on some platforms. BindTexImage2DCHROMIUM should be |
| 76 used by almost all users. |
| 77 |
| 78 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint image_id) |
| 79 |
| 80 Unbinds the texture object bound to <target> from the image |
| 81 <image_id> previously created by a call to CreateImageCHROMIUM. If |
| 82 the texture is not currently bound to the image, has no effect, |
| 83 though may still generate errors. |
| 84 |
| 85 INVALID_OPERATION is generated if no texture is bound to <target>. |
| 86 |
| 87 INVALID_OPERATION is generated if <image_id> is not a valid image id. |
| 88 |
59 Dependencies on EXT_texture_format_BGRA8888 | 89 Dependencies on EXT_texture_format_BGRA8888 |
60 | 90 |
61 If EXT_texture_format_BGRA8888 is not supported: | 91 If EXT_texture_format_BGRA8888 is not supported: |
62 * delete any reference to the BGRA_EXT format. | 92 * delete any reference to the BGRA_EXT format. |
63 | 93 |
64 Dependencies on ARB_texture_rg | 94 Dependencies on ARB_texture_rg |
65 | 95 |
66 If ARB_texture_rg is not supported: | 96 If ARB_texture_rg is not supported: |
67 * delete any reference to the RED format. | 97 * delete any reference to the RED format. |
68 | 98 |
(...skipping 24 matching lines...) Expand all Loading... |
93 | 123 |
94 Revision History | 124 Revision History |
95 | 125 |
96 5/9/2013 Documented the extension | 126 5/9/2013 Documented the extension |
97 4/30/2014 Moved usage flag to creation function. | 127 4/30/2014 Moved usage flag to creation function. |
98 10/7/2014 Remove map/unmap API. | 128 10/7/2014 Remove map/unmap API. |
99 4/6/2015 Add BGRA_EXT format. | 129 4/6/2015 Add BGRA_EXT format. |
100 2/7/2015 Add R8 format. | 130 2/7/2015 Add R8 format. |
101 5/13/2015 Add compressed formats. | 131 5/13/2015 Add compressed formats. |
102 11/5/2015 Change R8 format to RED. | 132 11/5/2015 Change R8 format to RED. |
OLD | NEW |