15bd8deadSopenharmony_ci 25bd8deadSopenharmony_ciName 35bd8deadSopenharmony_ci 45bd8deadSopenharmony_ci SUN_get_transparent_index 55bd8deadSopenharmony_ci 65bd8deadSopenharmony_ciName Strings 75bd8deadSopenharmony_ci 85bd8deadSopenharmony_ci GLX_SUN_get_transparent_index 95bd8deadSopenharmony_ci 105bd8deadSopenharmony_ciContact 115bd8deadSopenharmony_ci 125bd8deadSopenharmony_ci Ron Bielaski, Sun (Ron.Bielaski 'at' eng.sun.com) 135bd8deadSopenharmony_ci Jack Middleton, Sun (Jack.Middleton 'at' eng.sun.com) 145bd8deadSopenharmony_ci 155bd8deadSopenharmony_ciStatus 165bd8deadSopenharmony_ci 175bd8deadSopenharmony_ci Shipping 185bd8deadSopenharmony_ci 195bd8deadSopenharmony_ciVersion 205bd8deadSopenharmony_ci 215bd8deadSopenharmony_ci $Date: 1999/12/28 01:40:37 $ $Revision: 1.5 $ 225bd8deadSopenharmony_ci SUN Date: 99/06/25 15:07:02 Revision: 1.2 235bd8deadSopenharmony_ci 245bd8deadSopenharmony_ciNumber 255bd8deadSopenharmony_ci 265bd8deadSopenharmony_ci 183 275bd8deadSopenharmony_ci 285bd8deadSopenharmony_ciDependencies 295bd8deadSopenharmony_ci 305bd8deadSopenharmony_ci None 315bd8deadSopenharmony_ci 325bd8deadSopenharmony_ciOverview 335bd8deadSopenharmony_ci 345bd8deadSopenharmony_ci Gets the transparent pixel index for an overlay/underlay window pair. 355bd8deadSopenharmony_ci 365bd8deadSopenharmony_ciNew Procedures and Functions 375bd8deadSopenharmony_ci 385bd8deadSopenharmony_ci Status glXGetTransparentIndexSUN(Display *dpy, 395bd8deadSopenharmony_ci Window overlay, 405bd8deadSopenharmony_ci Window underlay, 415bd8deadSopenharmony_ci unsigned long *pTransparentIndex) 425bd8deadSopenharmony_ci 435bd8deadSopenharmony_ciNew Tokens 445bd8deadSopenharmony_ci 455bd8deadSopenharmony_ci None 465bd8deadSopenharmony_ci 475bd8deadSopenharmony_ciAdditions to the GL 1.2.1 Specification 485bd8deadSopenharmony_ci 495bd8deadSopenharmony_ci None 505bd8deadSopenharmony_ci 515bd8deadSopenharmony_ciAdditions to the WGL / AGL Specifications 525bd8deadSopenharmony_ci 535bd8deadSopenharmony_ci None 545bd8deadSopenharmony_ci 555bd8deadSopenharmony_ciAdditions to Chapter ??? of the GLX 1.3 Specification 565bd8deadSopenharmony_ci 575bd8deadSopenharmony_ci (the following needs to be restructured as changes to the spec, 585bd8deadSopenharmony_ci rather than a man page) 595bd8deadSopenharmony_ci 605bd8deadSopenharmony_ci dpy Specifies the connection to the X server 615bd8deadSopenharmony_ci 625bd8deadSopenharmony_ci overlay Specifies the overlay Window of an 635bd8deadSopenharmony_ci overlay/underlay pair 645bd8deadSopenharmony_ci 655bd8deadSopenharmony_ci underlay Specifies the underlay Window. 665bd8deadSopenharmony_ci 675bd8deadSopenharmony_ci pTransparentIndex Specifies a pointer to the index to be returned 685bd8deadSopenharmony_ci 695bd8deadSopenharmony_ci Return 705bd8deadSopenharmony_ci ------ 715bd8deadSopenharmony_ci 725bd8deadSopenharmony_ci If underlay is a Window that has previously been made 735bd8deadSopenharmony_ci the current GLXDrawable by the client and a transparent index 745bd8deadSopenharmony_ci is available for the Window overlay, returns 1 and sets 755bd8deadSopenharmony_ci *pTransparentIndex to the value of the index. Otherwise returns 0. 765bd8deadSopenharmony_ci 775bd8deadSopenharmony_ci If underlay is equal to None, and if a transparent 785bd8deadSopenharmony_ci index is available for overlay that is independent of the 795bd8deadSopenharmony_ci underlying Windows returns 1 and sets *pTransparentIndex to 805bd8deadSopenharmony_ci the index. Otherwise 0 is returned. 815bd8deadSopenharmony_ci 825bd8deadSopenharmony_ci 835bd8deadSopenharmony_ci 845bd8deadSopenharmony_ci Description 855bd8deadSopenharmony_ci ----------- 865bd8deadSopenharmony_ci For some overlay Windows (windows created with a visual with GLX_LEVEL > 0), 875bd8deadSopenharmony_ci there is a particular color index that when drawn to the framebuffer 885bd8deadSopenharmony_ci causes pixels in the Window to be transparent. That is, pixels in the overlay 895bd8deadSopenharmony_ci drawn with the transparent index are invisible and the pixels of window(s) 905bd8deadSopenharmony_ci beneath the overlay are displayed. 915bd8deadSopenharmony_ci 925bd8deadSopenharmony_ci On some systems, the transparent pixel index is a constant. 935bd8deadSopenharmony_ci 945bd8deadSopenharmony_ci On other hardware, the transparent index is a function of the underlying 955bd8deadSopenharmony_ci Window (GLX_LEVEL <= 0). 965bd8deadSopenharmony_ci 975bd8deadSopenharmony_ci Applications may use glXGetTransparentIndexSUN to determine whether 985bd8deadSopenharmony_ci a transparent index is available for a particular pair of windows 995bd8deadSopenharmony_ci and the value of the transparent index. 1005bd8deadSopenharmony_ci 1015bd8deadSopenharmony_ci If glXGetTransparentIndexSun returns 1 after being called with 1025bd8deadSopenharmony_ci underlay equal to a valid window, then the transparent index is 1035bd8deadSopenharmony_ci valid only for underlay. underlay must have been previously made 1045bd8deadSopenharmony_ci the current GLXDrawable of the thread. 1055bd8deadSopenharmony_ci 1065bd8deadSopenharmony_ci If a Window other than underlay is directly beneath overlay the 1075bd8deadSopenharmony_ci results of drawing with the transparentIndex are undefined. 1085bd8deadSopenharmony_ci 1095bd8deadSopenharmony_ci If glXGetTransparentIndexSUN returns 1 when the underlay argument is 1105bd8deadSopenharmony_ci set to None, the transparentIndex is valid for all underlay windows. 1115bd8deadSopenharmony_ci 1125bd8deadSopenharmony_ci 1135bd8deadSopenharmony_ci Caveats 1145bd8deadSopenharmony_ci ------- 1155bd8deadSopenharmony_ci When the transparent index is valid only for a particular underlay window, 1165bd8deadSopenharmony_ci applications should follow the following guidelines to insure proper 1175bd8deadSopenharmony_ci operation. 1185bd8deadSopenharmony_ci 1195bd8deadSopenharmony_ci It is the application's responsibility to ensure that the only window 1205bd8deadSopenharmony_ci ever underneath overlay is underlay. 1215bd8deadSopenharmony_ci 1225bd8deadSopenharmony_ci Ideally, overlay should be created as a child of underlay with the same 1235bd8deadSopenharmony_ci size and shape. And the application should reshape the overlay window 1245bd8deadSopenharmony_ci whenever the underlay window is reshaped. This insures that the 1255bd8deadSopenharmony_ci transparent index makes the overlay transparent. 1265bd8deadSopenharmony_ci 1275bd8deadSopenharmony_ciGLX Protocol 1285bd8deadSopenharmony_ci 1295bd8deadSopenharmony_ci No new protocol is need 1305bd8deadSopenharmony_ci 1315bd8deadSopenharmony_ciErrors 1325bd8deadSopenharmony_ci 1335bd8deadSopenharmony_ci BadDrawable if overlay is not a valid Window or if underlay is 1345bd8deadSopenharmony_ci not a valid Window (except None). 1355bd8deadSopenharmony_ci 1365bd8deadSopenharmony_ciNew State 1375bd8deadSopenharmony_ci 1385bd8deadSopenharmony_ci None 1395bd8deadSopenharmony_ci 1405bd8deadSopenharmony_ciNew Implementation Dependent State 1415bd8deadSopenharmony_ci 1425bd8deadSopenharmony_ci None 1435bd8deadSopenharmony_ci 1445bd8deadSopenharmony_ciRevision History 1455bd8deadSopenharmony_ci 1465bd8deadSopenharmony_ci 6/24/99 (Jon Leech, SGI) - Added fields from the new extension template. 1475bd8deadSopenharmony_ci 148