15bd8deadSopenharmony_ciName 25bd8deadSopenharmony_ci 35bd8deadSopenharmony_ci EXT_bgra 45bd8deadSopenharmony_ci 55bd8deadSopenharmony_ciName Strings 65bd8deadSopenharmony_ci 75bd8deadSopenharmony_ci GL_EXT_bgra 85bd8deadSopenharmony_ci 95bd8deadSopenharmony_ciVersion 105bd8deadSopenharmony_ci 115bd8deadSopenharmony_ci Microsoft revision 1.0, May 19, 1997 (drewb) 125bd8deadSopenharmony_ci $Date: 1999/04/03 08:40:34 $ $Revision: 1.4 $ 135bd8deadSopenharmony_ci 145bd8deadSopenharmony_ciNumber 155bd8deadSopenharmony_ci 165bd8deadSopenharmony_ci 129 175bd8deadSopenharmony_ci 185bd8deadSopenharmony_ciDependencies 195bd8deadSopenharmony_ci 205bd8deadSopenharmony_ci None 215bd8deadSopenharmony_ci 225bd8deadSopenharmony_ciOverview 235bd8deadSopenharmony_ci 245bd8deadSopenharmony_ci EXT_bgra extends the list of host-memory color formats. 255bd8deadSopenharmony_ci Specifically, it provides formats which match the memory layout of 265bd8deadSopenharmony_ci Windows DIBs so that applications can use the same data in both 275bd8deadSopenharmony_ci Windows API calls and OpenGL pixel API calls. 285bd8deadSopenharmony_ci 295bd8deadSopenharmony_ciNew Procedures and Functions 305bd8deadSopenharmony_ci 315bd8deadSopenharmony_ci None 325bd8deadSopenharmony_ci 335bd8deadSopenharmony_ciNew Tokens 345bd8deadSopenharmony_ci 355bd8deadSopenharmony_ci Accepted by the <format> parameter of DrawPixels, GetTexImage, 365bd8deadSopenharmony_ci ReadPixels, TexImage1D, and TexImage2D: 375bd8deadSopenharmony_ci 385bd8deadSopenharmony_ci BGR_EXT 0x80E0 395bd8deadSopenharmony_ci BGRA_EXT 0x80E1 405bd8deadSopenharmony_ci 415bd8deadSopenharmony_ciAdditions to Chapter 2 of the 1.1 Specification (OpenGL Operation) 425bd8deadSopenharmony_ci 435bd8deadSopenharmony_ci None 445bd8deadSopenharmony_ci 455bd8deadSopenharmony_ciAdditions to Chapter 3 of the 1.1 Specification (Rasterization) 465bd8deadSopenharmony_ci 475bd8deadSopenharmony_ci One entry is added to table 3.5 (DrawPixels and ReadPixels formats). 485bd8deadSopenharmony_ci The new table is: 495bd8deadSopenharmony_ci 505bd8deadSopenharmony_ci Name Type Elements Target Buffer 515bd8deadSopenharmony_ci ---- ---- -------- ------ 525bd8deadSopenharmony_ci COLOR_INDEX Index Color Index Color 535bd8deadSopenharmony_ci STENCIL_INDEX Index Stencil value Stencil 545bd8deadSopenharmony_ci DEPTH_COMPONENT Component Depth value Depth 555bd8deadSopenharmony_ci RED Component R Color 565bd8deadSopenharmony_ci GREEN Component G Color 575bd8deadSopenharmony_ci BLUE Component B Color 585bd8deadSopenharmony_ci ALPHA Component A Color 595bd8deadSopenharmony_ci RGB Component R, G, B Color 605bd8deadSopenharmony_ci RGBA Component R, G, B, A Color 615bd8deadSopenharmony_ci LUMINANCE Component Luminance value Color 625bd8deadSopenharmony_ci LUMINANCE_ALPHA Component Luminance value, A Color 635bd8deadSopenharmony_ci BGR_EXT Component B, G, R Color 645bd8deadSopenharmony_ci BGRA_EXT Component B, G, R, A Color 655bd8deadSopenharmony_ci 665bd8deadSopenharmony_ci Table 3.5: DrawPixels and ReadPixels formats. The third column 675bd8deadSopenharmony_ci gives a description of and the number and order of elements in a 685bd8deadSopenharmony_ci group. 695bd8deadSopenharmony_ci 705bd8deadSopenharmony_ciAdditions to Chapter 4 of the 1.1 Specification (Per-Fragment Operations 715bd8deadSopenharmony_ciand the Framebuffer) 725bd8deadSopenharmony_ci 735bd8deadSopenharmony_ci The new format is added to the discussion of Obtaining Pixels from 745bd8deadSopenharmony_ci the Framebuffer. It should read " If the <format> is one of RED, 755bd8deadSopenharmony_ci GREEN, BLUE, ALPHA, RGB, RGBA, BGR_EXT, BGRA_EXT, LUMINANCE, or 765bd8deadSopenharmony_ci LUMINANCE_ALPHA, and the GL is in color index mode, then the color 775bd8deadSopenharmony_ci index is obtained." 785bd8deadSopenharmony_ci 795bd8deadSopenharmony_ci The new format is added to the discussion of Index Lookup. It should 805bd8deadSopenharmony_ci read "If <format> is one of RED, GREEN, BLUE, ALPHA, RGB, RGBA, 815bd8deadSopenharmony_ci BGR_EXT, BGRA_EXT, LUMINANCE, or LUMINANCE_ALPHA, then the index is 825bd8deadSopenharmony_ci used to reference 4 tables of color components: PIXEL_MAP_I_TO_R, 835bd8deadSopenharmony_ci PIXEL_MAP_I_TO_G, PIXEL_MAP_I_TO_B, and PIXEL_MAP_I_TO_A." 845bd8deadSopenharmony_ci 855bd8deadSopenharmony_ciAdditions to Chapter 5 of the GL Specification (Special Functions) 865bd8deadSopenharmony_ci 875bd8deadSopenharmony_ci None 885bd8deadSopenharmony_ci 895bd8deadSopenharmony_ciAdditions to Chapter 6 of the GL Specification (State and State 905bd8deadSopenharmony_ciRequests) 915bd8deadSopenharmony_ci 925bd8deadSopenharmony_ci None 935bd8deadSopenharmony_ci 945bd8deadSopenharmony_ciRevision History 955bd8deadSopenharmony_ci 965bd8deadSopenharmony_ci Original draft, revision 0.9, October 13, 1995 (drewb) 975bd8deadSopenharmony_ci Created 985bd8deadSopenharmony_ci Minor revision, revision 1.0, May 19, 1997 (drewb) 995bd8deadSopenharmony_ci Removed Microsoft Confidential. 100