"Fossies" - the Fresh Open Source Software Archive

Member "dmelt/python/packages/sympy/thirdparty/pyglet/pyglet/gl/agl.py" (22 Jun 2022, 28533 Bytes) of package /linux/misc/dmelt-2.8.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # ----------------------------------------------------------------------------
    2 # pyglet
    3 # Copyright (c) 2006-2008 Alex Holkner
    4 # All rights reserved.
    5 # 
    6 # Redistribution and use in source and binary forms, with or without
    7 # modification, are permitted provided that the following conditions 
    8 # are met:
    9 #
   10 #  * Redistributions of source code must retain the above copyright
   11 #    notice, this list of conditions and the following disclaimer.
   12 #  * Redistributions in binary form must reproduce the above copyright 
   13 #    notice, this list of conditions and the following disclaimer in
   14 #    the documentation and/or other materials provided with the
   15 #    distribution.
   16 #  * Neither the name of pyglet nor the names of its
   17 #    contributors may be used to endorse or promote products
   18 #    derived from this software without specific prior written
   19 #    permission.
   20 #
   21 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   22 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   23 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
   24 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   25 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
   26 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   27 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   28 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   29 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   30 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
   31 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   32 # POSSIBILITY OF SUCH DAMAGE.
   33 # ----------------------------------------------------------------------------
   34 '''Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
   35 
   36 Generated by tools/gengl.py.
   37 Do not modify this file.
   38 '''
   39 
   40 __docformat__ = 'restructuredtext'
   41 __version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'
   42 
   43 from ctypes import *
   44 from pyglet.gl.lib import link_AGL as _link_function
   45 from pyglet.gl.lib import c_ptrdiff_t
   46 
   47 if not _link_function:
   48     raise ImportError('AGL framework is not available.')
   49 
   50 # BEGIN GENERATED CONTENT (do not edit below this line)
   51 
   52 # This content is generated by tools/gengl.py.
   53 # Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
   54 
   55 
   56 AGL_VERSION_2_0 = 1     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:41
   57 class struct_GDevice(Structure):
   58     __slots__ = [
   59     ]
   60 struct_GDevice._fields_ = [
   61     ('_opaque_struct', c_int)
   62 ]
   63 
   64 GDevice = struct_GDevice    # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1347
   65 GDPtr = POINTER(GDevice)    # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1348
   66 GDHandle = POINTER(GDPtr)   # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1349
   67 AGLDevice = GDHandle    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:46
   68 class struct_OpaqueGrafPtr(Structure):
   69     __slots__ = [
   70     ]
   71 struct_OpaqueGrafPtr._fields_ = [
   72     ('_opaque_struct', c_int)
   73 ]
   74 
   75 GrafPtr = POINTER(struct_OpaqueGrafPtr)     # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1009
   76 CGrafPtr = GrafPtr  # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1392
   77 AGLDrawable = CGrafPtr  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:51
   78 class struct___AGLRendererInfoRec(Structure):
   79     __slots__ = [
   80     ]
   81 struct___AGLRendererInfoRec._fields_ = [
   82     ('_opaque_struct', c_int)
   83 ]
   84 
   85 AGLRendererInfo = POINTER(struct___AGLRendererInfoRec)  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:56
   86 class struct___AGLPixelFormatRec(Structure):
   87     __slots__ = [
   88     ]
   89 struct___AGLPixelFormatRec._fields_ = [
   90     ('_opaque_struct', c_int)
   91 ]
   92 
   93 AGLPixelFormat = POINTER(struct___AGLPixelFormatRec)    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:57
   94 class struct___AGLContextRec(Structure):
   95     __slots__ = [
   96     ]
   97 struct___AGLContextRec._fields_ = [
   98     ('_opaque_struct', c_int)
   99 ]
  100 
  101 AGLContext = POINTER(struct___AGLContextRec)    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:58
  102 class struct___AGLPBufferRec(Structure):
  103     __slots__ = [
  104     ]
  105 struct___AGLPBufferRec._fields_ = [
  106     ('_opaque_struct', c_int)
  107 ]
  108 
  109 AGLPbuffer = POINTER(struct___AGLPBufferRec)    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:59
  110 AGL_NONE = 0    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:66
  111 AGL_ALL_RENDERERS = 1   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:67
  112 AGL_BUFFER_SIZE = 2     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:68
  113 AGL_LEVEL = 3   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:69
  114 AGL_RGBA = 4    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:70
  115 AGL_DOUBLEBUFFER = 5    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:71
  116 AGL_STEREO = 6  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:72
  117 AGL_AUX_BUFFERS = 7     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:73
  118 AGL_RED_SIZE = 8    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:74
  119 AGL_GREEN_SIZE = 9  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:75
  120 AGL_BLUE_SIZE = 10  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:76
  121 AGL_ALPHA_SIZE = 11     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:77
  122 AGL_DEPTH_SIZE = 12     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:78
  123 AGL_STENCIL_SIZE = 13   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:79
  124 AGL_ACCUM_RED_SIZE = 14     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:80
  125 AGL_ACCUM_GREEN_SIZE = 15   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:81
  126 AGL_ACCUM_BLUE_SIZE = 16    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:82
  127 AGL_ACCUM_ALPHA_SIZE = 17   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:83
  128 AGL_PIXEL_SIZE = 50     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:88
  129 AGL_MINIMUM_POLICY = 51     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:89
  130 AGL_MAXIMUM_POLICY = 52     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:90
  131 AGL_OFFSCREEN = 53  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:91
  132 AGL_FULLSCREEN = 54     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:92
  133 AGL_SAMPLE_BUFFERS_ARB = 55     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:93
  134 AGL_SAMPLES_ARB = 56    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:94
  135 AGL_AUX_DEPTH_STENCIL = 57  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:95
  136 AGL_COLOR_FLOAT = 58    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:96
  137 AGL_MULTISAMPLE = 59    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:97
  138 AGL_SUPERSAMPLE = 60    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:98
  139 AGL_SAMPLE_ALPHA = 61   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:99
  140 AGL_RENDERER_ID = 70    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:104
  141 AGL_SINGLE_RENDERER = 71    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:105
  142 AGL_NO_RECOVERY = 72    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:106
  143 AGL_ACCELERATED = 73    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:107
  144 AGL_CLOSEST_POLICY = 74     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:108
  145 AGL_ROBUST = 75     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:109
  146 AGL_BACKING_STORE = 76  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:110
  147 AGL_MP_SAFE = 78    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:111
  148 AGL_WINDOW = 80     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:113
  149 AGL_MULTISCREEN = 81    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:114
  150 AGL_VIRTUAL_SCREEN = 82     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:115
  151 AGL_COMPLIANT = 83  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:116
  152 AGL_PBUFFER = 90    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:118
  153 AGL_BUFFER_MODES = 100  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:135
  154 AGL_MIN_LEVEL = 101     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:136
  155 AGL_MAX_LEVEL = 102     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:137
  156 AGL_COLOR_MODES = 103   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:138
  157 AGL_ACCUM_MODES = 104   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:139
  158 AGL_DEPTH_MODES = 105   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:140
  159 AGL_STENCIL_MODES = 106     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:141
  160 AGL_MAX_AUX_BUFFERS = 107   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:142
  161 AGL_VIDEO_MEMORY = 120  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:143
  162 AGL_TEXTURE_MEMORY = 121    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:144
  163 AGL_RENDERER_COUNT = 128    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:145
  164 AGL_SWAP_RECT = 200     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:150
  165 AGL_BUFFER_RECT = 202   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:151
  166 AGL_SWAP_LIMIT = 203    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:152
  167 AGL_COLORMAP_TRACKING = 210     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:153
  168 AGL_COLORMAP_ENTRY = 212    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:154
  169 AGL_RASTERIZATION = 220     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:155
  170 AGL_SWAP_INTERVAL = 222     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:156
  171 AGL_STATE_VALIDATION = 230  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:157
  172 AGL_BUFFER_NAME = 231   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:158
  173 AGL_ORDER_CONTEXT_TO_FRONT = 232    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:159
  174 AGL_CONTEXT_SURFACE_ID = 233    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:160
  175 AGL_CONTEXT_DISPLAY_ID = 234    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:161
  176 AGL_SURFACE_ORDER = 235     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:162
  177 AGL_SURFACE_OPACITY = 236   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:163
  178 AGL_CLIP_REGION = 254   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:164
  179 AGL_FS_CAPTURE_SINGLE = 255     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:165
  180 AGL_SURFACE_BACKING_SIZE = 304  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:166
  181 AGL_ENABLE_SURFACE_BACKING_SIZE = 305   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:167
  182 AGL_SURFACE_VOLATILE = 306  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:168
  183 AGL_FORMAT_CACHE_SIZE = 501     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:172
  184 AGL_CLEAR_FORMAT_CACHE = 502    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:173
  185 AGL_RETAIN_RENDERERS = 503  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:174
  186 AGL_MONOSCOPIC_BIT = 1  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:177
  187 AGL_STEREOSCOPIC_BIT = 2    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:178
  188 AGL_SINGLEBUFFER_BIT = 4    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:179
  189 AGL_DOUBLEBUFFER_BIT = 8    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:180
  190 AGL_0_BIT = 1   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:183
  191 AGL_1_BIT = 2   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:184
  192 AGL_2_BIT = 4   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:185
  193 AGL_3_BIT = 8   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:186
  194 AGL_4_BIT = 16  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:187
  195 AGL_5_BIT = 32  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:188
  196 AGL_6_BIT = 64  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:189
  197 AGL_8_BIT = 128     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:190
  198 AGL_10_BIT = 256    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:191
  199 AGL_12_BIT = 512    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:192
  200 AGL_16_BIT = 1024   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:193
  201 AGL_24_BIT = 2048   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:194
  202 AGL_32_BIT = 4096   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:195
  203 AGL_48_BIT = 8192   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:196
  204 AGL_64_BIT = 16384  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:197
  205 AGL_96_BIT = 32768  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:198
  206 AGL_128_BIT = 65536     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:199
  207 AGL_RGB8_BIT = 1    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:202
  208 AGL_RGB8_A8_BIT = 2     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:203
  209 AGL_BGR233_BIT = 4  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:204
  210 AGL_BGR233_A8_BIT = 8   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:205
  211 AGL_RGB332_BIT = 16     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:206
  212 AGL_RGB332_A8_BIT = 32  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:207
  213 AGL_RGB444_BIT = 64     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:208
  214 AGL_ARGB4444_BIT = 128  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:209
  215 AGL_RGB444_A8_BIT = 256     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:210
  216 AGL_RGB555_BIT = 512    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:211
  217 AGL_ARGB1555_BIT = 1024     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:212
  218 AGL_RGB555_A8_BIT = 2048    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:213
  219 AGL_RGB565_BIT = 4096   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:214
  220 AGL_RGB565_A8_BIT = 8192    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:215
  221 AGL_RGB888_BIT = 16384  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:216
  222 AGL_ARGB8888_BIT = 32768    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:217
  223 AGL_RGB888_A8_BIT = 65536   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:218
  224 AGL_RGB101010_BIT = 131072  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:219
  225 AGL_ARGB2101010_BIT = 262144    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:220
  226 AGL_RGB101010_A8_BIT = 524288   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:221
  227 AGL_RGB121212_BIT = 1048576     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:222
  228 AGL_ARGB12121212_BIT = 2097152  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:223
  229 AGL_RGB161616_BIT = 4194304     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:224
  230 AGL_ARGB16161616_BIT = 8388608  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:225
  231 AGL_INDEX8_BIT = 536870912  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:226
  232 AGL_INDEX16_BIT = 1073741824    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:227
  233 AGL_RGBFLOAT64_BIT = 16777216   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:228
  234 AGL_RGBAFLOAT64_BIT = 33554432  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:229
  235 AGL_RGBFLOAT128_BIT = 67108864  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:230
  236 AGL_RGBAFLOAT128_BIT = 134217728    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:231
  237 AGL_RGBFLOAT256_BIT = 268435456     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:232
  238 AGL_RGBAFLOAT256_BIT = 536870912    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:233
  239 AGL_NO_ERROR = 0    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:238
  240 AGL_BAD_ATTRIBUTE = 10000   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:240
  241 AGL_BAD_PROPERTY = 10001    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:241
  242 AGL_BAD_PIXELFMT = 10002    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:242
  243 AGL_BAD_RENDINFO = 10003    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:243
  244 AGL_BAD_CONTEXT = 10004     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:244
  245 AGL_BAD_DRAWABLE = 10005    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:245
  246 AGL_BAD_GDEV = 10006    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:246
  247 AGL_BAD_STATE = 10007   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:247
  248 AGL_BAD_VALUE = 10008   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:248
  249 AGL_BAD_MATCH = 10009   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:249
  250 AGL_BAD_ENUM = 10010    # /System/Library/Frameworks/AGL.framework/Headers/agl.h:250
  251 AGL_BAD_OFFSCREEN = 10011   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:251
  252 AGL_BAD_FULLSCREEN = 10012  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:252
  253 AGL_BAD_WINDOW = 10013  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:253
  254 AGL_BAD_POINTER = 10014     # /System/Library/Frameworks/AGL.framework/Headers/agl.h:254
  255 AGL_BAD_MODULE = 10015  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:255
  256 AGL_BAD_ALLOC = 10016   # /System/Library/Frameworks/AGL.framework/Headers/agl.h:256
  257 AGL_BAD_CONNECTION = 10017  # /System/Library/Frameworks/AGL.framework/Headers/agl.h:257
  258 GLint = c_long  # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:47
  259 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:264
  260 aglChoosePixelFormat = _link_function('aglChoosePixelFormat', AGLPixelFormat, [POINTER(AGLDevice), GLint, POINTER(GLint)], None)
  261 
  262 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:265
  263 aglDestroyPixelFormat = _link_function('aglDestroyPixelFormat', None, [AGLPixelFormat], None)
  264 
  265 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:266
  266 aglNextPixelFormat = _link_function('aglNextPixelFormat', AGLPixelFormat, [AGLPixelFormat], None)
  267 
  268 GLboolean = c_ubyte     # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:43
  269 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:267
  270 aglDescribePixelFormat = _link_function('aglDescribePixelFormat', GLboolean, [AGLPixelFormat, GLint, POINTER(GLint)], None)
  271 
  272 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:268
  273 aglDevicesOfPixelFormat = _link_function('aglDevicesOfPixelFormat', POINTER(AGLDevice), [AGLPixelFormat, POINTER(GLint)], None)
  274 
  275 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:273
  276 aglQueryRendererInfo = _link_function('aglQueryRendererInfo', AGLRendererInfo, [POINTER(AGLDevice), GLint], None)
  277 
  278 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:274
  279 aglDestroyRendererInfo = _link_function('aglDestroyRendererInfo', None, [AGLRendererInfo], None)
  280 
  281 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:275
  282 aglNextRendererInfo = _link_function('aglNextRendererInfo', AGLRendererInfo, [AGLRendererInfo], None)
  283 
  284 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:276
  285 aglDescribeRenderer = _link_function('aglDescribeRenderer', GLboolean, [AGLRendererInfo, GLint, POINTER(GLint)], None)
  286 
  287 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:281
  288 aglCreateContext = _link_function('aglCreateContext', AGLContext, [AGLPixelFormat, AGLContext], None)
  289 
  290 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:282
  291 aglDestroyContext = _link_function('aglDestroyContext', GLboolean, [AGLContext], None)
  292 
  293 GLuint = c_ulong    # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:51
  294 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:283
  295 aglCopyContext = _link_function('aglCopyContext', GLboolean, [AGLContext, AGLContext, GLuint], None)
  296 
  297 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:284
  298 aglUpdateContext = _link_function('aglUpdateContext', GLboolean, [AGLContext], None)
  299 
  300 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:289
  301 aglSetCurrentContext = _link_function('aglSetCurrentContext', GLboolean, [AGLContext], None)
  302 
  303 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:290
  304 aglGetCurrentContext = _link_function('aglGetCurrentContext', AGLContext, [], None)
  305 
  306 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:295
  307 aglSetDrawable = _link_function('aglSetDrawable', GLboolean, [AGLContext, AGLDrawable], None)
  308 
  309 GLsizei = c_long    # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:48
  310 GLvoid = None   # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:56
  311 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:296
  312 aglSetOffScreen = _link_function('aglSetOffScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, POINTER(GLvoid)], None)
  313 
  314 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:297
  315 aglSetFullScreen = _link_function('aglSetFullScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, GLint], None)
  316 
  317 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:298
  318 aglGetDrawable = _link_function('aglGetDrawable', AGLDrawable, [AGLContext], None)
  319 
  320 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:303
  321 aglSetVirtualScreen = _link_function('aglSetVirtualScreen', GLboolean, [AGLContext, GLint], None)
  322 
  323 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:304
  324 aglGetVirtualScreen = _link_function('aglGetVirtualScreen', GLint, [AGLContext], None)
  325 
  326 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:309
  327 aglGetVersion = _link_function('aglGetVersion', None, [POINTER(GLint), POINTER(GLint)], None)
  328 
  329 GLenum = c_ulong    # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:42
  330 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:314
  331 aglConfigure = _link_function('aglConfigure', GLboolean, [GLenum, GLuint], None)
  332 
  333 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:319
  334 aglSwapBuffers = _link_function('aglSwapBuffers', None, [AGLContext], None)
  335 
  336 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:324
  337 aglEnable = _link_function('aglEnable', GLboolean, [AGLContext, GLenum], None)
  338 
  339 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:325
  340 aglDisable = _link_function('aglDisable', GLboolean, [AGLContext, GLenum], None)
  341 
  342 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:326
  343 aglIsEnabled = _link_function('aglIsEnabled', GLboolean, [AGLContext, GLenum], None)
  344 
  345 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:327
  346 aglSetInteger = _link_function('aglSetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
  347 
  348 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:328
  349 aglGetInteger = _link_function('aglGetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
  350 
  351 Style = c_ubyte     # /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:524
  352 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:333
  353 aglUseFont = _link_function('aglUseFont', GLboolean, [AGLContext, GLint, Style, GLint, GLint, GLint, GLint], None)
  354 
  355 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:338
  356 aglGetError = _link_function('aglGetError', GLenum, [], None)
  357 
  358 GLubyte = c_ubyte   # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:49
  359 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:339
  360 aglErrorString = _link_function('aglErrorString', POINTER(GLubyte), [GLenum], None)
  361 
  362 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:344
  363 aglResetLibrary = _link_function('aglResetLibrary', None, [], None)
  364 
  365 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:349
  366 aglSurfaceTexture = _link_function('aglSurfaceTexture', None, [AGLContext, GLenum, GLenum, AGLContext], None)
  367 
  368 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:354
  369 aglCreatePBuffer = _link_function('aglCreatePBuffer', GLboolean, [GLint, GLint, GLenum, GLenum, c_long, POINTER(AGLPbuffer)], None)
  370 
  371 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:355
  372 aglDestroyPBuffer = _link_function('aglDestroyPBuffer', GLboolean, [AGLPbuffer], None)
  373 
  374 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:356
  375 aglDescribePBuffer = _link_function('aglDescribePBuffer', GLboolean, [AGLPbuffer, POINTER(GLint), POINTER(GLint), POINTER(GLenum), POINTER(GLenum), POINTER(GLint)], None)
  376 
  377 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:357
  378 aglTexImagePBuffer = _link_function('aglTexImagePBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint], None)
  379 
  380 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:362
  381 aglSetPBuffer = _link_function('aglSetPBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint, GLint, GLint], None)
  382 
  383 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:363
  384 aglGetPBuffer = _link_function('aglGetPBuffer', GLboolean, [AGLContext, POINTER(AGLPbuffer), POINTER(GLint), POINTER(GLint), POINTER(GLint)], None)
  385 
  386 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:368
  387 aglGetCGLContext = _link_function('aglGetCGLContext', GLboolean, [AGLContext, POINTER(POINTER(None))], None)
  388 
  389 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:369
  390 aglGetCGLPixelFormat = _link_function('aglGetCGLPixelFormat', GLboolean, [AGLPixelFormat, POINTER(POINTER(None))], None)
  391 
  392 
  393 __all__ = ['AGL_VERSION_2_0', 'AGLDevice', 'AGLDrawable', 'AGLRendererInfo',
  394 'AGLPixelFormat', 'AGLContext', 'AGLPbuffer', 'AGL_NONE', 'AGL_ALL_RENDERERS',
  395 'AGL_BUFFER_SIZE', 'AGL_LEVEL', 'AGL_RGBA', 'AGL_DOUBLEBUFFER', 'AGL_STEREO',
  396 'AGL_AUX_BUFFERS', 'AGL_RED_SIZE', 'AGL_GREEN_SIZE', 'AGL_BLUE_SIZE',
  397 'AGL_ALPHA_SIZE', 'AGL_DEPTH_SIZE', 'AGL_STENCIL_SIZE', 'AGL_ACCUM_RED_SIZE',
  398 'AGL_ACCUM_GREEN_SIZE', 'AGL_ACCUM_BLUE_SIZE', 'AGL_ACCUM_ALPHA_SIZE',
  399 'AGL_PIXEL_SIZE', 'AGL_MINIMUM_POLICY', 'AGL_MAXIMUM_POLICY', 'AGL_OFFSCREEN',
  400 'AGL_FULLSCREEN', 'AGL_SAMPLE_BUFFERS_ARB', 'AGL_SAMPLES_ARB',
  401 'AGL_AUX_DEPTH_STENCIL', 'AGL_COLOR_FLOAT', 'AGL_MULTISAMPLE',
  402 'AGL_SUPERSAMPLE', 'AGL_SAMPLE_ALPHA', 'AGL_RENDERER_ID',
  403 'AGL_SINGLE_RENDERER', 'AGL_NO_RECOVERY', 'AGL_ACCELERATED',
  404 'AGL_CLOSEST_POLICY', 'AGL_ROBUST', 'AGL_BACKING_STORE', 'AGL_MP_SAFE',
  405 'AGL_WINDOW', 'AGL_MULTISCREEN', 'AGL_VIRTUAL_SCREEN', 'AGL_COMPLIANT',
  406 'AGL_PBUFFER', 'AGL_BUFFER_MODES', 'AGL_MIN_LEVEL', 'AGL_MAX_LEVEL',
  407 'AGL_COLOR_MODES', 'AGL_ACCUM_MODES', 'AGL_DEPTH_MODES', 'AGL_STENCIL_MODES',
  408 'AGL_MAX_AUX_BUFFERS', 'AGL_VIDEO_MEMORY', 'AGL_TEXTURE_MEMORY',
  409 'AGL_RENDERER_COUNT', 'AGL_SWAP_RECT', 'AGL_BUFFER_RECT', 'AGL_SWAP_LIMIT',
  410 'AGL_COLORMAP_TRACKING', 'AGL_COLORMAP_ENTRY', 'AGL_RASTERIZATION',
  411 'AGL_SWAP_INTERVAL', 'AGL_STATE_VALIDATION', 'AGL_BUFFER_NAME',
  412 'AGL_ORDER_CONTEXT_TO_FRONT', 'AGL_CONTEXT_SURFACE_ID',
  413 'AGL_CONTEXT_DISPLAY_ID', 'AGL_SURFACE_ORDER', 'AGL_SURFACE_OPACITY',
  414 'AGL_CLIP_REGION', 'AGL_FS_CAPTURE_SINGLE', 'AGL_SURFACE_BACKING_SIZE',
  415 'AGL_ENABLE_SURFACE_BACKING_SIZE', 'AGL_SURFACE_VOLATILE',
  416 'AGL_FORMAT_CACHE_SIZE', 'AGL_CLEAR_FORMAT_CACHE', 'AGL_RETAIN_RENDERERS',
  417 'AGL_MONOSCOPIC_BIT', 'AGL_STEREOSCOPIC_BIT', 'AGL_SINGLEBUFFER_BIT',
  418 'AGL_DOUBLEBUFFER_BIT', 'AGL_0_BIT', 'AGL_1_BIT', 'AGL_2_BIT', 'AGL_3_BIT',
  419 'AGL_4_BIT', 'AGL_5_BIT', 'AGL_6_BIT', 'AGL_8_BIT', 'AGL_10_BIT',
  420 'AGL_12_BIT', 'AGL_16_BIT', 'AGL_24_BIT', 'AGL_32_BIT', 'AGL_48_BIT',
  421 'AGL_64_BIT', 'AGL_96_BIT', 'AGL_128_BIT', 'AGL_RGB8_BIT', 'AGL_RGB8_A8_BIT',
  422 'AGL_BGR233_BIT', 'AGL_BGR233_A8_BIT', 'AGL_RGB332_BIT', 'AGL_RGB332_A8_BIT',
  423 'AGL_RGB444_BIT', 'AGL_ARGB4444_BIT', 'AGL_RGB444_A8_BIT', 'AGL_RGB555_BIT',
  424 'AGL_ARGB1555_BIT', 'AGL_RGB555_A8_BIT', 'AGL_RGB565_BIT',
  425 'AGL_RGB565_A8_BIT', 'AGL_RGB888_BIT', 'AGL_ARGB8888_BIT',
  426 'AGL_RGB888_A8_BIT', 'AGL_RGB101010_BIT', 'AGL_ARGB2101010_BIT',
  427 'AGL_RGB101010_A8_BIT', 'AGL_RGB121212_BIT', 'AGL_ARGB12121212_BIT',
  428 'AGL_RGB161616_BIT', 'AGL_ARGB16161616_BIT', 'AGL_INDEX8_BIT',
  429 'AGL_INDEX16_BIT', 'AGL_RGBFLOAT64_BIT', 'AGL_RGBAFLOAT64_BIT',
  430 'AGL_RGBFLOAT128_BIT', 'AGL_RGBAFLOAT128_BIT', 'AGL_RGBFLOAT256_BIT',
  431 'AGL_RGBAFLOAT256_BIT', 'AGL_NO_ERROR', 'AGL_BAD_ATTRIBUTE',
  432 'AGL_BAD_PROPERTY', 'AGL_BAD_PIXELFMT', 'AGL_BAD_RENDINFO', 'AGL_BAD_CONTEXT',
  433 'AGL_BAD_DRAWABLE', 'AGL_BAD_GDEV', 'AGL_BAD_STATE', 'AGL_BAD_VALUE',
  434 'AGL_BAD_MATCH', 'AGL_BAD_ENUM', 'AGL_BAD_OFFSCREEN', 'AGL_BAD_FULLSCREEN',
  435 'AGL_BAD_WINDOW', 'AGL_BAD_POINTER', 'AGL_BAD_MODULE', 'AGL_BAD_ALLOC',
  436 'AGL_BAD_CONNECTION', 'aglChoosePixelFormat', 'aglDestroyPixelFormat',
  437 'aglNextPixelFormat', 'aglDescribePixelFormat', 'aglDevicesOfPixelFormat',
  438 'aglQueryRendererInfo', 'aglDestroyRendererInfo', 'aglNextRendererInfo',
  439 'aglDescribeRenderer', 'aglCreateContext', 'aglDestroyContext',
  440 'aglCopyContext', 'aglUpdateContext', 'aglSetCurrentContext',
  441 'aglGetCurrentContext', 'aglSetDrawable', 'aglSetOffScreen',
  442 'aglSetFullScreen', 'aglGetDrawable', 'aglSetVirtualScreen',
  443 'aglGetVirtualScreen', 'aglGetVersion', 'aglConfigure', 'aglSwapBuffers',
  444 'aglEnable', 'aglDisable', 'aglIsEnabled', 'aglSetInteger', 'aglGetInteger',
  445 'aglUseFont', 'aglGetError', 'aglErrorString', 'aglResetLibrary',
  446 'aglSurfaceTexture', 'aglCreatePBuffer', 'aglDestroyPBuffer',
  447 'aglDescribePBuffer', 'aglTexImagePBuffer', 'aglSetPBuffer', 'aglGetPBuffer',
  448 'aglGetCGLContext', 'aglGetCGLPixelFormat']
  449 # END GENERATED CONTENT (do not edit above this line)
  450 
  451 
  452