github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xcb/include/X11/extensions/multibufconst.h (about)

     1  /*
     2  Copyright 1989, 1998  The Open Group
     3  
     4  Permission to use, copy, modify, distribute, and sell this software and its
     5  documentation for any purpose is hereby granted without fee, provided that
     6  the above copyright notice appear in all copies and that both that
     7  copyright notice and this permission notice appear in supporting
     8  documentation.
     9  
    10  The above copyright notice and this permission notice shall be included in
    11  all copies or substantial portions of the Software.
    12  
    13  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    16  OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
    17  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    18  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    19  
    20  Except as contained in this notice, the name of The Open Group shall not be
    21  used in advertising or otherwise to promote the sale, use or other dealings
    22  in this Software without prior written authorization from The Open Group.
    23   */
    24  
    25  #ifndef _MULTIBUFCONST_H_
    26  #define _MULTIBUFCONST_H_
    27  
    28  #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering"
    29  
    30  #define MULTIBUFFER_MAJOR_VERSION	1	/* current version numbers */
    31  #define MULTIBUFFER_MINOR_VERSION	1	/* has ClearImageBufferArea */
    32  
    33  /*
    34   * update_action field
    35   */
    36  #define MultibufferUpdateActionUndefined	0
    37  #define MultibufferUpdateActionBackground	1
    38  #define MultibufferUpdateActionUntouched	2
    39  #define MultibufferUpdateActionCopied		3
    40  
    41  /*
    42   * update_hint field
    43   */
    44  #define MultibufferUpdateHintFrequent		0
    45  #define MultibufferUpdateHintIntermittent	1
    46  #define MultibufferUpdateHintStatic		2
    47  
    48  /*
    49   * valuemask fields
    50   */
    51  #define MultibufferWindowUpdateHint	(1L << 0)
    52  #define MultibufferBufferEventMask	(1L << 0)
    53  
    54  /*
    55   * mono vs. stereo and left vs. right
    56   */
    57  #define MultibufferModeMono		0
    58  #define MultibufferModeStereo		1
    59  #define MultibufferSideMono		0
    60  #define MultibufferSideLeft	  	1
    61  #define MultibufferSideRight		2
    62  
    63  /*
    64   * clobber state
    65   */
    66  #define MultibufferUnclobbered		0
    67  #define MultibufferPartiallyClobbered	1
    68  #define MultibufferFullyClobbered	2
    69  
    70  /*
    71   * event stuff
    72   */
    73  #define MultibufferClobberNotifyMask	0x02000000
    74  #define MultibufferUpdateNotifyMask	0x04000000
    75  
    76  #define MultibufferClobberNotify	0
    77  #define MultibufferUpdateNotify		1
    78  #define MultibufferNumberEvents		(MultibufferUpdateNotify + 1)
    79  
    80  #define MultibufferBadBuffer		0
    81  #define MultibufferNumberErrors		(MultibufferBadBuffer + 1)
    82  
    83  #endif /* _MULTIBUFCONST_H_ */