• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name
2
3    EXT_texture_format_BGRA8888
4
5Name Strings
6
7    GL_EXT_texture_format_BGRA8888
8
9Notice
10
11    Copyright Imagination Technologies Limited, 2005.
12
13Contact
14
15    Imagination Technologies
16
17Status
18
19    Shipping
20
21Version
22
23    1.3, 12 September 2016
24
25Number
26
27    OpenGL ES Extension #51
28
29Dependencies
30
31    The extension is written against the OpenGLES 1.0 Specification,
32    which in turn is based OpenGL 1.3. Thus this spec is effectively
33    written against OpenGL 1.3 but does not address sections explicitly
34    removed or reduced by OpenGL-ES 1.0.
35
36    This extension has interactions with the OpenGL ES 2.0 API.
37
38Overview
39
40    This extension provides an additional format and type combination
41    for use when specifying texture data.  The current allowed combinations
42    are:
43
44    Internal Format     External Format Type                    Bytes per Pixel
45    ---------------     --------------- ----                    ---------------
46    RGBA                RGBA             UNSIGNED_BYTE          4
47    RGB                 RGB              UNSIGNED_BYTE          3
48    RGBA                RGBA             UNSIGNED_SHORT_4_4_4_4 2
49    RGBA                RGBA             UNSIGNED_SHORT_5_5_5_1 2
50    RGB                 RGB              UNSIGNED_SHORT_5_6_5   2
51    LUMINANCE_ALPHA     LUMINANCE_ALPHA  UNSIGNED_BYTE          2
52    LUMINANCE           LUMINANCE        UNSIGNED_BYTE          1
53    ALPHA               ALPHA            UNSIGNED_BYTE          1
54
55
56   This table is extended to include format BGRA_EXT and type UNSIGNED_BYTE:
57
58    Internal Format     External Format Type                    Bytes per Pixel
59    ---------------     --------------- ----                    ---------------
60    BGRA_EXT            BGRA_EXT        UNSIGNED_BYTE           4
61    RGBA                RGBA            UNSIGNED_BYTE           4
62    RGB                 RGB             UNSIGNED_BYTE           3
63    RGBA                RGBA            UNSIGNED_SHORT_4_4_4_4  2
64    RGBA                RGBA            UNSIGNED_SHORT_5_5_5_1  2
65    RGB                 RGB             UNSIGNED_SHORT_5_6_5    2
66    LUMINANCE_ALPHA     LUMINANCE_ALPHA UNSIGNED_BYTE           2
67    LUMINANCE           LUMINANCE       UNSIGNED_BYTE           1
68    ALPHA               ALPHA           UNSIGNED_BYTE           1
69
70    This format is renderable in versions of OpenGL ES from 2.0 onwards.
71
72IP Status
73
74    Unknown
75
76Issues
77
78    None.
79
80New Procedures and Functions
81
82    None.
83
84New Tokens
85
86    Accepted by the <format> and <internalformat> parameters of TexImage2D
87    and the <format> parameter of TexSubImage2D:
88
89        GL_BGRA_EXT                                     0x80E1
90
91Additions to Chapter 2 of the OpenGL 1.3 Specification (OpenGL Operation)
92
93    None
94
95Additions to Chapter 3 of the OpenGL 1.3 Specification (Rasterization)
96
97    None
98
99Additions to Chapter 4 of the OpenGL 1.3 Specification (Per-Fragment Operations and the Frame Buffer)
100
101    None
102
103Additions to Chapter 5 of the OpenGL 1.3 Specification (Special Functions)
104
105    None
106
107Additions to Chapter 6 of the OpenGL 1.3 Specification (State and State Requests)
108
109    None
110
111Additions to the GLX / WGL / AGL Specifications
112
113    None
114
115GLX Protocol
116
117    None
118
119Errors
120
121    None
122
123New State
124
125    None
126
127New Implementation Dependent State
128
129    None
130
131Interactions with the OpenGL ES 2.0 specification
132
133    Add the following entry to Table 4.5: Renderbuffer image formats,
134    showing their renderable type (color-, depth-, or stencil-renderable)
135    and the number of bits each format contains for color (R, G, B, A),
136    depth (D), and stencil (S) components:
137
138    |-----------------|------------------|------|------|------|------|------|------|
139    | Sized           | Renderable       | R    | G    | B    | A    | D    | S    |
140    | Internal Format | Type             | bits | bits | bits | bits | bits | bits |
141    |-----------------|------------------|------|------|------|------|------|------|
142    | GL_BGRA_EXT     | color-renderable | 8    | 8    | 8    | 8    |      |      |
143    |-----------------|------------------|------|------|------|------|------|------|
144
145Revision History
146
147    0.1,  26/04/2005  sks:  Initial revision.
148    1.0,  08/05/2005  gdc:  Final revision.
149    1.1,  19/03/2009  Jon Leech: add extension number and fix tabbing /
150                      whitespace issues.
151    1.2,  26/10/2009  Benj Lipchak: add EXT suffix to BGRA token.
152    1.3,  12/09/2016  Tobias Hector: Added interaction with ES 2.0 (made it renderable).
153                      Also made revision dates use the same (dd/mm/yyyy) format.