xref: /aosp_15_r20/external/mesa3d/src/glx/apple/apple_visual.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  Copyright (c) 2008 Apple Inc.
3*61046927SAndroid Build Coastguard Worker 
4*61046927SAndroid Build Coastguard Worker  Permission is hereby granted, free of charge, to any person
5*61046927SAndroid Build Coastguard Worker  obtaining a copy of this software and associated documentation files
6*61046927SAndroid Build Coastguard Worker  (the "Software"), to deal in the Software without restriction,
7*61046927SAndroid Build Coastguard Worker  including without limitation the rights to use, copy, modify, merge,
8*61046927SAndroid Build Coastguard Worker  publish, distribute, sublicense, and/or sell copies of the Software,
9*61046927SAndroid Build Coastguard Worker  and to permit persons to whom the Software is furnished to do so,
10*61046927SAndroid Build Coastguard Worker  subject to the following conditions:
11*61046927SAndroid Build Coastguard Worker 
12*61046927SAndroid Build Coastguard Worker  The above copyright notice and this permission notice shall be
13*61046927SAndroid Build Coastguard Worker  included in all copies or substantial portions of the Software.
14*61046927SAndroid Build Coastguard Worker 
15*61046927SAndroid Build Coastguard Worker  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16*61046927SAndroid Build Coastguard Worker  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17*61046927SAndroid Build Coastguard Worker  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18*61046927SAndroid Build Coastguard Worker  NONINFRINGEMENT.  IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
19*61046927SAndroid Build Coastguard Worker  HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20*61046927SAndroid Build Coastguard Worker  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21*61046927SAndroid Build Coastguard Worker  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22*61046927SAndroid Build Coastguard Worker  DEALINGS IN THE SOFTWARE.
23*61046927SAndroid Build Coastguard Worker 
24*61046927SAndroid Build Coastguard Worker  Except as contained in this notice, the name(s) of the above
25*61046927SAndroid Build Coastguard Worker  copyright holders shall not be used in advertising or otherwise to
26*61046927SAndroid Build Coastguard Worker  promote the sale, use or other dealings in this Software without
27*61046927SAndroid Build Coastguard Worker  prior written authorization.
28*61046927SAndroid Build Coastguard Worker */
29*61046927SAndroid Build Coastguard Worker 
30*61046927SAndroid Build Coastguard Worker #ifndef APPLE_VISUAL_H
31*61046927SAndroid Build Coastguard Worker #define APPLE_VISUAL_H
32*61046927SAndroid Build Coastguard Worker 
33*61046927SAndroid Build Coastguard Worker #include <stdbool.h>
34*61046927SAndroid Build Coastguard Worker #include <OpenGL/CGLTypes.h>
35*61046927SAndroid Build Coastguard Worker #include "glxconfig.h"
36*61046927SAndroid Build Coastguard Worker 
37*61046927SAndroid Build Coastguard Worker void apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * mode,
38*61046927SAndroid Build Coastguard Worker                                bool * double_buffered, bool * uses_stereo,
39*61046927SAndroid Build Coastguard Worker                                bool offscreen);
40*61046927SAndroid Build Coastguard Worker 
41*61046927SAndroid Build Coastguard Worker #endif
42