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_GLX_H 31*61046927SAndroid Build Coastguard Worker #define APPLE_GLX_H 32*61046927SAndroid Build Coastguard Worker 33*61046927SAndroid Build Coastguard Worker #include <stdbool.h> 34*61046927SAndroid Build Coastguard Worker #include <GL/gl.h> 35*61046927SAndroid Build Coastguard Worker #include <X11/Xlib.h> 36*61046927SAndroid Build Coastguard Worker 37*61046927SAndroid Build Coastguard Worker #define XP_NO_X_HEADERS 38*61046927SAndroid Build Coastguard Worker #include <Xplugin.h> 39*61046927SAndroid Build Coastguard Worker 40*61046927SAndroid Build Coastguard Worker #include "apple_glx_log.h" 41*61046927SAndroid Build Coastguard Worker 42*61046927SAndroid Build Coastguard Worker xp_client_id apple_glx_get_client_id(void); 43*61046927SAndroid Build Coastguard Worker bool apple_init_glx(Display * dpy); 44*61046927SAndroid Build Coastguard Worker void apple_glx_swap_buffers(void *ptr); 45*61046927SAndroid Build Coastguard Worker void apple_glx_waitx(Display * dpy, void *ptr); 46*61046927SAndroid Build Coastguard Worker int apple_get_dri_event_base(void); 47*61046927SAndroid Build Coastguard Worker 48*61046927SAndroid Build Coastguard Worker void apple_glapi_set_dispatch(void); 49*61046927SAndroid Build Coastguard Worker void apple_glapi_oglfw_viewport_scissor(GLint x, GLint y, GLsizei width, GLsizei height); 50*61046927SAndroid Build Coastguard Worker 51*61046927SAndroid Build Coastguard Worker #endif 52