commit about v0.5.2
happy lazy
This commit is contained in:
parent
c8b0803ab0
commit
ec6b76197c
@ -1,449 +0,0 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
from pyglet.gl.lib import link_AGL as _link_function
|
||||
|
||||
if not _link_function:
|
||||
raise ImportError('AGL framework is not available.')
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
|
||||
|
||||
|
||||
AGL_VERSION_2_0 = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:41
|
||||
class struct_GDevice(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GDevice._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GDevice = struct_GDevice # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1347
|
||||
GDPtr = POINTER(GDevice) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1348
|
||||
GDHandle = POINTER(GDPtr) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1349
|
||||
AGLDevice = GDHandle # /System/Library/Frameworks/AGL.framework/Headers/agl.h:46
|
||||
class struct_OpaqueGrafPtr(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_OpaqueGrafPtr._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GrafPtr = POINTER(struct_OpaqueGrafPtr) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1009
|
||||
CGrafPtr = GrafPtr # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1392
|
||||
AGLDrawable = CGrafPtr # /System/Library/Frameworks/AGL.framework/Headers/agl.h:51
|
||||
class struct___AGLRendererInfoRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___AGLRendererInfoRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLRendererInfo = POINTER(struct___AGLRendererInfoRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:56
|
||||
class struct___AGLPixelFormatRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___AGLPixelFormatRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLPixelFormat = POINTER(struct___AGLPixelFormatRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:57
|
||||
class struct___AGLContextRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___AGLContextRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLContext = POINTER(struct___AGLContextRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:58
|
||||
class struct___AGLPBufferRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___AGLPBufferRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLPbuffer = POINTER(struct___AGLPBufferRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:59
|
||||
AGL_NONE = 0 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:66
|
||||
AGL_ALL_RENDERERS = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:67
|
||||
AGL_BUFFER_SIZE = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:68
|
||||
AGL_LEVEL = 3 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:69
|
||||
AGL_RGBA = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:70
|
||||
AGL_DOUBLEBUFFER = 5 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:71
|
||||
AGL_STEREO = 6 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:72
|
||||
AGL_AUX_BUFFERS = 7 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:73
|
||||
AGL_RED_SIZE = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:74
|
||||
AGL_GREEN_SIZE = 9 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:75
|
||||
AGL_BLUE_SIZE = 10 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:76
|
||||
AGL_ALPHA_SIZE = 11 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:77
|
||||
AGL_DEPTH_SIZE = 12 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:78
|
||||
AGL_STENCIL_SIZE = 13 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:79
|
||||
AGL_ACCUM_RED_SIZE = 14 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:80
|
||||
AGL_ACCUM_GREEN_SIZE = 15 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:81
|
||||
AGL_ACCUM_BLUE_SIZE = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:82
|
||||
AGL_ACCUM_ALPHA_SIZE = 17 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:83
|
||||
AGL_PIXEL_SIZE = 50 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:88
|
||||
AGL_MINIMUM_POLICY = 51 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:89
|
||||
AGL_MAXIMUM_POLICY = 52 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:90
|
||||
AGL_OFFSCREEN = 53 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:91
|
||||
AGL_FULLSCREEN = 54 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:92
|
||||
AGL_SAMPLE_BUFFERS_ARB = 55 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:93
|
||||
AGL_SAMPLES_ARB = 56 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:94
|
||||
AGL_AUX_DEPTH_STENCIL = 57 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:95
|
||||
AGL_COLOR_FLOAT = 58 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:96
|
||||
AGL_MULTISAMPLE = 59 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:97
|
||||
AGL_SUPERSAMPLE = 60 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:98
|
||||
AGL_SAMPLE_ALPHA = 61 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:99
|
||||
AGL_RENDERER_ID = 70 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:104
|
||||
AGL_SINGLE_RENDERER = 71 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:105
|
||||
AGL_NO_RECOVERY = 72 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:106
|
||||
AGL_ACCELERATED = 73 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:107
|
||||
AGL_CLOSEST_POLICY = 74 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:108
|
||||
AGL_ROBUST = 75 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:109
|
||||
AGL_BACKING_STORE = 76 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:110
|
||||
AGL_MP_SAFE = 78 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:111
|
||||
AGL_WINDOW = 80 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:113
|
||||
AGL_MULTISCREEN = 81 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:114
|
||||
AGL_VIRTUAL_SCREEN = 82 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:115
|
||||
AGL_COMPLIANT = 83 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:116
|
||||
AGL_PBUFFER = 90 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:118
|
||||
AGL_BUFFER_MODES = 100 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:135
|
||||
AGL_MIN_LEVEL = 101 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:136
|
||||
AGL_MAX_LEVEL = 102 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:137
|
||||
AGL_COLOR_MODES = 103 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:138
|
||||
AGL_ACCUM_MODES = 104 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:139
|
||||
AGL_DEPTH_MODES = 105 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:140
|
||||
AGL_STENCIL_MODES = 106 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:141
|
||||
AGL_MAX_AUX_BUFFERS = 107 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:142
|
||||
AGL_VIDEO_MEMORY = 120 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:143
|
||||
AGL_TEXTURE_MEMORY = 121 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:144
|
||||
AGL_RENDERER_COUNT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:145
|
||||
AGL_SWAP_RECT = 200 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:150
|
||||
AGL_BUFFER_RECT = 202 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:151
|
||||
AGL_SWAP_LIMIT = 203 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:152
|
||||
AGL_COLORMAP_TRACKING = 210 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:153
|
||||
AGL_COLORMAP_ENTRY = 212 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:154
|
||||
AGL_RASTERIZATION = 220 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:155
|
||||
AGL_SWAP_INTERVAL = 222 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:156
|
||||
AGL_STATE_VALIDATION = 230 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:157
|
||||
AGL_BUFFER_NAME = 231 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:158
|
||||
AGL_ORDER_CONTEXT_TO_FRONT = 232 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:159
|
||||
AGL_CONTEXT_SURFACE_ID = 233 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:160
|
||||
AGL_CONTEXT_DISPLAY_ID = 234 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:161
|
||||
AGL_SURFACE_ORDER = 235 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:162
|
||||
AGL_SURFACE_OPACITY = 236 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:163
|
||||
AGL_CLIP_REGION = 254 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:164
|
||||
AGL_FS_CAPTURE_SINGLE = 255 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:165
|
||||
AGL_SURFACE_BACKING_SIZE = 304 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:166
|
||||
AGL_ENABLE_SURFACE_BACKING_SIZE = 305 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:167
|
||||
AGL_SURFACE_VOLATILE = 306 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:168
|
||||
AGL_FORMAT_CACHE_SIZE = 501 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:172
|
||||
AGL_CLEAR_FORMAT_CACHE = 502 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:173
|
||||
AGL_RETAIN_RENDERERS = 503 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:174
|
||||
AGL_MONOSCOPIC_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:177
|
||||
AGL_STEREOSCOPIC_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:178
|
||||
AGL_SINGLEBUFFER_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:179
|
||||
AGL_DOUBLEBUFFER_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:180
|
||||
AGL_0_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:183
|
||||
AGL_1_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:184
|
||||
AGL_2_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:185
|
||||
AGL_3_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:186
|
||||
AGL_4_BIT = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:187
|
||||
AGL_5_BIT = 32 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:188
|
||||
AGL_6_BIT = 64 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:189
|
||||
AGL_8_BIT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:190
|
||||
AGL_10_BIT = 256 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:191
|
||||
AGL_12_BIT = 512 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:192
|
||||
AGL_16_BIT = 1024 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:193
|
||||
AGL_24_BIT = 2048 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:194
|
||||
AGL_32_BIT = 4096 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:195
|
||||
AGL_48_BIT = 8192 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:196
|
||||
AGL_64_BIT = 16384 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:197
|
||||
AGL_96_BIT = 32768 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:198
|
||||
AGL_128_BIT = 65536 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:199
|
||||
AGL_RGB8_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:202
|
||||
AGL_RGB8_A8_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:203
|
||||
AGL_BGR233_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:204
|
||||
AGL_BGR233_A8_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:205
|
||||
AGL_RGB332_BIT = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:206
|
||||
AGL_RGB332_A8_BIT = 32 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:207
|
||||
AGL_RGB444_BIT = 64 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:208
|
||||
AGL_ARGB4444_BIT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:209
|
||||
AGL_RGB444_A8_BIT = 256 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:210
|
||||
AGL_RGB555_BIT = 512 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:211
|
||||
AGL_ARGB1555_BIT = 1024 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:212
|
||||
AGL_RGB555_A8_BIT = 2048 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:213
|
||||
AGL_RGB565_BIT = 4096 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:214
|
||||
AGL_RGB565_A8_BIT = 8192 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:215
|
||||
AGL_RGB888_BIT = 16384 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:216
|
||||
AGL_ARGB8888_BIT = 32768 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:217
|
||||
AGL_RGB888_A8_BIT = 65536 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:218
|
||||
AGL_RGB101010_BIT = 131072 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:219
|
||||
AGL_ARGB2101010_BIT = 262144 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:220
|
||||
AGL_RGB101010_A8_BIT = 524288 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:221
|
||||
AGL_RGB121212_BIT = 1048576 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:222
|
||||
AGL_ARGB12121212_BIT = 2097152 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:223
|
||||
AGL_RGB161616_BIT = 4194304 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:224
|
||||
AGL_ARGB16161616_BIT = 8388608 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:225
|
||||
AGL_INDEX8_BIT = 536870912 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:226
|
||||
AGL_INDEX16_BIT = 1073741824 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:227
|
||||
AGL_RGBFLOAT64_BIT = 16777216 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:228
|
||||
AGL_RGBAFLOAT64_BIT = 33554432 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:229
|
||||
AGL_RGBFLOAT128_BIT = 67108864 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:230
|
||||
AGL_RGBAFLOAT128_BIT = 134217728 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:231
|
||||
AGL_RGBFLOAT256_BIT = 268435456 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:232
|
||||
AGL_RGBAFLOAT256_BIT = 536870912 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:233
|
||||
AGL_NO_ERROR = 0 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:238
|
||||
AGL_BAD_ATTRIBUTE = 10000 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:240
|
||||
AGL_BAD_PROPERTY = 10001 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:241
|
||||
AGL_BAD_PIXELFMT = 10002 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:242
|
||||
AGL_BAD_RENDINFO = 10003 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:243
|
||||
AGL_BAD_CONTEXT = 10004 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:244
|
||||
AGL_BAD_DRAWABLE = 10005 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:245
|
||||
AGL_BAD_GDEV = 10006 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:246
|
||||
AGL_BAD_STATE = 10007 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:247
|
||||
AGL_BAD_VALUE = 10008 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:248
|
||||
AGL_BAD_MATCH = 10009 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:249
|
||||
AGL_BAD_ENUM = 10010 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:250
|
||||
AGL_BAD_OFFSCREEN = 10011 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:251
|
||||
AGL_BAD_FULLSCREEN = 10012 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:252
|
||||
AGL_BAD_WINDOW = 10013 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:253
|
||||
AGL_BAD_POINTER = 10014 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:254
|
||||
AGL_BAD_MODULE = 10015 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:255
|
||||
AGL_BAD_ALLOC = 10016 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:256
|
||||
AGL_BAD_CONNECTION = 10017 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:257
|
||||
GLint = c_long # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:47
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:264
|
||||
aglChoosePixelFormat = _link_function('aglChoosePixelFormat', AGLPixelFormat, [POINTER(AGLDevice), GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:265
|
||||
aglDestroyPixelFormat = _link_function('aglDestroyPixelFormat', None, [AGLPixelFormat], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:266
|
||||
aglNextPixelFormat = _link_function('aglNextPixelFormat', AGLPixelFormat, [AGLPixelFormat], None)
|
||||
|
||||
GLboolean = c_ubyte # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:43
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:267
|
||||
aglDescribePixelFormat = _link_function('aglDescribePixelFormat', GLboolean, [AGLPixelFormat, GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:268
|
||||
aglDevicesOfPixelFormat = _link_function('aglDevicesOfPixelFormat', POINTER(AGLDevice), [AGLPixelFormat, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:273
|
||||
aglQueryRendererInfo = _link_function('aglQueryRendererInfo', AGLRendererInfo, [POINTER(AGLDevice), GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:274
|
||||
aglDestroyRendererInfo = _link_function('aglDestroyRendererInfo', None, [AGLRendererInfo], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:275
|
||||
aglNextRendererInfo = _link_function('aglNextRendererInfo', AGLRendererInfo, [AGLRendererInfo], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:276
|
||||
aglDescribeRenderer = _link_function('aglDescribeRenderer', GLboolean, [AGLRendererInfo, GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:281
|
||||
aglCreateContext = _link_function('aglCreateContext', AGLContext, [AGLPixelFormat, AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:282
|
||||
aglDestroyContext = _link_function('aglDestroyContext', GLboolean, [AGLContext], None)
|
||||
|
||||
GLuint = c_ulong # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:51
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:283
|
||||
aglCopyContext = _link_function('aglCopyContext', GLboolean, [AGLContext, AGLContext, GLuint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:284
|
||||
aglUpdateContext = _link_function('aglUpdateContext', GLboolean, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:289
|
||||
aglSetCurrentContext = _link_function('aglSetCurrentContext', GLboolean, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:290
|
||||
aglGetCurrentContext = _link_function('aglGetCurrentContext', AGLContext, [], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:295
|
||||
aglSetDrawable = _link_function('aglSetDrawable', GLboolean, [AGLContext, AGLDrawable], None)
|
||||
|
||||
GLsizei = c_long # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:48
|
||||
GLvoid = None # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:56
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:296
|
||||
aglSetOffScreen = _link_function('aglSetOffScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, POINTER(GLvoid)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:297
|
||||
aglSetFullScreen = _link_function('aglSetFullScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:298
|
||||
aglGetDrawable = _link_function('aglGetDrawable', AGLDrawable, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:303
|
||||
aglSetVirtualScreen = _link_function('aglSetVirtualScreen', GLboolean, [AGLContext, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:304
|
||||
aglGetVirtualScreen = _link_function('aglGetVirtualScreen', GLint, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:309
|
||||
aglGetVersion = _link_function('aglGetVersion', None, [POINTER(GLint), POINTER(GLint)], None)
|
||||
|
||||
GLenum = c_ulong # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:42
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:314
|
||||
aglConfigure = _link_function('aglConfigure', GLboolean, [GLenum, GLuint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:319
|
||||
aglSwapBuffers = _link_function('aglSwapBuffers', None, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:324
|
||||
aglEnable = _link_function('aglEnable', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:325
|
||||
aglDisable = _link_function('aglDisable', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:326
|
||||
aglIsEnabled = _link_function('aglIsEnabled', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:327
|
||||
aglSetInteger = _link_function('aglSetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:328
|
||||
aglGetInteger = _link_function('aglGetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
|
||||
|
||||
Style = c_ubyte # /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:524
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:333
|
||||
aglUseFont = _link_function('aglUseFont', GLboolean, [AGLContext, GLint, Style, GLint, GLint, GLint, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:338
|
||||
aglGetError = _link_function('aglGetError', GLenum, [], None)
|
||||
|
||||
GLubyte = c_ubyte # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:49
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:339
|
||||
aglErrorString = _link_function('aglErrorString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:344
|
||||
aglResetLibrary = _link_function('aglResetLibrary', None, [], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:349
|
||||
aglSurfaceTexture = _link_function('aglSurfaceTexture', None, [AGLContext, GLenum, GLenum, AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:354
|
||||
aglCreatePBuffer = _link_function('aglCreatePBuffer', GLboolean, [GLint, GLint, GLenum, GLenum, c_long, POINTER(AGLPbuffer)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:355
|
||||
aglDestroyPBuffer = _link_function('aglDestroyPBuffer', GLboolean, [AGLPbuffer], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:356
|
||||
aglDescribePBuffer = _link_function('aglDescribePBuffer', GLboolean, [AGLPbuffer, POINTER(GLint), POINTER(GLint), POINTER(GLenum), POINTER(GLenum), POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:357
|
||||
aglTexImagePBuffer = _link_function('aglTexImagePBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:362
|
||||
aglSetPBuffer = _link_function('aglSetPBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint, GLint, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:363
|
||||
aglGetPBuffer = _link_function('aglGetPBuffer', GLboolean, [AGLContext, POINTER(AGLPbuffer), POINTER(GLint), POINTER(GLint), POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:368
|
||||
aglGetCGLContext = _link_function('aglGetCGLContext', GLboolean, [AGLContext, POINTER(POINTER(None))], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:369
|
||||
aglGetCGLPixelFormat = _link_function('aglGetCGLPixelFormat', GLboolean, [AGLPixelFormat, POINTER(POINTER(None))], None)
|
||||
|
||||
__all__ = ['AGL_VERSION_2_0', 'AGLDevice', 'AGLDrawable', 'AGLRendererInfo',
|
||||
'AGLPixelFormat', 'AGLContext', 'AGLPbuffer', 'AGL_NONE', 'AGL_ALL_RENDERERS',
|
||||
'AGL_BUFFER_SIZE', 'AGL_LEVEL', 'AGL_RGBA', 'AGL_DOUBLEBUFFER', 'AGL_STEREO',
|
||||
'AGL_AUX_BUFFERS', 'AGL_RED_SIZE', 'AGL_GREEN_SIZE', 'AGL_BLUE_SIZE',
|
||||
'AGL_ALPHA_SIZE', 'AGL_DEPTH_SIZE', 'AGL_STENCIL_SIZE', 'AGL_ACCUM_RED_SIZE',
|
||||
'AGL_ACCUM_GREEN_SIZE', 'AGL_ACCUM_BLUE_SIZE', 'AGL_ACCUM_ALPHA_SIZE',
|
||||
'AGL_PIXEL_SIZE', 'AGL_MINIMUM_POLICY', 'AGL_MAXIMUM_POLICY', 'AGL_OFFSCREEN',
|
||||
'AGL_FULLSCREEN', 'AGL_SAMPLE_BUFFERS_ARB', 'AGL_SAMPLES_ARB',
|
||||
'AGL_AUX_DEPTH_STENCIL', 'AGL_COLOR_FLOAT', 'AGL_MULTISAMPLE',
|
||||
'AGL_SUPERSAMPLE', 'AGL_SAMPLE_ALPHA', 'AGL_RENDERER_ID',
|
||||
'AGL_SINGLE_RENDERER', 'AGL_NO_RECOVERY', 'AGL_ACCELERATED',
|
||||
'AGL_CLOSEST_POLICY', 'AGL_ROBUST', 'AGL_BACKING_STORE', 'AGL_MP_SAFE',
|
||||
'AGL_WINDOW', 'AGL_MULTISCREEN', 'AGL_VIRTUAL_SCREEN', 'AGL_COMPLIANT',
|
||||
'AGL_PBUFFER', 'AGL_BUFFER_MODES', 'AGL_MIN_LEVEL', 'AGL_MAX_LEVEL',
|
||||
'AGL_COLOR_MODES', 'AGL_ACCUM_MODES', 'AGL_DEPTH_MODES', 'AGL_STENCIL_MODES',
|
||||
'AGL_MAX_AUX_BUFFERS', 'AGL_VIDEO_MEMORY', 'AGL_TEXTURE_MEMORY',
|
||||
'AGL_RENDERER_COUNT', 'AGL_SWAP_RECT', 'AGL_BUFFER_RECT', 'AGL_SWAP_LIMIT',
|
||||
'AGL_COLORMAP_TRACKING', 'AGL_COLORMAP_ENTRY', 'AGL_RASTERIZATION',
|
||||
'AGL_SWAP_INTERVAL', 'AGL_STATE_VALIDATION', 'AGL_BUFFER_NAME',
|
||||
'AGL_ORDER_CONTEXT_TO_FRONT', 'AGL_CONTEXT_SURFACE_ID',
|
||||
'AGL_CONTEXT_DISPLAY_ID', 'AGL_SURFACE_ORDER', 'AGL_SURFACE_OPACITY',
|
||||
'AGL_CLIP_REGION', 'AGL_FS_CAPTURE_SINGLE', 'AGL_SURFACE_BACKING_SIZE',
|
||||
'AGL_ENABLE_SURFACE_BACKING_SIZE', 'AGL_SURFACE_VOLATILE',
|
||||
'AGL_FORMAT_CACHE_SIZE', 'AGL_CLEAR_FORMAT_CACHE', 'AGL_RETAIN_RENDERERS',
|
||||
'AGL_MONOSCOPIC_BIT', 'AGL_STEREOSCOPIC_BIT', 'AGL_SINGLEBUFFER_BIT',
|
||||
'AGL_DOUBLEBUFFER_BIT', 'AGL_0_BIT', 'AGL_1_BIT', 'AGL_2_BIT', 'AGL_3_BIT',
|
||||
'AGL_4_BIT', 'AGL_5_BIT', 'AGL_6_BIT', 'AGL_8_BIT', 'AGL_10_BIT',
|
||||
'AGL_12_BIT', 'AGL_16_BIT', 'AGL_24_BIT', 'AGL_32_BIT', 'AGL_48_BIT',
|
||||
'AGL_64_BIT', 'AGL_96_BIT', 'AGL_128_BIT', 'AGL_RGB8_BIT', 'AGL_RGB8_A8_BIT',
|
||||
'AGL_BGR233_BIT', 'AGL_BGR233_A8_BIT', 'AGL_RGB332_BIT', 'AGL_RGB332_A8_BIT',
|
||||
'AGL_RGB444_BIT', 'AGL_ARGB4444_BIT', 'AGL_RGB444_A8_BIT', 'AGL_RGB555_BIT',
|
||||
'AGL_ARGB1555_BIT', 'AGL_RGB555_A8_BIT', 'AGL_RGB565_BIT',
|
||||
'AGL_RGB565_A8_BIT', 'AGL_RGB888_BIT', 'AGL_ARGB8888_BIT',
|
||||
'AGL_RGB888_A8_BIT', 'AGL_RGB101010_BIT', 'AGL_ARGB2101010_BIT',
|
||||
'AGL_RGB101010_A8_BIT', 'AGL_RGB121212_BIT', 'AGL_ARGB12121212_BIT',
|
||||
'AGL_RGB161616_BIT', 'AGL_ARGB16161616_BIT', 'AGL_INDEX8_BIT',
|
||||
'AGL_INDEX16_BIT', 'AGL_RGBFLOAT64_BIT', 'AGL_RGBAFLOAT64_BIT',
|
||||
'AGL_RGBFLOAT128_BIT', 'AGL_RGBAFLOAT128_BIT', 'AGL_RGBFLOAT256_BIT',
|
||||
'AGL_RGBAFLOAT256_BIT', 'AGL_NO_ERROR', 'AGL_BAD_ATTRIBUTE',
|
||||
'AGL_BAD_PROPERTY', 'AGL_BAD_PIXELFMT', 'AGL_BAD_RENDINFO', 'AGL_BAD_CONTEXT',
|
||||
'AGL_BAD_DRAWABLE', 'AGL_BAD_GDEV', 'AGL_BAD_STATE', 'AGL_BAD_VALUE',
|
||||
'AGL_BAD_MATCH', 'AGL_BAD_ENUM', 'AGL_BAD_OFFSCREEN', 'AGL_BAD_FULLSCREEN',
|
||||
'AGL_BAD_WINDOW', 'AGL_BAD_POINTER', 'AGL_BAD_MODULE', 'AGL_BAD_ALLOC',
|
||||
'AGL_BAD_CONNECTION', 'aglChoosePixelFormat', 'aglDestroyPixelFormat',
|
||||
'aglNextPixelFormat', 'aglDescribePixelFormat', 'aglDevicesOfPixelFormat',
|
||||
'aglQueryRendererInfo', 'aglDestroyRendererInfo', 'aglNextRendererInfo',
|
||||
'aglDescribeRenderer', 'aglCreateContext', 'aglDestroyContext',
|
||||
'aglCopyContext', 'aglUpdateContext', 'aglSetCurrentContext',
|
||||
'aglGetCurrentContext', 'aglSetDrawable', 'aglSetOffScreen',
|
||||
'aglSetFullScreen', 'aglGetDrawable', 'aglSetVirtualScreen',
|
||||
'aglGetVirtualScreen', 'aglGetVersion', 'aglConfigure', 'aglSwapBuffers',
|
||||
'aglEnable', 'aglDisable', 'aglIsEnabled', 'aglSetInteger', 'aglGetInteger',
|
||||
'aglUseFont', 'aglGetError', 'aglErrorString', 'aglResetLibrary',
|
||||
'aglSurfaceTexture', 'aglCreatePBuffer', 'aglDestroyPBuffer',
|
||||
'aglDescribePBuffer', 'aglTexImagePBuffer', 'aglSetPBuffer', 'aglGetPBuffer',
|
||||
'aglGetCGLContext', 'aglGetCGLPixelFormat']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,515 +0,0 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for /usr/include/GL/glu.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
from pyglet.gl.lib import link_GLU as _link_function
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for /usr/include/GL/glu.h
|
||||
|
||||
|
||||
GLU_EXT_object_space_tess = 1 # /usr/include/GL/glu.h:71
|
||||
GLU_EXT_nurbs_tessellator = 1 # /usr/include/GL/glu.h:72
|
||||
GLU_FALSE = 0 # /usr/include/GL/glu.h:75
|
||||
GLU_TRUE = 1 # /usr/include/GL/glu.h:76
|
||||
GLU_VERSION_1_1 = 1 # /usr/include/GL/glu.h:79
|
||||
GLU_VERSION_1_2 = 1 # /usr/include/GL/glu.h:80
|
||||
GLU_VERSION_1_3 = 1 # /usr/include/GL/glu.h:81
|
||||
GLU_VERSION = 100800 # /usr/include/GL/glu.h:84
|
||||
GLU_EXTENSIONS = 100801 # /usr/include/GL/glu.h:85
|
||||
GLU_INVALID_ENUM = 100900 # /usr/include/GL/glu.h:88
|
||||
GLU_INVALID_VALUE = 100901 # /usr/include/GL/glu.h:89
|
||||
GLU_OUT_OF_MEMORY = 100902 # /usr/include/GL/glu.h:90
|
||||
GLU_INCOMPATIBLE_GL_VERSION = 100903 # /usr/include/GL/glu.h:91
|
||||
GLU_INVALID_OPERATION = 100904 # /usr/include/GL/glu.h:92
|
||||
GLU_OUTLINE_POLYGON = 100240 # /usr/include/GL/glu.h:96
|
||||
GLU_OUTLINE_PATCH = 100241 # /usr/include/GL/glu.h:97
|
||||
GLU_NURBS_ERROR = 100103 # /usr/include/GL/glu.h:100
|
||||
GLU_ERROR = 100103 # /usr/include/GL/glu.h:101
|
||||
GLU_NURBS_BEGIN = 100164 # /usr/include/GL/glu.h:102
|
||||
GLU_NURBS_BEGIN_EXT = 100164 # /usr/include/GL/glu.h:103
|
||||
GLU_NURBS_VERTEX = 100165 # /usr/include/GL/glu.h:104
|
||||
GLU_NURBS_VERTEX_EXT = 100165 # /usr/include/GL/glu.h:105
|
||||
GLU_NURBS_NORMAL = 100166 # /usr/include/GL/glu.h:106
|
||||
GLU_NURBS_NORMAL_EXT = 100166 # /usr/include/GL/glu.h:107
|
||||
GLU_NURBS_COLOR = 100167 # /usr/include/GL/glu.h:108
|
||||
GLU_NURBS_COLOR_EXT = 100167 # /usr/include/GL/glu.h:109
|
||||
GLU_NURBS_TEXTURE_COORD = 100168 # /usr/include/GL/glu.h:110
|
||||
GLU_NURBS_TEX_COORD_EXT = 100168 # /usr/include/GL/glu.h:111
|
||||
GLU_NURBS_END = 100169 # /usr/include/GL/glu.h:112
|
||||
GLU_NURBS_END_EXT = 100169 # /usr/include/GL/glu.h:113
|
||||
GLU_NURBS_BEGIN_DATA = 100170 # /usr/include/GL/glu.h:114
|
||||
GLU_NURBS_BEGIN_DATA_EXT = 100170 # /usr/include/GL/glu.h:115
|
||||
GLU_NURBS_VERTEX_DATA = 100171 # /usr/include/GL/glu.h:116
|
||||
GLU_NURBS_VERTEX_DATA_EXT = 100171 # /usr/include/GL/glu.h:117
|
||||
GLU_NURBS_NORMAL_DATA = 100172 # /usr/include/GL/glu.h:118
|
||||
GLU_NURBS_NORMAL_DATA_EXT = 100172 # /usr/include/GL/glu.h:119
|
||||
GLU_NURBS_COLOR_DATA = 100173 # /usr/include/GL/glu.h:120
|
||||
GLU_NURBS_COLOR_DATA_EXT = 100173 # /usr/include/GL/glu.h:121
|
||||
GLU_NURBS_TEXTURE_COORD_DATA = 100174 # /usr/include/GL/glu.h:122
|
||||
GLU_NURBS_TEX_COORD_DATA_EXT = 100174 # /usr/include/GL/glu.h:123
|
||||
GLU_NURBS_END_DATA = 100175 # /usr/include/GL/glu.h:124
|
||||
GLU_NURBS_END_DATA_EXT = 100175 # /usr/include/GL/glu.h:125
|
||||
GLU_NURBS_ERROR1 = 100251 # /usr/include/GL/glu.h:128
|
||||
GLU_NURBS_ERROR2 = 100252 # /usr/include/GL/glu.h:129
|
||||
GLU_NURBS_ERROR3 = 100253 # /usr/include/GL/glu.h:130
|
||||
GLU_NURBS_ERROR4 = 100254 # /usr/include/GL/glu.h:131
|
||||
GLU_NURBS_ERROR5 = 100255 # /usr/include/GL/glu.h:132
|
||||
GLU_NURBS_ERROR6 = 100256 # /usr/include/GL/glu.h:133
|
||||
GLU_NURBS_ERROR7 = 100257 # /usr/include/GL/glu.h:134
|
||||
GLU_NURBS_ERROR8 = 100258 # /usr/include/GL/glu.h:135
|
||||
GLU_NURBS_ERROR9 = 100259 # /usr/include/GL/glu.h:136
|
||||
GLU_NURBS_ERROR10 = 100260 # /usr/include/GL/glu.h:137
|
||||
GLU_NURBS_ERROR11 = 100261 # /usr/include/GL/glu.h:138
|
||||
GLU_NURBS_ERROR12 = 100262 # /usr/include/GL/glu.h:139
|
||||
GLU_NURBS_ERROR13 = 100263 # /usr/include/GL/glu.h:140
|
||||
GLU_NURBS_ERROR14 = 100264 # /usr/include/GL/glu.h:141
|
||||
GLU_NURBS_ERROR15 = 100265 # /usr/include/GL/glu.h:142
|
||||
GLU_NURBS_ERROR16 = 100266 # /usr/include/GL/glu.h:143
|
||||
GLU_NURBS_ERROR17 = 100267 # /usr/include/GL/glu.h:144
|
||||
GLU_NURBS_ERROR18 = 100268 # /usr/include/GL/glu.h:145
|
||||
GLU_NURBS_ERROR19 = 100269 # /usr/include/GL/glu.h:146
|
||||
GLU_NURBS_ERROR20 = 100270 # /usr/include/GL/glu.h:147
|
||||
GLU_NURBS_ERROR21 = 100271 # /usr/include/GL/glu.h:148
|
||||
GLU_NURBS_ERROR22 = 100272 # /usr/include/GL/glu.h:149
|
||||
GLU_NURBS_ERROR23 = 100273 # /usr/include/GL/glu.h:150
|
||||
GLU_NURBS_ERROR24 = 100274 # /usr/include/GL/glu.h:151
|
||||
GLU_NURBS_ERROR25 = 100275 # /usr/include/GL/glu.h:152
|
||||
GLU_NURBS_ERROR26 = 100276 # /usr/include/GL/glu.h:153
|
||||
GLU_NURBS_ERROR27 = 100277 # /usr/include/GL/glu.h:154
|
||||
GLU_NURBS_ERROR28 = 100278 # /usr/include/GL/glu.h:155
|
||||
GLU_NURBS_ERROR29 = 100279 # /usr/include/GL/glu.h:156
|
||||
GLU_NURBS_ERROR30 = 100280 # /usr/include/GL/glu.h:157
|
||||
GLU_NURBS_ERROR31 = 100281 # /usr/include/GL/glu.h:158
|
||||
GLU_NURBS_ERROR32 = 100282 # /usr/include/GL/glu.h:159
|
||||
GLU_NURBS_ERROR33 = 100283 # /usr/include/GL/glu.h:160
|
||||
GLU_NURBS_ERROR34 = 100284 # /usr/include/GL/glu.h:161
|
||||
GLU_NURBS_ERROR35 = 100285 # /usr/include/GL/glu.h:162
|
||||
GLU_NURBS_ERROR36 = 100286 # /usr/include/GL/glu.h:163
|
||||
GLU_NURBS_ERROR37 = 100287 # /usr/include/GL/glu.h:164
|
||||
GLU_AUTO_LOAD_MATRIX = 100200 # /usr/include/GL/glu.h:167
|
||||
GLU_CULLING = 100201 # /usr/include/GL/glu.h:168
|
||||
GLU_SAMPLING_TOLERANCE = 100203 # /usr/include/GL/glu.h:169
|
||||
GLU_DISPLAY_MODE = 100204 # /usr/include/GL/glu.h:170
|
||||
GLU_PARAMETRIC_TOLERANCE = 100202 # /usr/include/GL/glu.h:171
|
||||
GLU_SAMPLING_METHOD = 100205 # /usr/include/GL/glu.h:172
|
||||
GLU_U_STEP = 100206 # /usr/include/GL/glu.h:173
|
||||
GLU_V_STEP = 100207 # /usr/include/GL/glu.h:174
|
||||
GLU_NURBS_MODE = 100160 # /usr/include/GL/glu.h:175
|
||||
GLU_NURBS_MODE_EXT = 100160 # /usr/include/GL/glu.h:176
|
||||
GLU_NURBS_TESSELLATOR = 100161 # /usr/include/GL/glu.h:177
|
||||
GLU_NURBS_TESSELLATOR_EXT = 100161 # /usr/include/GL/glu.h:178
|
||||
GLU_NURBS_RENDERER = 100162 # /usr/include/GL/glu.h:179
|
||||
GLU_NURBS_RENDERER_EXT = 100162 # /usr/include/GL/glu.h:180
|
||||
GLU_OBJECT_PARAMETRIC_ERROR = 100208 # /usr/include/GL/glu.h:183
|
||||
GLU_OBJECT_PARAMETRIC_ERROR_EXT = 100208 # /usr/include/GL/glu.h:184
|
||||
GLU_OBJECT_PATH_LENGTH = 100209 # /usr/include/GL/glu.h:185
|
||||
GLU_OBJECT_PATH_LENGTH_EXT = 100209 # /usr/include/GL/glu.h:186
|
||||
GLU_PATH_LENGTH = 100215 # /usr/include/GL/glu.h:187
|
||||
GLU_PARAMETRIC_ERROR = 100216 # /usr/include/GL/glu.h:188
|
||||
GLU_DOMAIN_DISTANCE = 100217 # /usr/include/GL/glu.h:189
|
||||
GLU_MAP1_TRIM_2 = 100210 # /usr/include/GL/glu.h:192
|
||||
GLU_MAP1_TRIM_3 = 100211 # /usr/include/GL/glu.h:193
|
||||
GLU_POINT = 100010 # /usr/include/GL/glu.h:196
|
||||
GLU_LINE = 100011 # /usr/include/GL/glu.h:197
|
||||
GLU_FILL = 100012 # /usr/include/GL/glu.h:198
|
||||
GLU_SILHOUETTE = 100013 # /usr/include/GL/glu.h:199
|
||||
GLU_SMOOTH = 100000 # /usr/include/GL/glu.h:205
|
||||
GLU_FLAT = 100001 # /usr/include/GL/glu.h:206
|
||||
GLU_NONE = 100002 # /usr/include/GL/glu.h:207
|
||||
GLU_OUTSIDE = 100020 # /usr/include/GL/glu.h:210
|
||||
GLU_INSIDE = 100021 # /usr/include/GL/glu.h:211
|
||||
GLU_TESS_BEGIN = 100100 # /usr/include/GL/glu.h:214
|
||||
GLU_BEGIN = 100100 # /usr/include/GL/glu.h:215
|
||||
GLU_TESS_VERTEX = 100101 # /usr/include/GL/glu.h:216
|
||||
GLU_VERTEX = 100101 # /usr/include/GL/glu.h:217
|
||||
GLU_TESS_END = 100102 # /usr/include/GL/glu.h:218
|
||||
GLU_END = 100102 # /usr/include/GL/glu.h:219
|
||||
GLU_TESS_ERROR = 100103 # /usr/include/GL/glu.h:220
|
||||
GLU_TESS_EDGE_FLAG = 100104 # /usr/include/GL/glu.h:221
|
||||
GLU_EDGE_FLAG = 100104 # /usr/include/GL/glu.h:222
|
||||
GLU_TESS_COMBINE = 100105 # /usr/include/GL/glu.h:223
|
||||
GLU_TESS_BEGIN_DATA = 100106 # /usr/include/GL/glu.h:224
|
||||
GLU_TESS_VERTEX_DATA = 100107 # /usr/include/GL/glu.h:225
|
||||
GLU_TESS_END_DATA = 100108 # /usr/include/GL/glu.h:226
|
||||
GLU_TESS_ERROR_DATA = 100109 # /usr/include/GL/glu.h:227
|
||||
GLU_TESS_EDGE_FLAG_DATA = 100110 # /usr/include/GL/glu.h:228
|
||||
GLU_TESS_COMBINE_DATA = 100111 # /usr/include/GL/glu.h:229
|
||||
GLU_CW = 100120 # /usr/include/GL/glu.h:232
|
||||
GLU_CCW = 100121 # /usr/include/GL/glu.h:233
|
||||
GLU_INTERIOR = 100122 # /usr/include/GL/glu.h:234
|
||||
GLU_EXTERIOR = 100123 # /usr/include/GL/glu.h:235
|
||||
GLU_UNKNOWN = 100124 # /usr/include/GL/glu.h:236
|
||||
GLU_TESS_WINDING_RULE = 100140 # /usr/include/GL/glu.h:239
|
||||
GLU_TESS_BOUNDARY_ONLY = 100141 # /usr/include/GL/glu.h:240
|
||||
GLU_TESS_TOLERANCE = 100142 # /usr/include/GL/glu.h:241
|
||||
GLU_TESS_ERROR1 = 100151 # /usr/include/GL/glu.h:244
|
||||
GLU_TESS_ERROR2 = 100152 # /usr/include/GL/glu.h:245
|
||||
GLU_TESS_ERROR3 = 100153 # /usr/include/GL/glu.h:246
|
||||
GLU_TESS_ERROR4 = 100154 # /usr/include/GL/glu.h:247
|
||||
GLU_TESS_ERROR5 = 100155 # /usr/include/GL/glu.h:248
|
||||
GLU_TESS_ERROR6 = 100156 # /usr/include/GL/glu.h:249
|
||||
GLU_TESS_ERROR7 = 100157 # /usr/include/GL/glu.h:250
|
||||
GLU_TESS_ERROR8 = 100158 # /usr/include/GL/glu.h:251
|
||||
GLU_TESS_MISSING_BEGIN_POLYGON = 100151 # /usr/include/GL/glu.h:252
|
||||
GLU_TESS_MISSING_BEGIN_CONTOUR = 100152 # /usr/include/GL/glu.h:253
|
||||
GLU_TESS_MISSING_END_POLYGON = 100153 # /usr/include/GL/glu.h:254
|
||||
GLU_TESS_MISSING_END_CONTOUR = 100154 # /usr/include/GL/glu.h:255
|
||||
GLU_TESS_COORD_TOO_LARGE = 100155 # /usr/include/GL/glu.h:256
|
||||
GLU_TESS_NEED_COMBINE_CALLBACK = 100156 # /usr/include/GL/glu.h:257
|
||||
GLU_TESS_WINDING_ODD = 100130 # /usr/include/GL/glu.h:260
|
||||
GLU_TESS_WINDING_NONZERO = 100131 # /usr/include/GL/glu.h:261
|
||||
GLU_TESS_WINDING_POSITIVE = 100132 # /usr/include/GL/glu.h:262
|
||||
GLU_TESS_WINDING_NEGATIVE = 100133 # /usr/include/GL/glu.h:263
|
||||
GLU_TESS_WINDING_ABS_GEQ_TWO = 100134 # /usr/include/GL/glu.h:264
|
||||
class struct_GLUnurbs(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUnurbs._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
class struct_GLUnurbs(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUnurbs._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUnurbs = struct_GLUnurbs # /usr/include/GL/glu.h:274
|
||||
class struct_GLUquadric(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUquadric._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
class struct_GLUquadric(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUquadric._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUquadric = struct_GLUquadric # /usr/include/GL/glu.h:275
|
||||
class struct_GLUtesselator(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUtesselator._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
class struct_GLUtesselator(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct_GLUtesselator._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUtesselator = struct_GLUtesselator # /usr/include/GL/glu.h:276
|
||||
GLUnurbsObj = GLUnurbs # /usr/include/GL/glu.h:279
|
||||
GLUquadricObj = GLUquadric # /usr/include/GL/glu.h:280
|
||||
GLUtesselatorObj = GLUtesselator # /usr/include/GL/glu.h:281
|
||||
GLUtriangulatorObj = GLUtesselator # /usr/include/GL/glu.h:282
|
||||
GLU_TESS_MAX_COORD = 1e+150 # /usr/include/GL/glu.h:284
|
||||
_GLUfuncptr = CFUNCTYPE(None) # /usr/include/GL/glu.h:287
|
||||
# /usr/include/GL/glu.h:289
|
||||
gluBeginCurve = _link_function('gluBeginCurve', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:290
|
||||
gluBeginPolygon = _link_function('gluBeginPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:291
|
||||
gluBeginSurface = _link_function('gluBeginSurface', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:292
|
||||
gluBeginTrim = _link_function('gluBeginTrim', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
GLint = c_int # /usr/include/GL/gl.h:127
|
||||
GLenum = c_uint # /usr/include/GL/gl.h:121
|
||||
GLsizei = c_int # /usr/include/GL/gl.h:131
|
||||
# /usr/include/GL/glu.h:293
|
||||
gluBuild1DMipmapLevels = _link_function('gluBuild1DMipmapLevels', GLint, [GLenum, GLint, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:294
|
||||
gluBuild1DMipmaps = _link_function('gluBuild1DMipmaps', GLint, [GLenum, GLint, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:295
|
||||
gluBuild2DMipmapLevels = _link_function('gluBuild2DMipmapLevels', GLint, [GLenum, GLint, GLsizei, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:296
|
||||
gluBuild2DMipmaps = _link_function('gluBuild2DMipmaps', GLint, [GLenum, GLint, GLsizei, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:297
|
||||
gluBuild3DMipmapLevels = _link_function('gluBuild3DMipmapLevels', GLint, [GLenum, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:298
|
||||
gluBuild3DMipmaps = _link_function('gluBuild3DMipmaps', GLint, [GLenum, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
GLboolean = c_ubyte # /usr/include/GL/gl.h:122
|
||||
GLubyte = c_ubyte # /usr/include/GL/gl.h:128
|
||||
# /usr/include/GL/glu.h:299
|
||||
gluCheckExtension = _link_function('gluCheckExtension', GLboolean, [POINTER(GLubyte), POINTER(GLubyte)], None)
|
||||
|
||||
GLdouble = c_double # /usr/include/GL/gl.h:134
|
||||
# /usr/include/GL/glu.h:300
|
||||
gluCylinder = _link_function('gluCylinder', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:301
|
||||
gluDeleteNurbsRenderer = _link_function('gluDeleteNurbsRenderer', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:302
|
||||
gluDeleteQuadric = _link_function('gluDeleteQuadric', None, [POINTER(GLUquadric)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:303
|
||||
gluDeleteTess = _link_function('gluDeleteTess', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:304
|
||||
gluDisk = _link_function('gluDisk', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:305
|
||||
gluEndCurve = _link_function('gluEndCurve', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:306
|
||||
gluEndPolygon = _link_function('gluEndPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:307
|
||||
gluEndSurface = _link_function('gluEndSurface', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:308
|
||||
gluEndTrim = _link_function('gluEndTrim', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:309
|
||||
gluErrorString = _link_function('gluErrorString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
GLfloat = c_float # /usr/include/GL/gl.h:132
|
||||
# /usr/include/GL/glu.h:310
|
||||
gluGetNurbsProperty = _link_function('gluGetNurbsProperty', None, [POINTER(GLUnurbs), GLenum, POINTER(GLfloat)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:311
|
||||
gluGetString = _link_function('gluGetString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:312
|
||||
gluGetTessProperty = _link_function('gluGetTessProperty', None, [POINTER(GLUtesselator), GLenum, POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:313
|
||||
gluLoadSamplingMatrices = _link_function('gluLoadSamplingMatrices', None, [POINTER(GLUnurbs), POINTER(GLfloat), POINTER(GLfloat), POINTER(GLint)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:314
|
||||
gluLookAt = _link_function('gluLookAt', None, [GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:315
|
||||
gluNewNurbsRenderer = _link_function('gluNewNurbsRenderer', POINTER(GLUnurbs), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:316
|
||||
gluNewQuadric = _link_function('gluNewQuadric', POINTER(GLUquadric), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:317
|
||||
gluNewTess = _link_function('gluNewTess', POINTER(GLUtesselator), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:318
|
||||
gluNextContour = _link_function('gluNextContour', None, [POINTER(GLUtesselator), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:319
|
||||
gluNurbsCallback = _link_function('gluNurbsCallback', None, [POINTER(GLUnurbs), GLenum, _GLUfuncptr], None)
|
||||
|
||||
GLvoid = None # /usr/include/GL/gl.h:124
|
||||
# /usr/include/GL/glu.h:320
|
||||
gluNurbsCallbackData = _link_function('gluNurbsCallbackData', None, [POINTER(GLUnurbs), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:321
|
||||
gluNurbsCallbackDataEXT = _link_function('gluNurbsCallbackDataEXT', None, [POINTER(GLUnurbs), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:322
|
||||
gluNurbsCurve = _link_function('gluNurbsCurve', None, [POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, POINTER(GLfloat), GLint, GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:323
|
||||
gluNurbsProperty = _link_function('gluNurbsProperty', None, [POINTER(GLUnurbs), GLenum, GLfloat], None)
|
||||
|
||||
# /usr/include/GL/glu.h:324
|
||||
gluNurbsSurface = _link_function('gluNurbsSurface', None, [POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, POINTER(GLfloat), GLint, GLint, POINTER(GLfloat), GLint, GLint, GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:325
|
||||
gluOrtho2D = _link_function('gluOrtho2D', None, [GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:326
|
||||
gluPartialDisk = _link_function('gluPartialDisk', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:327
|
||||
gluPerspective = _link_function('gluPerspective', None, [GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:328
|
||||
gluPickMatrix = _link_function('gluPickMatrix', None, [GLdouble, GLdouble, GLdouble, GLdouble, POINTER(GLint)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:329
|
||||
gluProject = _link_function('gluProject', GLint, [GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:330
|
||||
gluPwlCurve = _link_function('gluPwlCurve', None, [POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:331
|
||||
gluQuadricCallback = _link_function('gluQuadricCallback', None, [POINTER(GLUquadric), GLenum, _GLUfuncptr], None)
|
||||
|
||||
# /usr/include/GL/glu.h:332
|
||||
gluQuadricDrawStyle = _link_function('gluQuadricDrawStyle', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:333
|
||||
gluQuadricNormals = _link_function('gluQuadricNormals', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:334
|
||||
gluQuadricOrientation = _link_function('gluQuadricOrientation', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:335
|
||||
gluQuadricTexture = _link_function('gluQuadricTexture', None, [POINTER(GLUquadric), GLboolean], None)
|
||||
|
||||
# /usr/include/GL/glu.h:336
|
||||
gluScaleImage = _link_function('gluScaleImage', GLint, [GLenum, GLsizei, GLsizei, GLenum, POINTER(None), GLsizei, GLsizei, GLenum, POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:337
|
||||
gluSphere = _link_function('gluSphere', None, [POINTER(GLUquadric), GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:338
|
||||
gluTessBeginContour = _link_function('gluTessBeginContour', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:339
|
||||
gluTessBeginPolygon = _link_function('gluTessBeginPolygon', None, [POINTER(GLUtesselator), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:340
|
||||
gluTessCallback = _link_function('gluTessCallback', None, [POINTER(GLUtesselator), GLenum, _GLUfuncptr], None)
|
||||
|
||||
# /usr/include/GL/glu.h:341
|
||||
gluTessEndContour = _link_function('gluTessEndContour', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:342
|
||||
gluTessEndPolygon = _link_function('gluTessEndPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:343
|
||||
gluTessNormal = _link_function('gluTessNormal', None, [POINTER(GLUtesselator), GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:344
|
||||
gluTessProperty = _link_function('gluTessProperty', None, [POINTER(GLUtesselator), GLenum, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:345
|
||||
gluTessVertex = _link_function('gluTessVertex', None, [POINTER(GLUtesselator), POINTER(GLdouble), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:346
|
||||
gluUnProject = _link_function('gluUnProject', GLint, [GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:347
|
||||
gluUnProject4 = _link_function('gluUnProject4', GLint, [GLdouble, GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble)], None)
|
||||
|
||||
|
||||
__all__ = ['GLU_EXT_object_space_tess', 'GLU_EXT_nurbs_tessellator',
|
||||
'GLU_FALSE', 'GLU_TRUE', 'GLU_VERSION_1_1', 'GLU_VERSION_1_2',
|
||||
'GLU_VERSION_1_3', 'GLU_VERSION', 'GLU_EXTENSIONS', 'GLU_INVALID_ENUM',
|
||||
'GLU_INVALID_VALUE', 'GLU_OUT_OF_MEMORY', 'GLU_INCOMPATIBLE_GL_VERSION',
|
||||
'GLU_INVALID_OPERATION', 'GLU_OUTLINE_POLYGON', 'GLU_OUTLINE_PATCH',
|
||||
'GLU_NURBS_ERROR', 'GLU_ERROR', 'GLU_NURBS_BEGIN', 'GLU_NURBS_BEGIN_EXT',
|
||||
'GLU_NURBS_VERTEX', 'GLU_NURBS_VERTEX_EXT', 'GLU_NURBS_NORMAL',
|
||||
'GLU_NURBS_NORMAL_EXT', 'GLU_NURBS_COLOR', 'GLU_NURBS_COLOR_EXT',
|
||||
'GLU_NURBS_TEXTURE_COORD', 'GLU_NURBS_TEX_COORD_EXT', 'GLU_NURBS_END',
|
||||
'GLU_NURBS_END_EXT', 'GLU_NURBS_BEGIN_DATA', 'GLU_NURBS_BEGIN_DATA_EXT',
|
||||
'GLU_NURBS_VERTEX_DATA', 'GLU_NURBS_VERTEX_DATA_EXT', 'GLU_NURBS_NORMAL_DATA',
|
||||
'GLU_NURBS_NORMAL_DATA_EXT', 'GLU_NURBS_COLOR_DATA',
|
||||
'GLU_NURBS_COLOR_DATA_EXT', 'GLU_NURBS_TEXTURE_COORD_DATA',
|
||||
'GLU_NURBS_TEX_COORD_DATA_EXT', 'GLU_NURBS_END_DATA',
|
||||
'GLU_NURBS_END_DATA_EXT', 'GLU_NURBS_ERROR1', 'GLU_NURBS_ERROR2',
|
||||
'GLU_NURBS_ERROR3', 'GLU_NURBS_ERROR4', 'GLU_NURBS_ERROR5',
|
||||
'GLU_NURBS_ERROR6', 'GLU_NURBS_ERROR7', 'GLU_NURBS_ERROR8',
|
||||
'GLU_NURBS_ERROR9', 'GLU_NURBS_ERROR10', 'GLU_NURBS_ERROR11',
|
||||
'GLU_NURBS_ERROR12', 'GLU_NURBS_ERROR13', 'GLU_NURBS_ERROR14',
|
||||
'GLU_NURBS_ERROR15', 'GLU_NURBS_ERROR16', 'GLU_NURBS_ERROR17',
|
||||
'GLU_NURBS_ERROR18', 'GLU_NURBS_ERROR19', 'GLU_NURBS_ERROR20',
|
||||
'GLU_NURBS_ERROR21', 'GLU_NURBS_ERROR22', 'GLU_NURBS_ERROR23',
|
||||
'GLU_NURBS_ERROR24', 'GLU_NURBS_ERROR25', 'GLU_NURBS_ERROR26',
|
||||
'GLU_NURBS_ERROR27', 'GLU_NURBS_ERROR28', 'GLU_NURBS_ERROR29',
|
||||
'GLU_NURBS_ERROR30', 'GLU_NURBS_ERROR31', 'GLU_NURBS_ERROR32',
|
||||
'GLU_NURBS_ERROR33', 'GLU_NURBS_ERROR34', 'GLU_NURBS_ERROR35',
|
||||
'GLU_NURBS_ERROR36', 'GLU_NURBS_ERROR37', 'GLU_AUTO_LOAD_MATRIX',
|
||||
'GLU_CULLING', 'GLU_SAMPLING_TOLERANCE', 'GLU_DISPLAY_MODE',
|
||||
'GLU_PARAMETRIC_TOLERANCE', 'GLU_SAMPLING_METHOD', 'GLU_U_STEP', 'GLU_V_STEP',
|
||||
'GLU_NURBS_MODE', 'GLU_NURBS_MODE_EXT', 'GLU_NURBS_TESSELLATOR',
|
||||
'GLU_NURBS_TESSELLATOR_EXT', 'GLU_NURBS_RENDERER', 'GLU_NURBS_RENDERER_EXT',
|
||||
'GLU_OBJECT_PARAMETRIC_ERROR', 'GLU_OBJECT_PARAMETRIC_ERROR_EXT',
|
||||
'GLU_OBJECT_PATH_LENGTH', 'GLU_OBJECT_PATH_LENGTH_EXT', 'GLU_PATH_LENGTH',
|
||||
'GLU_PARAMETRIC_ERROR', 'GLU_DOMAIN_DISTANCE', 'GLU_MAP1_TRIM_2',
|
||||
'GLU_MAP1_TRIM_3', 'GLU_POINT', 'GLU_LINE', 'GLU_FILL', 'GLU_SILHOUETTE',
|
||||
'GLU_SMOOTH', 'GLU_FLAT', 'GLU_NONE', 'GLU_OUTSIDE', 'GLU_INSIDE',
|
||||
'GLU_TESS_BEGIN', 'GLU_BEGIN', 'GLU_TESS_VERTEX', 'GLU_VERTEX',
|
||||
'GLU_TESS_END', 'GLU_END', 'GLU_TESS_ERROR', 'GLU_TESS_EDGE_FLAG',
|
||||
'GLU_EDGE_FLAG', 'GLU_TESS_COMBINE', 'GLU_TESS_BEGIN_DATA',
|
||||
'GLU_TESS_VERTEX_DATA', 'GLU_TESS_END_DATA', 'GLU_TESS_ERROR_DATA',
|
||||
'GLU_TESS_EDGE_FLAG_DATA', 'GLU_TESS_COMBINE_DATA', 'GLU_CW', 'GLU_CCW',
|
||||
'GLU_INTERIOR', 'GLU_EXTERIOR', 'GLU_UNKNOWN', 'GLU_TESS_WINDING_RULE',
|
||||
'GLU_TESS_BOUNDARY_ONLY', 'GLU_TESS_TOLERANCE', 'GLU_TESS_ERROR1',
|
||||
'GLU_TESS_ERROR2', 'GLU_TESS_ERROR3', 'GLU_TESS_ERROR4', 'GLU_TESS_ERROR5',
|
||||
'GLU_TESS_ERROR6', 'GLU_TESS_ERROR7', 'GLU_TESS_ERROR8',
|
||||
'GLU_TESS_MISSING_BEGIN_POLYGON', 'GLU_TESS_MISSING_BEGIN_CONTOUR',
|
||||
'GLU_TESS_MISSING_END_POLYGON', 'GLU_TESS_MISSING_END_CONTOUR',
|
||||
'GLU_TESS_COORD_TOO_LARGE', 'GLU_TESS_NEED_COMBINE_CALLBACK',
|
||||
'GLU_TESS_WINDING_ODD', 'GLU_TESS_WINDING_NONZERO',
|
||||
'GLU_TESS_WINDING_POSITIVE', 'GLU_TESS_WINDING_NEGATIVE',
|
||||
'GLU_TESS_WINDING_ABS_GEQ_TWO', 'GLUnurbs', 'GLUquadric', 'GLUtesselator',
|
||||
'GLUnurbsObj', 'GLUquadricObj', 'GLUtesselatorObj', 'GLUtriangulatorObj',
|
||||
'GLU_TESS_MAX_COORD', '_GLUfuncptr', 'gluBeginCurve', 'gluBeginPolygon',
|
||||
'gluBeginSurface', 'gluBeginTrim', 'gluBuild1DMipmapLevels',
|
||||
'gluBuild1DMipmaps', 'gluBuild2DMipmapLevels', 'gluBuild2DMipmaps',
|
||||
'gluBuild3DMipmapLevels', 'gluBuild3DMipmaps', 'gluCheckExtension',
|
||||
'gluCylinder', 'gluDeleteNurbsRenderer', 'gluDeleteQuadric', 'gluDeleteTess',
|
||||
'gluDisk', 'gluEndCurve', 'gluEndPolygon', 'gluEndSurface', 'gluEndTrim',
|
||||
'gluErrorString', 'gluGetNurbsProperty', 'gluGetString', 'gluGetTessProperty',
|
||||
'gluLoadSamplingMatrices', 'gluLookAt', 'gluNewNurbsRenderer',
|
||||
'gluNewQuadric', 'gluNewTess', 'gluNextContour', 'gluNurbsCallback',
|
||||
'gluNurbsCallbackData', 'gluNurbsCallbackDataEXT', 'gluNurbsCurve',
|
||||
'gluNurbsProperty', 'gluNurbsSurface', 'gluOrtho2D', 'gluPartialDisk',
|
||||
'gluPerspective', 'gluPickMatrix', 'gluProject', 'gluPwlCurve',
|
||||
'gluQuadricCallback', 'gluQuadricDrawStyle', 'gluQuadricNormals',
|
||||
'gluQuadricOrientation', 'gluQuadricTexture', 'gluScaleImage', 'gluSphere',
|
||||
'gluTessBeginContour', 'gluTessBeginPolygon', 'gluTessCallback',
|
||||
'gluTessEndContour', 'gluTessEndPolygon', 'gluTessNormal', 'gluTessProperty',
|
||||
'gluTessVertex', 'gluUnProject', 'gluUnProject4']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
||||
|
||||
|
||||
|
||||
|
@ -1,373 +0,0 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for C:\cygwin\home\Alex\pyglet\tools\wgl.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
from pyglet.gl.lib import link_WGL as _link_function
|
||||
|
||||
|
||||
if not _link_function:
|
||||
raise ImportError('opengl32.dll is not available.')
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for C:\cygwin\home\Alex\pyglet\tools\wgl.h
|
||||
|
||||
|
||||
CONST = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:14
|
||||
GLenum = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:17
|
||||
GLboolean = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:18
|
||||
GLbitfield = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:19
|
||||
GLbyte = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:20
|
||||
GLshort = c_short # C:\cygwin\home\Alex\pyglet\tools\wgl.h:21
|
||||
GLint = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:22
|
||||
GLsizei = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:23
|
||||
GLubyte = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:24
|
||||
GLushort = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:25
|
||||
GLuint = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:26
|
||||
GLfloat = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:27
|
||||
GLclampf = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:28
|
||||
GLdouble = c_double # C:\cygwin\home\Alex\pyglet\tools\wgl.h:29
|
||||
GLclampd = c_double # C:\cygwin\home\Alex\pyglet\tools\wgl.h:30
|
||||
GLvoid = None # C:\cygwin\home\Alex\pyglet\tools\wgl.h:31
|
||||
INT8 = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:33
|
||||
PINT8 = c_char_p # C:\cygwin\home\Alex\pyglet\tools\wgl.h:33
|
||||
INT16 = c_short # C:\cygwin\home\Alex\pyglet\tools\wgl.h:34
|
||||
PINT16 = POINTER(c_short) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:34
|
||||
INT32 = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:35
|
||||
PINT32 = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:35
|
||||
UINT8 = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:36
|
||||
PUINT8 = POINTER(c_ubyte) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:36
|
||||
UINT16 = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:37
|
||||
PUINT16 = POINTER(c_ushort) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:37
|
||||
UINT32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:38
|
||||
PUINT32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:38
|
||||
LONG32 = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:39
|
||||
PLONG32 = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:39
|
||||
ULONG32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:40
|
||||
PULONG32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:40
|
||||
DWORD32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:41
|
||||
PDWORD32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:41
|
||||
INT64 = c_longlong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:42
|
||||
PINT64 = POINTER(c_longlong) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:42
|
||||
UINT64 = c_ulonglong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:43
|
||||
PUINT64 = POINTER(c_ulonglong) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:43
|
||||
VOID = None # C:\cygwin\home\Alex\pyglet\tools\wgl.h:45
|
||||
LPVOID = POINTER(None) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:45
|
||||
LPCSTR = c_char_p # C:\cygwin\home\Alex\pyglet\tools\wgl.h:46
|
||||
CHAR = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:47
|
||||
BYTE = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:48
|
||||
WORD = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:49
|
||||
USHORT = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:49
|
||||
UINT = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:50
|
||||
INT = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:51
|
||||
INT_PTR = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:51
|
||||
BOOL = c_long # C:\cygwin\home\Alex\pyglet\tools\wgl.h:52
|
||||
LONG = c_long # C:\cygwin\home\Alex\pyglet\tools\wgl.h:53
|
||||
DWORD = c_ulong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:54
|
||||
FLOAT = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:55
|
||||
COLORREF = DWORD # C:\cygwin\home\Alex\pyglet\tools\wgl.h:56
|
||||
LPCOLORREF = POINTER(DWORD) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:56
|
||||
HANDLE = POINTER(None) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:58
|
||||
HGLRC = HANDLE # C:\cygwin\home\Alex\pyglet\tools\wgl.h:60
|
||||
HDC = HANDLE # C:\cygwin\home\Alex\pyglet\tools\wgl.h:61
|
||||
PROC = CFUNCTYPE(INT_PTR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:63
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:65
|
||||
wglCopyContext = _link_function('wglCopyContext', BOOL, [HGLRC, HGLRC, UINT], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:66
|
||||
wglCreateContext = _link_function('wglCreateContext', HGLRC, [HDC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:67
|
||||
wglCreateLayerContext = _link_function('wglCreateLayerContext', HGLRC, [HDC, c_int], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:68
|
||||
wglDeleteContext = _link_function('wglDeleteContext', BOOL, [HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:69
|
||||
wglGetCurrentContext = _link_function('wglGetCurrentContext', HGLRC, [], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:70
|
||||
wglGetCurrentDC = _link_function('wglGetCurrentDC', HDC, [], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:71
|
||||
wglGetProcAddress = _link_function('wglGetProcAddress', PROC, [LPCSTR], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:72
|
||||
wglMakeCurrent = _link_function('wglMakeCurrent', BOOL, [HDC, HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:73
|
||||
wglShareLists = _link_function('wglShareLists', BOOL, [HGLRC, HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:74
|
||||
wglUseFontBitmapsA = _link_function('wglUseFontBitmapsA', BOOL, [HDC, DWORD, DWORD, DWORD], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:75
|
||||
wglUseFontBitmapsW = _link_function('wglUseFontBitmapsW', BOOL, [HDC, DWORD, DWORD, DWORD], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:76
|
||||
SwapBuffers = _link_function('SwapBuffers', BOOL, [HDC], None)
|
||||
|
||||
class struct__POINTFLOAT(Structure):
|
||||
__slots__ = [
|
||||
'x',
|
||||
'y',
|
||||
]
|
||||
struct__POINTFLOAT._fields_ = [
|
||||
('x', FLOAT),
|
||||
('y', FLOAT),
|
||||
]
|
||||
|
||||
POINTFLOAT = struct__POINTFLOAT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:81
|
||||
PPOINTFLOAT = POINTER(struct__POINTFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:81
|
||||
class struct__GLYPHMETRICSFLOAT(Structure):
|
||||
__slots__ = [
|
||||
'gmfBlackBoxX',
|
||||
'gmfBlackBoxY',
|
||||
'gmfptGlyphOrigin',
|
||||
'gmfCellIncX',
|
||||
'gmfCellIncY',
|
||||
]
|
||||
struct__GLYPHMETRICSFLOAT._fields_ = [
|
||||
('gmfBlackBoxX', FLOAT),
|
||||
('gmfBlackBoxY', FLOAT),
|
||||
('gmfptGlyphOrigin', POINTFLOAT),
|
||||
('gmfCellIncX', FLOAT),
|
||||
('gmfCellIncY', FLOAT),
|
||||
]
|
||||
|
||||
GLYPHMETRICSFLOAT = struct__GLYPHMETRICSFLOAT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
PGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
LPGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
WGL_FONT_LINES = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:91
|
||||
WGL_FONT_POLYGONS = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:92
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:93
|
||||
wglUseFontOutlinesA = _link_function('wglUseFontOutlinesA', BOOL, [HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:95
|
||||
wglUseFontOutlinesW = _link_function('wglUseFontOutlinesW', BOOL, [HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT], None)
|
||||
|
||||
class struct_tagLAYERPLANEDESCRIPTOR(Structure):
|
||||
__slots__ = [
|
||||
'nSize',
|
||||
'nVersion',
|
||||
'dwFlags',
|
||||
'iPixelType',
|
||||
'cColorBits',
|
||||
'cRedBits',
|
||||
'cRedShift',
|
||||
'cGreenBits',
|
||||
'cGreenShift',
|
||||
'cBlueBits',
|
||||
'cBlueShift',
|
||||
'cAlphaBits',
|
||||
'cAlphaShift',
|
||||
'cAccumBits',
|
||||
'cAccumRedBits',
|
||||
'cAccumGreenBits',
|
||||
'cAccumBlueBits',
|
||||
'cAccumAlphaBits',
|
||||
'cDepthBits',
|
||||
'cStencilBits',
|
||||
'cAuxBuffers',
|
||||
'iLayerPlane',
|
||||
'bReserved',
|
||||
'crTransparent',
|
||||
]
|
||||
struct_tagLAYERPLANEDESCRIPTOR._fields_ = [
|
||||
('nSize', WORD),
|
||||
('nVersion', WORD),
|
||||
('dwFlags', DWORD),
|
||||
('iPixelType', BYTE),
|
||||
('cColorBits', BYTE),
|
||||
('cRedBits', BYTE),
|
||||
('cRedShift', BYTE),
|
||||
('cGreenBits', BYTE),
|
||||
('cGreenShift', BYTE),
|
||||
('cBlueBits', BYTE),
|
||||
('cBlueShift', BYTE),
|
||||
('cAlphaBits', BYTE),
|
||||
('cAlphaShift', BYTE),
|
||||
('cAccumBits', BYTE),
|
||||
('cAccumRedBits', BYTE),
|
||||
('cAccumGreenBits', BYTE),
|
||||
('cAccumBlueBits', BYTE),
|
||||
('cAccumAlphaBits', BYTE),
|
||||
('cDepthBits', BYTE),
|
||||
('cStencilBits', BYTE),
|
||||
('cAuxBuffers', BYTE),
|
||||
('iLayerPlane', BYTE),
|
||||
('bReserved', BYTE),
|
||||
('crTransparent', COLORREF),
|
||||
]
|
||||
|
||||
LAYERPLANEDESCRIPTOR = struct_tagLAYERPLANEDESCRIPTOR # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
PLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
LPLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
LPD_DOUBLEBUFFER = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:128
|
||||
LPD_STEREO = 2 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:129
|
||||
LPD_SUPPORT_GDI = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:130
|
||||
LPD_SUPPORT_OPENGL = 32 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:131
|
||||
LPD_SHARE_DEPTH = 64 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:132
|
||||
LPD_SHARE_STENCIL = 128 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:133
|
||||
LPD_SHARE_ACCUM = 256 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:134
|
||||
LPD_SWAP_EXCHANGE = 512 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:135
|
||||
LPD_SWAP_COPY = 1024 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:136
|
||||
LPD_TRANSPARENT = 4096 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:137
|
||||
LPD_TYPE_RGBA = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:139
|
||||
LPD_TYPE_COLORINDEX = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:140
|
||||
WGL_SWAP_MAIN_PLANE = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:143
|
||||
WGL_SWAP_OVERLAY1 = 2 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:144
|
||||
WGL_SWAP_OVERLAY2 = 4 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:145
|
||||
WGL_SWAP_OVERLAY3 = 8 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:146
|
||||
WGL_SWAP_OVERLAY4 = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:147
|
||||
WGL_SWAP_OVERLAY5 = 32 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:148
|
||||
WGL_SWAP_OVERLAY6 = 64 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:149
|
||||
WGL_SWAP_OVERLAY7 = 128 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:150
|
||||
WGL_SWAP_OVERLAY8 = 256 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:151
|
||||
WGL_SWAP_OVERLAY9 = 512 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:152
|
||||
WGL_SWAP_OVERLAY10 = 1024 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:153
|
||||
WGL_SWAP_OVERLAY11 = 2048 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:154
|
||||
WGL_SWAP_OVERLAY12 = 4096 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:155
|
||||
WGL_SWAP_OVERLAY13 = 8192 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:156
|
||||
WGL_SWAP_OVERLAY14 = 16384 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:157
|
||||
WGL_SWAP_OVERLAY15 = 32768 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:158
|
||||
WGL_SWAP_UNDERLAY1 = 65536 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:159
|
||||
WGL_SWAP_UNDERLAY2 = 131072 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:160
|
||||
WGL_SWAP_UNDERLAY3 = 262144 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:161
|
||||
WGL_SWAP_UNDERLAY4 = 524288 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:162
|
||||
WGL_SWAP_UNDERLAY5 = 1048576 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:163
|
||||
WGL_SWAP_UNDERLAY6 = 2097152 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:164
|
||||
WGL_SWAP_UNDERLAY7 = 4194304 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:165
|
||||
WGL_SWAP_UNDERLAY8 = 8388608 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:166
|
||||
WGL_SWAP_UNDERLAY9 = 16777216 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:167
|
||||
WGL_SWAP_UNDERLAY10 = 33554432 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:168
|
||||
WGL_SWAP_UNDERLAY11 = 67108864 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:169
|
||||
WGL_SWAP_UNDERLAY12 = 134217728 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:170
|
||||
WGL_SWAP_UNDERLAY13 = 268435456 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:171
|
||||
WGL_SWAP_UNDERLAY14 = 536870912 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:172
|
||||
WGL_SWAP_UNDERLAY15 = 1073741824 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:173
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:175
|
||||
wglDescribeLayerPlane = _link_function('wglDescribeLayerPlane', BOOL, [HDC, c_int, c_int, UINT, LPLAYERPLANEDESCRIPTOR], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:177
|
||||
wglSetLayerPaletteEntries = _link_function('wglSetLayerPaletteEntries', c_int, [HDC, c_int, c_int, c_int, POINTER(COLORREF)], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:179
|
||||
wglGetLayerPaletteEntries = _link_function('wglGetLayerPaletteEntries', c_int, [HDC, c_int, c_int, c_int, POINTER(COLORREF)], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:181
|
||||
wglRealizeLayerPalette = _link_function('wglRealizeLayerPalette', BOOL, [HDC, c_int, BOOL], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:182
|
||||
wglSwapLayerBuffers = _link_function('wglSwapLayerBuffers', BOOL, [HDC, UINT], None)
|
||||
|
||||
class struct__WGLSWAP(Structure):
|
||||
__slots__ = [
|
||||
'hdc',
|
||||
'uiFlags',
|
||||
]
|
||||
struct__WGLSWAP._fields_ = [
|
||||
('hdc', HDC),
|
||||
('uiFlags', UINT),
|
||||
]
|
||||
|
||||
WGLSWAP = struct__WGLSWAP # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
PWGLSWAP = POINTER(struct__WGLSWAP) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
LPWGLSWAP = POINTER(struct__WGLSWAP) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
WGL_SWAPMULTIPLE_MAX = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:190
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:192
|
||||
wglSwapMultipleBuffers = _link_function('wglSwapMultipleBuffers', DWORD, [UINT, POINTER(WGLSWAP)], None)
|
||||
|
||||
class struct_tagRECT(Structure):
|
||||
__slots__ = [
|
||||
'left',
|
||||
'top',
|
||||
'right',
|
||||
'bottom',
|
||||
]
|
||||
struct_tagRECT._fields_ = [
|
||||
('left', LONG),
|
||||
('top', LONG),
|
||||
('right', LONG),
|
||||
('bottom', LONG),
|
||||
]
|
||||
|
||||
RECT = struct_tagRECT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
PRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
NPRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
LPRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
|
||||
__all__ = ['CONST', 'GLenum', 'GLboolean', 'GLbitfield', 'GLbyte', 'GLshort',
|
||||
'GLint', 'GLsizei', 'GLubyte', 'GLushort', 'GLuint', 'GLfloat', 'GLclampf',
|
||||
'GLdouble', 'GLclampd', 'GLvoid', 'INT8', 'PINT8', 'INT16', 'PINT16', 'INT32',
|
||||
'PINT32', 'UINT8', 'PUINT8', 'UINT16', 'PUINT16', 'UINT32', 'PUINT32',
|
||||
'LONG32', 'PLONG32', 'ULONG32', 'PULONG32', 'DWORD32', 'PDWORD32', 'INT64',
|
||||
'PINT64', 'UINT64', 'PUINT64', 'VOID', 'LPVOID', 'LPCSTR', 'CHAR', 'BYTE',
|
||||
'WORD', 'USHORT', 'UINT', 'INT', 'INT_PTR', 'BOOL', 'LONG', 'DWORD', 'FLOAT',
|
||||
'COLORREF', 'LPCOLORREF', 'HANDLE', 'HGLRC', 'HDC', 'PROC', 'wglCopyContext',
|
||||
'wglCreateContext', 'wglCreateLayerContext', 'wglDeleteContext',
|
||||
'wglGetCurrentContext', 'wglGetCurrentDC', 'wglGetProcAddress',
|
||||
'wglMakeCurrent', 'wglShareLists', 'wglUseFontBitmapsA', 'wglUseFontBitmapsW',
|
||||
'SwapBuffers', 'POINTFLOAT', 'PPOINTFLOAT', 'GLYPHMETRICSFLOAT',
|
||||
'PGLYPHMETRICSFLOAT', 'LPGLYPHMETRICSFLOAT', 'WGL_FONT_LINES',
|
||||
'WGL_FONT_POLYGONS', 'wglUseFontOutlinesA', 'wglUseFontOutlinesW',
|
||||
'LAYERPLANEDESCRIPTOR', 'PLAYERPLANEDESCRIPTOR', 'LPLAYERPLANEDESCRIPTOR',
|
||||
'LPD_DOUBLEBUFFER', 'LPD_STEREO', 'LPD_SUPPORT_GDI', 'LPD_SUPPORT_OPENGL',
|
||||
'LPD_SHARE_DEPTH', 'LPD_SHARE_STENCIL', 'LPD_SHARE_ACCUM',
|
||||
'LPD_SWAP_EXCHANGE', 'LPD_SWAP_COPY', 'LPD_TRANSPARENT', 'LPD_TYPE_RGBA',
|
||||
'LPD_TYPE_COLORINDEX', 'WGL_SWAP_MAIN_PLANE', 'WGL_SWAP_OVERLAY1',
|
||||
'WGL_SWAP_OVERLAY2', 'WGL_SWAP_OVERLAY3', 'WGL_SWAP_OVERLAY4',
|
||||
'WGL_SWAP_OVERLAY5', 'WGL_SWAP_OVERLAY6', 'WGL_SWAP_OVERLAY7',
|
||||
'WGL_SWAP_OVERLAY8', 'WGL_SWAP_OVERLAY9', 'WGL_SWAP_OVERLAY10',
|
||||
'WGL_SWAP_OVERLAY11', 'WGL_SWAP_OVERLAY12', 'WGL_SWAP_OVERLAY13',
|
||||
'WGL_SWAP_OVERLAY14', 'WGL_SWAP_OVERLAY15', 'WGL_SWAP_UNDERLAY1',
|
||||
'WGL_SWAP_UNDERLAY2', 'WGL_SWAP_UNDERLAY3', 'WGL_SWAP_UNDERLAY4',
|
||||
'WGL_SWAP_UNDERLAY5', 'WGL_SWAP_UNDERLAY6', 'WGL_SWAP_UNDERLAY7',
|
||||
'WGL_SWAP_UNDERLAY8', 'WGL_SWAP_UNDERLAY9', 'WGL_SWAP_UNDERLAY10',
|
||||
'WGL_SWAP_UNDERLAY11', 'WGL_SWAP_UNDERLAY12', 'WGL_SWAP_UNDERLAY13',
|
||||
'WGL_SWAP_UNDERLAY14', 'WGL_SWAP_UNDERLAY15', 'wglDescribeLayerPlane',
|
||||
'wglSetLayerPaletteEntries', 'wglGetLayerPaletteEntries',
|
||||
'wglRealizeLayerPalette', 'wglSwapLayerBuffers', 'WGLSWAP', 'PWGLSWAP',
|
||||
'LPWGLSWAP', 'WGL_SWAPMULTIPLE_MAX', 'wglSwapMultipleBuffers', 'RECT',
|
||||
'PRECT', 'NPRECT', 'LPRECT']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
||||
|
@ -26,18 +26,26 @@ if __name__ == '__main__':
|
||||
print("os.getcwd() = ", os.getcwd())
|
||||
|
||||
os.chdir(sys.path[0]) # TODO 没做完.ing
|
||||
sys.path.append('DR')
|
||||
sys.path.append('DR/libs')
|
||||
sys.path.append('Difficult_Rocket')
|
||||
sys.path.append('Difficult_Rocket/libs')
|
||||
|
||||
print(hi)
|
||||
try:
|
||||
from DR import main
|
||||
from Difficult_Rocket import main
|
||||
|
||||
game = main.Game()
|
||||
game.start()
|
||||
except Exception as e:
|
||||
except:
|
||||
print('the game has error , now outputting error message')
|
||||
error = traceback.format_exc()
|
||||
print(error)
|
||||
from DR import crash
|
||||
crash_thread = threading.Thread(target=crash.create_crash_report, args=(error, ), name='Crash report thread')
|
||||
from Difficult_Rocket import crash
|
||||
|
||||
crash_thread = threading.Thread(target=crash.create_crash_report, args=(error,), name='Crash report thread')
|
||||
crash_thread.start()
|
||||
crash_thread.join()
|
||||
print(crash_thread.__str__())
|
||||
else:
|
||||
for thread in threading.enumerate():
|
||||
if thread == threading.main_thread(): continue
|
||||
print(thread.__str__())
|
||||
|
@ -16,10 +16,5 @@ __all__ = [
|
||||
|
||||
@new_thread('think')
|
||||
def think(some_thing_to_think):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
gotcha = 'think_result'
|
||||
return gotcha
|
@ -13,6 +13,7 @@ class Error(Exception):
|
||||
|
||||
class TexturesError(Error):
|
||||
"""材质相关error 包含info和textures"""
|
||||
|
||||
def __init__(self, info, textures):
|
||||
self.info = info
|
||||
self.textures = textures
|
||||
@ -23,6 +24,7 @@ class TexturesError(Error):
|
||||
|
||||
class LanguageError(Error):
|
||||
"""lang文件相关error 包含info和language"""
|
||||
|
||||
def __init__(self, info, language):
|
||||
self.info = info
|
||||
self.lang = language
|
@ -5,10 +5,15 @@ github: @shenjackyuanjie
|
||||
gitee: @shenjackyuanjie
|
||||
"""
|
||||
|
||||
from .new_thread import new_thread
|
||||
from .Exp import TexturesError, LanguageError
|
||||
from .delivery import Delivery
|
||||
from .new_thread import new_thread
|
||||
from .tools import config
|
||||
from .translate import Lang
|
||||
|
||||
__all__ = ['new_thread',
|
||||
__all__ = ['TexturesError',
|
||||
'LanguageError',
|
||||
'new_thread',
|
||||
'Delivery',
|
||||
'config']
|
||||
'config',
|
||||
'Lang']
|
@ -22,7 +22,7 @@ def new_thread(thread_name: Optional[str or Callable] = None):
|
||||
@functools.wraps(func) # to preserve the origin function information
|
||||
def wrap(*args, **kwargs):
|
||||
thread = threading.Thread(target=func, args=args, kwargs=kwargs, name=thread_name)
|
||||
thread.setDaemon(True)
|
||||
thread.setDaemon(False)
|
||||
thread.start()
|
||||
return thread
|
||||
|
||||
@ -42,12 +42,12 @@ def new_thread(thread_name: Optional[str or Callable] = None):
|
||||
|
||||
|
||||
@new_thread()
|
||||
def a():
|
||||
def a(name):
|
||||
print('ah')
|
||||
print(name)
|
||||
time.sleep(2)
|
||||
print('done')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
b = a()
|
||||
b.join()
|
||||
a('shenjack')
|
@ -4,19 +4,17 @@ mail: 3695888@qq.com
|
||||
github: @shenjackyuanjie
|
||||
"""
|
||||
|
||||
import configparser
|
||||
import decimal
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import math
|
||||
import xml.dom.minidom
|
||||
import traceback
|
||||
from xml.dom.minidom import parse
|
||||
|
||||
import semver
|
||||
import logging
|
||||
import decimal
|
||||
import traceback
|
||||
import configparser
|
||||
from xml.dom.minidom import parse
|
||||
from typing import Optional
|
||||
|
||||
if __name__ == '__main__': # been start will not run this
|
||||
sys.path.append('/bin/libs')
|
||||
@ -36,7 +34,8 @@ file configs
|
||||
def report_file_error(filetype: str, error_type, filename: str, stack: any):
|
||||
error = traceback.format_exc()
|
||||
if isinstance(error_type, FileNotFoundError):
|
||||
log = 'no {} file was found!: \n file name: {} \n file type: {} \n stack: {} \n traceback: {}'.format(filetype, filename, filetype, stack, error)
|
||||
log = 'no {} file was found!: \n file name: {} \n file type: {} \n stack: {} \n traceback: {}'.format(filetype, filename, filetype, stack,
|
||||
error)
|
||||
elif isinstance(error_type, KeyError):
|
||||
log = 'no stack in %s file: %s \n file type: %s \n stack: %s' % (filetype, filename, filetype, stack)
|
||||
else:
|
@ -12,6 +12,7 @@ class Lang:
|
||||
感谢Fallen的MCDR提供idea
|
||||
https://github.com/Fallen-Breath/MCDReforged
|
||||
"""
|
||||
|
||||
def __init__(self, language: str):
|
||||
self.语言 = language
|
||||
self.翻译结果 = {}
|
@ -2,27 +2,21 @@
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
import configparser
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
import configparser
|
||||
|
||||
if __name__ == '__main__': # been start will not run this
|
||||
sys.path.append('/bin/libs')
|
||||
sys.path.append('/bin')
|
||||
|
||||
import pyglet
|
||||
from pyglet.window import key
|
||||
from pyglet.window import mouse
|
||||
|
||||
import drag_sprite
|
||||
from api import Exp
|
||||
from api import tools
|
||||
from api.tools import config
|
||||
from api.delivery import Delivery
|
||||
from Difficult_Rocket.libs import pyglet
|
||||
from Difficult_Rocket.libs.pyglet.window import key, mouse
|
||||
from Difficult_Rocket.api import Exp, tools, config
|
||||
from drag_sprite import DragSprite
|
||||
from api.new_thread import new_thread
|
||||
# from mcdreforged.api.decorator import new_thread
|
||||
|
||||
|
||||
class Client:
|
||||
@ -112,7 +106,10 @@ class ClientWindow(pyglet.window.Window):
|
||||
def load_environment(self) -> None:
|
||||
# load parts info
|
||||
self.environment['parts'] = config('configs/sys_value/parts.json5')
|
||||
self.load_textures()
|
||||
try:
|
||||
self.load_textures()
|
||||
except Exp.TexturesError:
|
||||
raise
|
||||
|
||||
@new_thread('client_load_textures')
|
||||
def load_textures(self) -> None:
|
||||
@ -121,11 +118,10 @@ class ClientWindow(pyglet.window.Window):
|
||||
for part in self.environment['parts']:
|
||||
pass
|
||||
|
||||
|
||||
def setup(self):
|
||||
self.logger.info(self.lang['os.pid_is'].format(os.getpid(), os.getppid()))
|
||||
image = pyglet.image.load('textures/Editor/PartButton.png')
|
||||
self.textures['test'] = drag_sprite.DragSprite(10, 20, image, batch=self.label_batch, drag_by_all=False, drag_out_window=True)
|
||||
self.textures['test'] = DragSprite(10, 20, image, batch=self.label_batch, drag_by_all=False, drag_out_window=True)
|
||||
self.load_environment()
|
||||
|
||||
# draws
|
@ -119,4 +119,3 @@ def basic_poi(poi_type=None) -> list:
|
||||
|
||||
def basic_force() -> list:
|
||||
return BasicNumber(unit1='N', num=2)
|
||||
|
@ -6,13 +6,11 @@ gitee: @shenjackyuanjie
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
import threading
|
||||
from typing import Optional
|
||||
|
||||
|
||||
# where the crash report from
|
||||
# this can't be crash , or the game will really crash!
|
||||
|
||||
@ -29,6 +27,23 @@ System_message = """## System info
|
||||
"""
|
||||
|
||||
|
||||
def thread_crash_check() -> None:
|
||||
"""
|
||||
Need to run in a new thread
|
||||
will raise error when any thread raise error
|
||||
maybe will create a crash report
|
||||
"""
|
||||
all_thread = {}
|
||||
thread_local = threading.local()
|
||||
for thread in threading.enumerate():
|
||||
if thread not in all_thread:
|
||||
all_thread[thread.name] = thread
|
||||
for any_thread in all_thread:
|
||||
if not all_thread[any_thread].is_alive():
|
||||
pass
|
||||
# if all_thread[any_thread].exitcode
|
||||
|
||||
|
||||
def crash_info_handler(info: str = None) -> str:
|
||||
if not info:
|
||||
info = traceback.format_exc()
|
@ -3,22 +3,19 @@ writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
import multiprocessing
|
||||
from multiprocessing import Manager as share
|
||||
|
||||
if __name__ == '__main__': # been start will not run this
|
||||
sys.path.append('/bin/libs')
|
||||
sys.path.append('/bin')
|
||||
|
||||
from api import tools
|
||||
import client
|
||||
import server
|
||||
import configs
|
||||
import pyglet
|
||||
from Difficult_Rocket import client, server
|
||||
from Difficult_Rocket.libs import pyglet
|
||||
from Difficult_Rocket.api import tools
|
||||
|
||||
|
||||
class Game:
|
||||
@ -84,6 +81,15 @@ class Game:
|
||||
warning = tools.name_handler(self.lang['version.best3.8+'])
|
||||
self.main_logger.warning(warning)
|
||||
|
||||
def start(self) -> None:
|
||||
# @new_thread('main')
|
||||
def _start(self) -> int:
|
||||
self.server.run()
|
||||
pyglet.app.run()
|
||||
try:
|
||||
pyglet.app.run()
|
||||
except:
|
||||
return -1
|
||||
else:
|
||||
return 1
|
||||
|
||||
def start(self) -> None:
|
||||
self._start()
|
@ -2,9 +2,9 @@
|
||||
writen by shenjackyuanjie
|
||||
mail: 3695888@qq.com
|
||||
"""
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
if __name__ == '__main__': # been start will not run this
|
||||
sys.path.append('/bin/libs')
|
||||
@ -14,6 +14,7 @@ from api import tools
|
||||
from api.delivery import Delivery
|
||||
from api.new_thread import new_thread
|
||||
|
||||
|
||||
# TODO 改变服务端启动逻辑 0.6.0会写完的(
|
||||
|
||||
|
||||
@ -41,4 +42,3 @@ class Server:
|
||||
def run(self):
|
||||
self.logger.info(self.lang['os.pid_is'].format(os.getpid(), os.getppid()))
|
||||
self.logger.debug(self)
|
||||
|
@ -1,4 +1,5 @@
|
||||
# Difficult Rocket
|
||||
|
||||
- [github](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
||||
- [gitee](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
||||
|
||||
|
@ -4,11 +4,24 @@
|
||||
|
||||
[](https://Semver.org/)
|
||||

|
||||
|
||||
- [](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
||||
- [](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
||||
- [-blue.svg?style=flat-square)](README-cn.md)
|
||||
- [-blue.svg?style=flat-square)](README-cn.md)
|
||||
- Using [SemVer 2.0.0](https://semver.org/) to manage version
|
||||
|
||||
## 202109 V 0.5.2
|
||||
|
||||
### Change
|
||||
|
||||
- now bin folder use the name `Difficult_Rocket`
|
||||
- now test files no longer have `_test_` prefix
|
||||
- now will always use local `pyglet`
|
||||
|
||||
### Add
|
||||
|
||||
- `"mods support"` will done in 1.0.0
|
||||
|
||||
## 20210902 V 0.5.1
|
||||
|
||||
### Change
|
||||
@ -29,7 +42,7 @@
|
||||
|
||||
### Change
|
||||
|
||||
- many `sys.path.append()` and
|
||||
- many `sys.path.append()` and
|
||||
- `try: import xxx except: from bin import xxx` has been removed
|
||||
- and now IDE won't blame you when you open the file anymore!(LOL)
|
||||
- `Server` now use Dev to delivery message between thread(will be done in 0.6.0)
|
||||
@ -66,7 +79,8 @@
|
||||
### Delete
|
||||
|
||||
- all game window render has been deleted
|
||||
- - will be rewritten in 0.5.0
|
||||
-
|
||||
- will be rewritten in 0.5.0
|
||||
- delete some useless code
|
||||
- delete some useless file
|
||||
|
||||
@ -87,7 +101,6 @@
|
||||
- Pre-installed `pyglet` upgrade from `1.5.16` -> `1.5.18`
|
||||
- Pre-installed `json5` upgrade from `0.9.5` -> `0.9.6`
|
||||
|
||||
|
||||
## 20210708 V 0.4.4
|
||||
|
||||
### PS
|
||||
|
@ -17,7 +17,6 @@
|
||||
from .lib import load, loads, dump, dumps
|
||||
from .version import VERSION
|
||||
|
||||
|
||||
__all__ = [
|
||||
'VERSION',
|
||||
'dump',
|
@ -16,6 +16,5 @@ import sys # pragma: no cover
|
||||
|
||||
from .tool import main # pragma: no cover
|
||||
|
||||
|
||||
if __name__ == '__main__': # pragma: no cover
|
||||
sys.exit(main())
|
@ -17,7 +17,6 @@ import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
# pylint: disable=redefined-builtin, invalid-name
|
||||
str = unicode
|
@ -19,7 +19,6 @@ import unicodedata
|
||||
|
||||
from .parser import Parser
|
||||
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
str_types = (str, unicode)
|
||||
str = unicode # pylint: disable=redefined-builtin, invalid-name
|
||||
@ -89,7 +88,7 @@ def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None,
|
||||
elif object_hook:
|
||||
dictify = lambda pairs: object_hook(dict(pairs))
|
||||
else:
|
||||
dictify = lambda pairs: dict(pairs) # pylint: disable=unnecessary-lambda
|
||||
dictify = lambda pairs: dict(pairs) # pylint: disable=unnecessary-lambda
|
||||
|
||||
if not allow_duplicate_keys:
|
||||
_orig_dictify = dictify
|
||||
@ -110,6 +109,7 @@ def _reject_duplicate_keys(pairs, dictify):
|
||||
keys.add(key)
|
||||
return dictify(pairs)
|
||||
|
||||
|
||||
def _walk_ast(el, dictify, parse_float, parse_int, parse_constant):
|
||||
if el == 'None':
|
||||
return None
|
||||
@ -250,11 +250,11 @@ def _dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, indent,
|
||||
s = u'null'
|
||||
elif isinstance(obj, str_types):
|
||||
if (is_key and _is_ident(obj) and not quote_keys
|
||||
and not _is_reserved_word(obj)):
|
||||
and not _is_reserved_word(obj)):
|
||||
return True, obj
|
||||
return True, _dump_str(obj, ensure_ascii)
|
||||
elif isinstance(obj, float):
|
||||
s = _dump_float(obj,allow_nan)
|
||||
s = _dump_float(obj, allow_nan)
|
||||
elif isinstance(obj, int):
|
||||
s = str(obj)
|
||||
else:
|
||||
@ -460,6 +460,7 @@ def _is_id_continue(ch):
|
||||
|
||||
_reserved_word_re = None
|
||||
|
||||
|
||||
def _is_reserved_word(k):
|
||||
global _reserved_word_re
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
# pylint: disable=redefined-builtin,invalid-name
|
||||
chr = unichr
|
@ -92,20 +92,14 @@ The information modules are provided for convenience, and are documented
|
||||
below.
|
||||
"""
|
||||
|
||||
from pyglet.gl.gl import *
|
||||
from pyglet.gl.glu import *
|
||||
from pyglet.gl.lib import GLException
|
||||
from pyglet.gl.glext_arb import *
|
||||
from pyglet.gl import gl_info
|
||||
import sys as _sys
|
||||
|
||||
import pyglet as _pyglet
|
||||
|
||||
from pyglet import compat_platform
|
||||
from pyglet.gl.gl import *
|
||||
|
||||
from .base import ObjectSpace, CanvasConfig, Context
|
||||
|
||||
|
||||
import sys as _sys
|
||||
|
||||
_is_pyglet_doc_run = hasattr(_sys, "is_pyglet_doc_run") and _sys.is_pyglet_doc_run
|
||||
|
||||
#: The active OpenGL context.
|
||||
@ -132,6 +126,7 @@ if _pyglet.options['debug_texture']:
|
||||
_debug_texture_sizes = {}
|
||||
_debug_texture = None
|
||||
|
||||
|
||||
def _debug_texture_alloc(texture, size):
|
||||
global _debug_texture_total
|
||||
|
||||
@ -140,6 +135,7 @@ if _pyglet.options['debug_texture']:
|
||||
|
||||
print('%d (+%d)' % (_debug_texture_total, size))
|
||||
|
||||
|
||||
def _debug_texture_dealloc(texture):
|
||||
global _debug_texture_total
|
||||
|
||||
@ -222,7 +218,6 @@ elif compat_platform.startswith('linux'):
|
||||
elif compat_platform == 'darwin':
|
||||
from .cocoa import CocoaConfig as Config
|
||||
|
||||
|
||||
_shadow_window = None
|
||||
|
||||
# Import pyglet.window now if it isn't currently being imported (this creates the shadow window).
|
472
libs/pyglet/gl/agl.py
Normal file
472
libs/pyglet/gl/agl.py
Normal file
@ -0,0 +1,472 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.lib import link_AGL as _link_function
|
||||
|
||||
if not _link_function:
|
||||
raise ImportError('AGL framework is not available.')
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h
|
||||
|
||||
|
||||
AGL_VERSION_2_0 = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:41
|
||||
|
||||
|
||||
class struct_GDevice(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GDevice._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GDevice = struct_GDevice # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1347
|
||||
GDPtr = POINTER(GDevice) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1348
|
||||
GDHandle = POINTER(GDPtr) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1349
|
||||
AGLDevice = GDHandle # /System/Library/Frameworks/AGL.framework/Headers/agl.h:46
|
||||
|
||||
|
||||
class struct_OpaqueGrafPtr(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_OpaqueGrafPtr._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GrafPtr = POINTER(struct_OpaqueGrafPtr) # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1009
|
||||
CGrafPtr = GrafPtr # /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:1392
|
||||
AGLDrawable = CGrafPtr # /System/Library/Frameworks/AGL.framework/Headers/agl.h:51
|
||||
|
||||
|
||||
class struct___AGLRendererInfoRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___AGLRendererInfoRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLRendererInfo = POINTER(struct___AGLRendererInfoRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:56
|
||||
|
||||
|
||||
class struct___AGLPixelFormatRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___AGLPixelFormatRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLPixelFormat = POINTER(struct___AGLPixelFormatRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:57
|
||||
|
||||
|
||||
class struct___AGLContextRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___AGLContextRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLContext = POINTER(struct___AGLContextRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:58
|
||||
|
||||
|
||||
class struct___AGLPBufferRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___AGLPBufferRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
AGLPbuffer = POINTER(struct___AGLPBufferRec) # /System/Library/Frameworks/AGL.framework/Headers/agl.h:59
|
||||
AGL_NONE = 0 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:66
|
||||
AGL_ALL_RENDERERS = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:67
|
||||
AGL_BUFFER_SIZE = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:68
|
||||
AGL_LEVEL = 3 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:69
|
||||
AGL_RGBA = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:70
|
||||
AGL_DOUBLEBUFFER = 5 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:71
|
||||
AGL_STEREO = 6 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:72
|
||||
AGL_AUX_BUFFERS = 7 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:73
|
||||
AGL_RED_SIZE = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:74
|
||||
AGL_GREEN_SIZE = 9 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:75
|
||||
AGL_BLUE_SIZE = 10 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:76
|
||||
AGL_ALPHA_SIZE = 11 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:77
|
||||
AGL_DEPTH_SIZE = 12 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:78
|
||||
AGL_STENCIL_SIZE = 13 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:79
|
||||
AGL_ACCUM_RED_SIZE = 14 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:80
|
||||
AGL_ACCUM_GREEN_SIZE = 15 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:81
|
||||
AGL_ACCUM_BLUE_SIZE = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:82
|
||||
AGL_ACCUM_ALPHA_SIZE = 17 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:83
|
||||
AGL_PIXEL_SIZE = 50 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:88
|
||||
AGL_MINIMUM_POLICY = 51 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:89
|
||||
AGL_MAXIMUM_POLICY = 52 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:90
|
||||
AGL_OFFSCREEN = 53 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:91
|
||||
AGL_FULLSCREEN = 54 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:92
|
||||
AGL_SAMPLE_BUFFERS_ARB = 55 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:93
|
||||
AGL_SAMPLES_ARB = 56 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:94
|
||||
AGL_AUX_DEPTH_STENCIL = 57 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:95
|
||||
AGL_COLOR_FLOAT = 58 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:96
|
||||
AGL_MULTISAMPLE = 59 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:97
|
||||
AGL_SUPERSAMPLE = 60 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:98
|
||||
AGL_SAMPLE_ALPHA = 61 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:99
|
||||
AGL_RENDERER_ID = 70 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:104
|
||||
AGL_SINGLE_RENDERER = 71 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:105
|
||||
AGL_NO_RECOVERY = 72 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:106
|
||||
AGL_ACCELERATED = 73 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:107
|
||||
AGL_CLOSEST_POLICY = 74 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:108
|
||||
AGL_ROBUST = 75 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:109
|
||||
AGL_BACKING_STORE = 76 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:110
|
||||
AGL_MP_SAFE = 78 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:111
|
||||
AGL_WINDOW = 80 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:113
|
||||
AGL_MULTISCREEN = 81 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:114
|
||||
AGL_VIRTUAL_SCREEN = 82 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:115
|
||||
AGL_COMPLIANT = 83 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:116
|
||||
AGL_PBUFFER = 90 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:118
|
||||
AGL_BUFFER_MODES = 100 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:135
|
||||
AGL_MIN_LEVEL = 101 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:136
|
||||
AGL_MAX_LEVEL = 102 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:137
|
||||
AGL_COLOR_MODES = 103 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:138
|
||||
AGL_ACCUM_MODES = 104 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:139
|
||||
AGL_DEPTH_MODES = 105 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:140
|
||||
AGL_STENCIL_MODES = 106 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:141
|
||||
AGL_MAX_AUX_BUFFERS = 107 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:142
|
||||
AGL_VIDEO_MEMORY = 120 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:143
|
||||
AGL_TEXTURE_MEMORY = 121 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:144
|
||||
AGL_RENDERER_COUNT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:145
|
||||
AGL_SWAP_RECT = 200 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:150
|
||||
AGL_BUFFER_RECT = 202 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:151
|
||||
AGL_SWAP_LIMIT = 203 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:152
|
||||
AGL_COLORMAP_TRACKING = 210 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:153
|
||||
AGL_COLORMAP_ENTRY = 212 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:154
|
||||
AGL_RASTERIZATION = 220 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:155
|
||||
AGL_SWAP_INTERVAL = 222 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:156
|
||||
AGL_STATE_VALIDATION = 230 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:157
|
||||
AGL_BUFFER_NAME = 231 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:158
|
||||
AGL_ORDER_CONTEXT_TO_FRONT = 232 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:159
|
||||
AGL_CONTEXT_SURFACE_ID = 233 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:160
|
||||
AGL_CONTEXT_DISPLAY_ID = 234 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:161
|
||||
AGL_SURFACE_ORDER = 235 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:162
|
||||
AGL_SURFACE_OPACITY = 236 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:163
|
||||
AGL_CLIP_REGION = 254 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:164
|
||||
AGL_FS_CAPTURE_SINGLE = 255 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:165
|
||||
AGL_SURFACE_BACKING_SIZE = 304 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:166
|
||||
AGL_ENABLE_SURFACE_BACKING_SIZE = 305 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:167
|
||||
AGL_SURFACE_VOLATILE = 306 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:168
|
||||
AGL_FORMAT_CACHE_SIZE = 501 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:172
|
||||
AGL_CLEAR_FORMAT_CACHE = 502 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:173
|
||||
AGL_RETAIN_RENDERERS = 503 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:174
|
||||
AGL_MONOSCOPIC_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:177
|
||||
AGL_STEREOSCOPIC_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:178
|
||||
AGL_SINGLEBUFFER_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:179
|
||||
AGL_DOUBLEBUFFER_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:180
|
||||
AGL_0_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:183
|
||||
AGL_1_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:184
|
||||
AGL_2_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:185
|
||||
AGL_3_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:186
|
||||
AGL_4_BIT = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:187
|
||||
AGL_5_BIT = 32 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:188
|
||||
AGL_6_BIT = 64 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:189
|
||||
AGL_8_BIT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:190
|
||||
AGL_10_BIT = 256 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:191
|
||||
AGL_12_BIT = 512 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:192
|
||||
AGL_16_BIT = 1024 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:193
|
||||
AGL_24_BIT = 2048 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:194
|
||||
AGL_32_BIT = 4096 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:195
|
||||
AGL_48_BIT = 8192 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:196
|
||||
AGL_64_BIT = 16384 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:197
|
||||
AGL_96_BIT = 32768 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:198
|
||||
AGL_128_BIT = 65536 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:199
|
||||
AGL_RGB8_BIT = 1 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:202
|
||||
AGL_RGB8_A8_BIT = 2 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:203
|
||||
AGL_BGR233_BIT = 4 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:204
|
||||
AGL_BGR233_A8_BIT = 8 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:205
|
||||
AGL_RGB332_BIT = 16 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:206
|
||||
AGL_RGB332_A8_BIT = 32 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:207
|
||||
AGL_RGB444_BIT = 64 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:208
|
||||
AGL_ARGB4444_BIT = 128 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:209
|
||||
AGL_RGB444_A8_BIT = 256 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:210
|
||||
AGL_RGB555_BIT = 512 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:211
|
||||
AGL_ARGB1555_BIT = 1024 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:212
|
||||
AGL_RGB555_A8_BIT = 2048 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:213
|
||||
AGL_RGB565_BIT = 4096 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:214
|
||||
AGL_RGB565_A8_BIT = 8192 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:215
|
||||
AGL_RGB888_BIT = 16384 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:216
|
||||
AGL_ARGB8888_BIT = 32768 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:217
|
||||
AGL_RGB888_A8_BIT = 65536 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:218
|
||||
AGL_RGB101010_BIT = 131072 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:219
|
||||
AGL_ARGB2101010_BIT = 262144 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:220
|
||||
AGL_RGB101010_A8_BIT = 524288 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:221
|
||||
AGL_RGB121212_BIT = 1048576 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:222
|
||||
AGL_ARGB12121212_BIT = 2097152 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:223
|
||||
AGL_RGB161616_BIT = 4194304 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:224
|
||||
AGL_ARGB16161616_BIT = 8388608 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:225
|
||||
AGL_INDEX8_BIT = 536870912 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:226
|
||||
AGL_INDEX16_BIT = 1073741824 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:227
|
||||
AGL_RGBFLOAT64_BIT = 16777216 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:228
|
||||
AGL_RGBAFLOAT64_BIT = 33554432 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:229
|
||||
AGL_RGBFLOAT128_BIT = 67108864 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:230
|
||||
AGL_RGBAFLOAT128_BIT = 134217728 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:231
|
||||
AGL_RGBFLOAT256_BIT = 268435456 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:232
|
||||
AGL_RGBAFLOAT256_BIT = 536870912 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:233
|
||||
AGL_NO_ERROR = 0 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:238
|
||||
AGL_BAD_ATTRIBUTE = 10000 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:240
|
||||
AGL_BAD_PROPERTY = 10001 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:241
|
||||
AGL_BAD_PIXELFMT = 10002 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:242
|
||||
AGL_BAD_RENDINFO = 10003 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:243
|
||||
AGL_BAD_CONTEXT = 10004 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:244
|
||||
AGL_BAD_DRAWABLE = 10005 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:245
|
||||
AGL_BAD_GDEV = 10006 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:246
|
||||
AGL_BAD_STATE = 10007 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:247
|
||||
AGL_BAD_VALUE = 10008 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:248
|
||||
AGL_BAD_MATCH = 10009 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:249
|
||||
AGL_BAD_ENUM = 10010 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:250
|
||||
AGL_BAD_OFFSCREEN = 10011 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:251
|
||||
AGL_BAD_FULLSCREEN = 10012 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:252
|
||||
AGL_BAD_WINDOW = 10013 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:253
|
||||
AGL_BAD_POINTER = 10014 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:254
|
||||
AGL_BAD_MODULE = 10015 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:255
|
||||
AGL_BAD_ALLOC = 10016 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:256
|
||||
AGL_BAD_CONNECTION = 10017 # /System/Library/Frameworks/AGL.framework/Headers/agl.h:257
|
||||
GLint = c_long # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:47
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:264
|
||||
aglChoosePixelFormat = _link_function('aglChoosePixelFormat', AGLPixelFormat, [POINTER(AGLDevice), GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:265
|
||||
aglDestroyPixelFormat = _link_function('aglDestroyPixelFormat', None, [AGLPixelFormat], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:266
|
||||
aglNextPixelFormat = _link_function('aglNextPixelFormat', AGLPixelFormat, [AGLPixelFormat], None)
|
||||
|
||||
GLboolean = c_ubyte # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:43
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:267
|
||||
aglDescribePixelFormat = _link_function('aglDescribePixelFormat', GLboolean, [AGLPixelFormat, GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:268
|
||||
aglDevicesOfPixelFormat = _link_function('aglDevicesOfPixelFormat', POINTER(AGLDevice), [AGLPixelFormat, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:273
|
||||
aglQueryRendererInfo = _link_function('aglQueryRendererInfo', AGLRendererInfo, [POINTER(AGLDevice), GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:274
|
||||
aglDestroyRendererInfo = _link_function('aglDestroyRendererInfo', None, [AGLRendererInfo], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:275
|
||||
aglNextRendererInfo = _link_function('aglNextRendererInfo', AGLRendererInfo, [AGLRendererInfo], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:276
|
||||
aglDescribeRenderer = _link_function('aglDescribeRenderer', GLboolean, [AGLRendererInfo, GLint, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:281
|
||||
aglCreateContext = _link_function('aglCreateContext', AGLContext, [AGLPixelFormat, AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:282
|
||||
aglDestroyContext = _link_function('aglDestroyContext', GLboolean, [AGLContext], None)
|
||||
|
||||
GLuint = c_ulong # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:51
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:283
|
||||
aglCopyContext = _link_function('aglCopyContext', GLboolean, [AGLContext, AGLContext, GLuint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:284
|
||||
aglUpdateContext = _link_function('aglUpdateContext', GLboolean, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:289
|
||||
aglSetCurrentContext = _link_function('aglSetCurrentContext', GLboolean, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:290
|
||||
aglGetCurrentContext = _link_function('aglGetCurrentContext', AGLContext, [], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:295
|
||||
aglSetDrawable = _link_function('aglSetDrawable', GLboolean, [AGLContext, AGLDrawable], None)
|
||||
|
||||
GLsizei = c_long # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:48
|
||||
GLvoid = None # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:56
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:296
|
||||
aglSetOffScreen = _link_function('aglSetOffScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, POINTER(GLvoid)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:297
|
||||
aglSetFullScreen = _link_function('aglSetFullScreen', GLboolean, [AGLContext, GLsizei, GLsizei, GLsizei, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:298
|
||||
aglGetDrawable = _link_function('aglGetDrawable', AGLDrawable, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:303
|
||||
aglSetVirtualScreen = _link_function('aglSetVirtualScreen', GLboolean, [AGLContext, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:304
|
||||
aglGetVirtualScreen = _link_function('aglGetVirtualScreen', GLint, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:309
|
||||
aglGetVersion = _link_function('aglGetVersion', None, [POINTER(GLint), POINTER(GLint)], None)
|
||||
|
||||
GLenum = c_ulong # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:42
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:314
|
||||
aglConfigure = _link_function('aglConfigure', GLboolean, [GLenum, GLuint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:319
|
||||
aglSwapBuffers = _link_function('aglSwapBuffers', None, [AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:324
|
||||
aglEnable = _link_function('aglEnable', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:325
|
||||
aglDisable = _link_function('aglDisable', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:326
|
||||
aglIsEnabled = _link_function('aglIsEnabled', GLboolean, [AGLContext, GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:327
|
||||
aglSetInteger = _link_function('aglSetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:328
|
||||
aglGetInteger = _link_function('aglGetInteger', GLboolean, [AGLContext, GLenum, POINTER(GLint)], None)
|
||||
|
||||
Style = c_ubyte # /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:524
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:333
|
||||
aglUseFont = _link_function('aglUseFont', GLboolean, [AGLContext, GLint, Style, GLint, GLint, GLint, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:338
|
||||
aglGetError = _link_function('aglGetError', GLenum, [], None)
|
||||
|
||||
GLubyte = c_ubyte # /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:49
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:339
|
||||
aglErrorString = _link_function('aglErrorString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:344
|
||||
aglResetLibrary = _link_function('aglResetLibrary', None, [], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:349
|
||||
aglSurfaceTexture = _link_function('aglSurfaceTexture', None, [AGLContext, GLenum, GLenum, AGLContext], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:354
|
||||
aglCreatePBuffer = _link_function('aglCreatePBuffer', GLboolean, [GLint, GLint, GLenum, GLenum, c_long, POINTER(AGLPbuffer)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:355
|
||||
aglDestroyPBuffer = _link_function('aglDestroyPBuffer', GLboolean, [AGLPbuffer], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:356
|
||||
aglDescribePBuffer = _link_function('aglDescribePBuffer', GLboolean,
|
||||
[AGLPbuffer, POINTER(GLint), POINTER(GLint), POINTER(GLenum), POINTER(GLenum), POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:357
|
||||
aglTexImagePBuffer = _link_function('aglTexImagePBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:362
|
||||
aglSetPBuffer = _link_function('aglSetPBuffer', GLboolean, [AGLContext, AGLPbuffer, GLint, GLint, GLint], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:363
|
||||
aglGetPBuffer = _link_function('aglGetPBuffer', GLboolean, [AGLContext, POINTER(AGLPbuffer), POINTER(GLint), POINTER(GLint), POINTER(GLint)], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:368
|
||||
aglGetCGLContext = _link_function('aglGetCGLContext', GLboolean, [AGLContext, POINTER(POINTER(None))], None)
|
||||
|
||||
# /System/Library/Frameworks/AGL.framework/Headers/agl.h:369
|
||||
aglGetCGLPixelFormat = _link_function('aglGetCGLPixelFormat', GLboolean, [AGLPixelFormat, POINTER(POINTER(None))], None)
|
||||
|
||||
__all__ = ['AGL_VERSION_2_0', 'AGLDevice', 'AGLDrawable', 'AGLRendererInfo',
|
||||
'AGLPixelFormat', 'AGLContext', 'AGLPbuffer', 'AGL_NONE', 'AGL_ALL_RENDERERS',
|
||||
'AGL_BUFFER_SIZE', 'AGL_LEVEL', 'AGL_RGBA', 'AGL_DOUBLEBUFFER', 'AGL_STEREO',
|
||||
'AGL_AUX_BUFFERS', 'AGL_RED_SIZE', 'AGL_GREEN_SIZE', 'AGL_BLUE_SIZE',
|
||||
'AGL_ALPHA_SIZE', 'AGL_DEPTH_SIZE', 'AGL_STENCIL_SIZE', 'AGL_ACCUM_RED_SIZE',
|
||||
'AGL_ACCUM_GREEN_SIZE', 'AGL_ACCUM_BLUE_SIZE', 'AGL_ACCUM_ALPHA_SIZE',
|
||||
'AGL_PIXEL_SIZE', 'AGL_MINIMUM_POLICY', 'AGL_MAXIMUM_POLICY', 'AGL_OFFSCREEN',
|
||||
'AGL_FULLSCREEN', 'AGL_SAMPLE_BUFFERS_ARB', 'AGL_SAMPLES_ARB',
|
||||
'AGL_AUX_DEPTH_STENCIL', 'AGL_COLOR_FLOAT', 'AGL_MULTISAMPLE',
|
||||
'AGL_SUPERSAMPLE', 'AGL_SAMPLE_ALPHA', 'AGL_RENDERER_ID',
|
||||
'AGL_SINGLE_RENDERER', 'AGL_NO_RECOVERY', 'AGL_ACCELERATED',
|
||||
'AGL_CLOSEST_POLICY', 'AGL_ROBUST', 'AGL_BACKING_STORE', 'AGL_MP_SAFE',
|
||||
'AGL_WINDOW', 'AGL_MULTISCREEN', 'AGL_VIRTUAL_SCREEN', 'AGL_COMPLIANT',
|
||||
'AGL_PBUFFER', 'AGL_BUFFER_MODES', 'AGL_MIN_LEVEL', 'AGL_MAX_LEVEL',
|
||||
'AGL_COLOR_MODES', 'AGL_ACCUM_MODES', 'AGL_DEPTH_MODES', 'AGL_STENCIL_MODES',
|
||||
'AGL_MAX_AUX_BUFFERS', 'AGL_VIDEO_MEMORY', 'AGL_TEXTURE_MEMORY',
|
||||
'AGL_RENDERER_COUNT', 'AGL_SWAP_RECT', 'AGL_BUFFER_RECT', 'AGL_SWAP_LIMIT',
|
||||
'AGL_COLORMAP_TRACKING', 'AGL_COLORMAP_ENTRY', 'AGL_RASTERIZATION',
|
||||
'AGL_SWAP_INTERVAL', 'AGL_STATE_VALIDATION', 'AGL_BUFFER_NAME',
|
||||
'AGL_ORDER_CONTEXT_TO_FRONT', 'AGL_CONTEXT_SURFACE_ID',
|
||||
'AGL_CONTEXT_DISPLAY_ID', 'AGL_SURFACE_ORDER', 'AGL_SURFACE_OPACITY',
|
||||
'AGL_CLIP_REGION', 'AGL_FS_CAPTURE_SINGLE', 'AGL_SURFACE_BACKING_SIZE',
|
||||
'AGL_ENABLE_SURFACE_BACKING_SIZE', 'AGL_SURFACE_VOLATILE',
|
||||
'AGL_FORMAT_CACHE_SIZE', 'AGL_CLEAR_FORMAT_CACHE', 'AGL_RETAIN_RENDERERS',
|
||||
'AGL_MONOSCOPIC_BIT', 'AGL_STEREOSCOPIC_BIT', 'AGL_SINGLEBUFFER_BIT',
|
||||
'AGL_DOUBLEBUFFER_BIT', 'AGL_0_BIT', 'AGL_1_BIT', 'AGL_2_BIT', 'AGL_3_BIT',
|
||||
'AGL_4_BIT', 'AGL_5_BIT', 'AGL_6_BIT', 'AGL_8_BIT', 'AGL_10_BIT',
|
||||
'AGL_12_BIT', 'AGL_16_BIT', 'AGL_24_BIT', 'AGL_32_BIT', 'AGL_48_BIT',
|
||||
'AGL_64_BIT', 'AGL_96_BIT', 'AGL_128_BIT', 'AGL_RGB8_BIT', 'AGL_RGB8_A8_BIT',
|
||||
'AGL_BGR233_BIT', 'AGL_BGR233_A8_BIT', 'AGL_RGB332_BIT', 'AGL_RGB332_A8_BIT',
|
||||
'AGL_RGB444_BIT', 'AGL_ARGB4444_BIT', 'AGL_RGB444_A8_BIT', 'AGL_RGB555_BIT',
|
||||
'AGL_ARGB1555_BIT', 'AGL_RGB555_A8_BIT', 'AGL_RGB565_BIT',
|
||||
'AGL_RGB565_A8_BIT', 'AGL_RGB888_BIT', 'AGL_ARGB8888_BIT',
|
||||
'AGL_RGB888_A8_BIT', 'AGL_RGB101010_BIT', 'AGL_ARGB2101010_BIT',
|
||||
'AGL_RGB101010_A8_BIT', 'AGL_RGB121212_BIT', 'AGL_ARGB12121212_BIT',
|
||||
'AGL_RGB161616_BIT', 'AGL_ARGB16161616_BIT', 'AGL_INDEX8_BIT',
|
||||
'AGL_INDEX16_BIT', 'AGL_RGBFLOAT64_BIT', 'AGL_RGBAFLOAT64_BIT',
|
||||
'AGL_RGBFLOAT128_BIT', 'AGL_RGBAFLOAT128_BIT', 'AGL_RGBFLOAT256_BIT',
|
||||
'AGL_RGBAFLOAT256_BIT', 'AGL_NO_ERROR', 'AGL_BAD_ATTRIBUTE',
|
||||
'AGL_BAD_PROPERTY', 'AGL_BAD_PIXELFMT', 'AGL_BAD_RENDINFO', 'AGL_BAD_CONTEXT',
|
||||
'AGL_BAD_DRAWABLE', 'AGL_BAD_GDEV', 'AGL_BAD_STATE', 'AGL_BAD_VALUE',
|
||||
'AGL_BAD_MATCH', 'AGL_BAD_ENUM', 'AGL_BAD_OFFSCREEN', 'AGL_BAD_FULLSCREEN',
|
||||
'AGL_BAD_WINDOW', 'AGL_BAD_POINTER', 'AGL_BAD_MODULE', 'AGL_BAD_ALLOC',
|
||||
'AGL_BAD_CONNECTION', 'aglChoosePixelFormat', 'aglDestroyPixelFormat',
|
||||
'aglNextPixelFormat', 'aglDescribePixelFormat', 'aglDevicesOfPixelFormat',
|
||||
'aglQueryRendererInfo', 'aglDestroyRendererInfo', 'aglNextRendererInfo',
|
||||
'aglDescribeRenderer', 'aglCreateContext', 'aglDestroyContext',
|
||||
'aglCopyContext', 'aglUpdateContext', 'aglSetCurrentContext',
|
||||
'aglGetCurrentContext', 'aglSetDrawable', 'aglSetOffScreen',
|
||||
'aglSetFullScreen', 'aglGetDrawable', 'aglSetVirtualScreen',
|
||||
'aglGetVirtualScreen', 'aglGetVersion', 'aglConfigure', 'aglSwapBuffers',
|
||||
'aglEnable', 'aglDisable', 'aglIsEnabled', 'aglSetInteger', 'aglGetInteger',
|
||||
'aglUseFont', 'aglGetError', 'aglErrorString', 'aglResetLibrary',
|
||||
'aglSurfaceTexture', 'aglCreatePBuffer', 'aglDestroyPBuffer',
|
||||
'aglDescribePBuffer', 'aglTexImagePBuffer', 'aglSetPBuffer', 'aglGetPBuffer',
|
||||
'aglGetCGLContext', 'aglGetCGLPixelFormat']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
@ -35,17 +35,11 @@
|
||||
import platform
|
||||
from ctypes import c_uint32, c_int, byref
|
||||
|
||||
from pyglet.gl.base import Config, CanvasConfig, Context
|
||||
|
||||
from pyglet.gl import ContextException
|
||||
from pyglet.gl import gl
|
||||
from pyglet.gl import agl
|
||||
|
||||
from pyglet.canvas.cocoa import CocoaCanvas
|
||||
|
||||
from pyglet.gl import ContextException
|
||||
from pyglet.gl.base import Config, CanvasConfig, Context
|
||||
from pyglet.libs.darwin import cocoapy, quartz
|
||||
|
||||
|
||||
NSOpenGLPixelFormat = cocoapy.ObjCClass('NSOpenGLPixelFormat')
|
||||
NSOpenGLContext = cocoapy.ObjCClass('NSOpenGLContext')
|
||||
|
||||
@ -74,27 +68,28 @@ catalina: 19.0 -> 19.6
|
||||
big_sur: 20.0 ->
|
||||
"""
|
||||
os_x_release = {
|
||||
'pre-release': (0,1),
|
||||
'kodiak': (1,2,1),
|
||||
'cheetah': (1,3,1),
|
||||
'puma': (1,4.1),
|
||||
'jaguar': (6,0,1),
|
||||
'panther': (7,),
|
||||
'tiger': (8,),
|
||||
'leopard': (9,),
|
||||
'snow_leopard': (10,),
|
||||
'lion': (11,),
|
||||
'mountain_lion': (12,),
|
||||
'mavericks': (13,),
|
||||
'yosemite': (14,),
|
||||
'el_capitan': (15,),
|
||||
'sierra': (16,),
|
||||
'high_sierra': (17,),
|
||||
'mojave': (18,),
|
||||
'catalina': (19,),
|
||||
'big_sur': (20,)
|
||||
'pre-release': (0, 1),
|
||||
'kodiak': (1, 2, 1),
|
||||
'cheetah': (1, 3, 1),
|
||||
'puma': (1, 4.1),
|
||||
'jaguar': (6, 0, 1),
|
||||
'panther': (7,),
|
||||
'tiger': (8,),
|
||||
'leopard': (9,),
|
||||
'snow_leopard': (10,),
|
||||
'lion': (11,),
|
||||
'mountain_lion': (12,),
|
||||
'mavericks': (13,),
|
||||
'yosemite': (14,),
|
||||
'el_capitan': (15,),
|
||||
'sierra': (16,),
|
||||
'high_sierra': (17,),
|
||||
'mojave': (18,),
|
||||
'catalina': (19,),
|
||||
'big_sur': (20,)
|
||||
}
|
||||
|
||||
|
||||
def os_x_version():
|
||||
version = tuple([int(v) for v in platform.release().split('.')])
|
||||
|
||||
@ -103,6 +98,7 @@ def os_x_version():
|
||||
return version
|
||||
return (version,)
|
||||
|
||||
|
||||
_os_x_version = os_x_version()
|
||||
|
||||
# Valid names for GL attributes and their corresponding NSOpenGL constant.
|
||||
@ -122,7 +118,7 @@ _gl_attributes = {
|
||||
'fullscreen': cocoapy.NSOpenGLPFAFullScreen,
|
||||
'minimum_policy': cocoapy.NSOpenGLPFAMinimumPolicy,
|
||||
'maximum_policy': cocoapy.NSOpenGLPFAMaximumPolicy,
|
||||
'screen_mask' : cocoapy.NSOpenGLPFAScreenMask,
|
||||
'screen_mask': cocoapy.NSOpenGLPFAScreenMask,
|
||||
|
||||
# Not supported in current pyglet API
|
||||
'color_float': cocoapy.NSOpenGLPFAColorFloat,
|
||||
@ -161,6 +157,7 @@ _fake_gl_attributes = {
|
||||
'accum_alpha_size': 0
|
||||
}
|
||||
|
||||
|
||||
class CocoaConfig(Config):
|
||||
|
||||
def match(self, canvas):
|
||||
@ -199,7 +196,7 @@ class CocoaConfig(Config):
|
||||
version = (
|
||||
getattr(self, 'major_version', None) or 2,
|
||||
getattr(self, 'minor_version', None)
|
||||
)
|
||||
)
|
||||
# tell os-x we want to request a profile
|
||||
attrs.append(cocoapy.NSOpenGLPFAOpenGLProfile)
|
||||
|
||||
@ -251,7 +248,7 @@ class CocoaCanvasConfig(CanvasConfig):
|
||||
byref(vals),
|
||||
cocoapy.NSOpenGLPFAOpenGLProfile,
|
||||
0
|
||||
)
|
||||
)
|
||||
|
||||
if vals.value == cocoapy.NSOpenGLProfileVersion4_1Core:
|
||||
setattr(self, "major_version", 4)
|
2675
libs/pyglet/gl/gl.py
Normal file
2675
libs/pyglet/gl/gl.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -56,8 +56,8 @@ context::
|
||||
|
||||
"""
|
||||
|
||||
from ctypes import c_char_p, cast
|
||||
import warnings
|
||||
from ctypes import c_char_p, cast
|
||||
|
||||
from pyglet.gl.gl import GL_EXTENSIONS, GL_RENDERER, GL_VENDOR, GL_VERSION, GLint, glGetIntegerv, glGetString
|
||||
from pyglet.util import asstr
|
16687
libs/pyglet/gl/glext_arb.py
Normal file
16687
libs/pyglet/gl/glext_arb.py
Normal file
File diff suppressed because it is too large
Load Diff
11809
libs/pyglet/gl/glext_nv.py
Normal file
11809
libs/pyglet/gl/glext_nv.py
Normal file
File diff suppressed because it is too large
Load Diff
545
libs/pyglet/gl/glu.py
Normal file
545
libs/pyglet/gl/glu.py
Normal file
@ -0,0 +1,545 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for /usr/include/GL/glu.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.lib import link_GLU as _link_function
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for /usr/include/GL/glu.h
|
||||
|
||||
|
||||
GLU_EXT_object_space_tess = 1 # /usr/include/GL/glu.h:71
|
||||
GLU_EXT_nurbs_tessellator = 1 # /usr/include/GL/glu.h:72
|
||||
GLU_FALSE = 0 # /usr/include/GL/glu.h:75
|
||||
GLU_TRUE = 1 # /usr/include/GL/glu.h:76
|
||||
GLU_VERSION_1_1 = 1 # /usr/include/GL/glu.h:79
|
||||
GLU_VERSION_1_2 = 1 # /usr/include/GL/glu.h:80
|
||||
GLU_VERSION_1_3 = 1 # /usr/include/GL/glu.h:81
|
||||
GLU_VERSION = 100800 # /usr/include/GL/glu.h:84
|
||||
GLU_EXTENSIONS = 100801 # /usr/include/GL/glu.h:85
|
||||
GLU_INVALID_ENUM = 100900 # /usr/include/GL/glu.h:88
|
||||
GLU_INVALID_VALUE = 100901 # /usr/include/GL/glu.h:89
|
||||
GLU_OUT_OF_MEMORY = 100902 # /usr/include/GL/glu.h:90
|
||||
GLU_INCOMPATIBLE_GL_VERSION = 100903 # /usr/include/GL/glu.h:91
|
||||
GLU_INVALID_OPERATION = 100904 # /usr/include/GL/glu.h:92
|
||||
GLU_OUTLINE_POLYGON = 100240 # /usr/include/GL/glu.h:96
|
||||
GLU_OUTLINE_PATCH = 100241 # /usr/include/GL/glu.h:97
|
||||
GLU_NURBS_ERROR = 100103 # /usr/include/GL/glu.h:100
|
||||
GLU_ERROR = 100103 # /usr/include/GL/glu.h:101
|
||||
GLU_NURBS_BEGIN = 100164 # /usr/include/GL/glu.h:102
|
||||
GLU_NURBS_BEGIN_EXT = 100164 # /usr/include/GL/glu.h:103
|
||||
GLU_NURBS_VERTEX = 100165 # /usr/include/GL/glu.h:104
|
||||
GLU_NURBS_VERTEX_EXT = 100165 # /usr/include/GL/glu.h:105
|
||||
GLU_NURBS_NORMAL = 100166 # /usr/include/GL/glu.h:106
|
||||
GLU_NURBS_NORMAL_EXT = 100166 # /usr/include/GL/glu.h:107
|
||||
GLU_NURBS_COLOR = 100167 # /usr/include/GL/glu.h:108
|
||||
GLU_NURBS_COLOR_EXT = 100167 # /usr/include/GL/glu.h:109
|
||||
GLU_NURBS_TEXTURE_COORD = 100168 # /usr/include/GL/glu.h:110
|
||||
GLU_NURBS_TEX_COORD_EXT = 100168 # /usr/include/GL/glu.h:111
|
||||
GLU_NURBS_END = 100169 # /usr/include/GL/glu.h:112
|
||||
GLU_NURBS_END_EXT = 100169 # /usr/include/GL/glu.h:113
|
||||
GLU_NURBS_BEGIN_DATA = 100170 # /usr/include/GL/glu.h:114
|
||||
GLU_NURBS_BEGIN_DATA_EXT = 100170 # /usr/include/GL/glu.h:115
|
||||
GLU_NURBS_VERTEX_DATA = 100171 # /usr/include/GL/glu.h:116
|
||||
GLU_NURBS_VERTEX_DATA_EXT = 100171 # /usr/include/GL/glu.h:117
|
||||
GLU_NURBS_NORMAL_DATA = 100172 # /usr/include/GL/glu.h:118
|
||||
GLU_NURBS_NORMAL_DATA_EXT = 100172 # /usr/include/GL/glu.h:119
|
||||
GLU_NURBS_COLOR_DATA = 100173 # /usr/include/GL/glu.h:120
|
||||
GLU_NURBS_COLOR_DATA_EXT = 100173 # /usr/include/GL/glu.h:121
|
||||
GLU_NURBS_TEXTURE_COORD_DATA = 100174 # /usr/include/GL/glu.h:122
|
||||
GLU_NURBS_TEX_COORD_DATA_EXT = 100174 # /usr/include/GL/glu.h:123
|
||||
GLU_NURBS_END_DATA = 100175 # /usr/include/GL/glu.h:124
|
||||
GLU_NURBS_END_DATA_EXT = 100175 # /usr/include/GL/glu.h:125
|
||||
GLU_NURBS_ERROR1 = 100251 # /usr/include/GL/glu.h:128
|
||||
GLU_NURBS_ERROR2 = 100252 # /usr/include/GL/glu.h:129
|
||||
GLU_NURBS_ERROR3 = 100253 # /usr/include/GL/glu.h:130
|
||||
GLU_NURBS_ERROR4 = 100254 # /usr/include/GL/glu.h:131
|
||||
GLU_NURBS_ERROR5 = 100255 # /usr/include/GL/glu.h:132
|
||||
GLU_NURBS_ERROR6 = 100256 # /usr/include/GL/glu.h:133
|
||||
GLU_NURBS_ERROR7 = 100257 # /usr/include/GL/glu.h:134
|
||||
GLU_NURBS_ERROR8 = 100258 # /usr/include/GL/glu.h:135
|
||||
GLU_NURBS_ERROR9 = 100259 # /usr/include/GL/glu.h:136
|
||||
GLU_NURBS_ERROR10 = 100260 # /usr/include/GL/glu.h:137
|
||||
GLU_NURBS_ERROR11 = 100261 # /usr/include/GL/glu.h:138
|
||||
GLU_NURBS_ERROR12 = 100262 # /usr/include/GL/glu.h:139
|
||||
GLU_NURBS_ERROR13 = 100263 # /usr/include/GL/glu.h:140
|
||||
GLU_NURBS_ERROR14 = 100264 # /usr/include/GL/glu.h:141
|
||||
GLU_NURBS_ERROR15 = 100265 # /usr/include/GL/glu.h:142
|
||||
GLU_NURBS_ERROR16 = 100266 # /usr/include/GL/glu.h:143
|
||||
GLU_NURBS_ERROR17 = 100267 # /usr/include/GL/glu.h:144
|
||||
GLU_NURBS_ERROR18 = 100268 # /usr/include/GL/glu.h:145
|
||||
GLU_NURBS_ERROR19 = 100269 # /usr/include/GL/glu.h:146
|
||||
GLU_NURBS_ERROR20 = 100270 # /usr/include/GL/glu.h:147
|
||||
GLU_NURBS_ERROR21 = 100271 # /usr/include/GL/glu.h:148
|
||||
GLU_NURBS_ERROR22 = 100272 # /usr/include/GL/glu.h:149
|
||||
GLU_NURBS_ERROR23 = 100273 # /usr/include/GL/glu.h:150
|
||||
GLU_NURBS_ERROR24 = 100274 # /usr/include/GL/glu.h:151
|
||||
GLU_NURBS_ERROR25 = 100275 # /usr/include/GL/glu.h:152
|
||||
GLU_NURBS_ERROR26 = 100276 # /usr/include/GL/glu.h:153
|
||||
GLU_NURBS_ERROR27 = 100277 # /usr/include/GL/glu.h:154
|
||||
GLU_NURBS_ERROR28 = 100278 # /usr/include/GL/glu.h:155
|
||||
GLU_NURBS_ERROR29 = 100279 # /usr/include/GL/glu.h:156
|
||||
GLU_NURBS_ERROR30 = 100280 # /usr/include/GL/glu.h:157
|
||||
GLU_NURBS_ERROR31 = 100281 # /usr/include/GL/glu.h:158
|
||||
GLU_NURBS_ERROR32 = 100282 # /usr/include/GL/glu.h:159
|
||||
GLU_NURBS_ERROR33 = 100283 # /usr/include/GL/glu.h:160
|
||||
GLU_NURBS_ERROR34 = 100284 # /usr/include/GL/glu.h:161
|
||||
GLU_NURBS_ERROR35 = 100285 # /usr/include/GL/glu.h:162
|
||||
GLU_NURBS_ERROR36 = 100286 # /usr/include/GL/glu.h:163
|
||||
GLU_NURBS_ERROR37 = 100287 # /usr/include/GL/glu.h:164
|
||||
GLU_AUTO_LOAD_MATRIX = 100200 # /usr/include/GL/glu.h:167
|
||||
GLU_CULLING = 100201 # /usr/include/GL/glu.h:168
|
||||
GLU_SAMPLING_TOLERANCE = 100203 # /usr/include/GL/glu.h:169
|
||||
GLU_DISPLAY_MODE = 100204 # /usr/include/GL/glu.h:170
|
||||
GLU_PARAMETRIC_TOLERANCE = 100202 # /usr/include/GL/glu.h:171
|
||||
GLU_SAMPLING_METHOD = 100205 # /usr/include/GL/glu.h:172
|
||||
GLU_U_STEP = 100206 # /usr/include/GL/glu.h:173
|
||||
GLU_V_STEP = 100207 # /usr/include/GL/glu.h:174
|
||||
GLU_NURBS_MODE = 100160 # /usr/include/GL/glu.h:175
|
||||
GLU_NURBS_MODE_EXT = 100160 # /usr/include/GL/glu.h:176
|
||||
GLU_NURBS_TESSELLATOR = 100161 # /usr/include/GL/glu.h:177
|
||||
GLU_NURBS_TESSELLATOR_EXT = 100161 # /usr/include/GL/glu.h:178
|
||||
GLU_NURBS_RENDERER = 100162 # /usr/include/GL/glu.h:179
|
||||
GLU_NURBS_RENDERER_EXT = 100162 # /usr/include/GL/glu.h:180
|
||||
GLU_OBJECT_PARAMETRIC_ERROR = 100208 # /usr/include/GL/glu.h:183
|
||||
GLU_OBJECT_PARAMETRIC_ERROR_EXT = 100208 # /usr/include/GL/glu.h:184
|
||||
GLU_OBJECT_PATH_LENGTH = 100209 # /usr/include/GL/glu.h:185
|
||||
GLU_OBJECT_PATH_LENGTH_EXT = 100209 # /usr/include/GL/glu.h:186
|
||||
GLU_PATH_LENGTH = 100215 # /usr/include/GL/glu.h:187
|
||||
GLU_PARAMETRIC_ERROR = 100216 # /usr/include/GL/glu.h:188
|
||||
GLU_DOMAIN_DISTANCE = 100217 # /usr/include/GL/glu.h:189
|
||||
GLU_MAP1_TRIM_2 = 100210 # /usr/include/GL/glu.h:192
|
||||
GLU_MAP1_TRIM_3 = 100211 # /usr/include/GL/glu.h:193
|
||||
GLU_POINT = 100010 # /usr/include/GL/glu.h:196
|
||||
GLU_LINE = 100011 # /usr/include/GL/glu.h:197
|
||||
GLU_FILL = 100012 # /usr/include/GL/glu.h:198
|
||||
GLU_SILHOUETTE = 100013 # /usr/include/GL/glu.h:199
|
||||
GLU_SMOOTH = 100000 # /usr/include/GL/glu.h:205
|
||||
GLU_FLAT = 100001 # /usr/include/GL/glu.h:206
|
||||
GLU_NONE = 100002 # /usr/include/GL/glu.h:207
|
||||
GLU_OUTSIDE = 100020 # /usr/include/GL/glu.h:210
|
||||
GLU_INSIDE = 100021 # /usr/include/GL/glu.h:211
|
||||
GLU_TESS_BEGIN = 100100 # /usr/include/GL/glu.h:214
|
||||
GLU_BEGIN = 100100 # /usr/include/GL/glu.h:215
|
||||
GLU_TESS_VERTEX = 100101 # /usr/include/GL/glu.h:216
|
||||
GLU_VERTEX = 100101 # /usr/include/GL/glu.h:217
|
||||
GLU_TESS_END = 100102 # /usr/include/GL/glu.h:218
|
||||
GLU_END = 100102 # /usr/include/GL/glu.h:219
|
||||
GLU_TESS_ERROR = 100103 # /usr/include/GL/glu.h:220
|
||||
GLU_TESS_EDGE_FLAG = 100104 # /usr/include/GL/glu.h:221
|
||||
GLU_EDGE_FLAG = 100104 # /usr/include/GL/glu.h:222
|
||||
GLU_TESS_COMBINE = 100105 # /usr/include/GL/glu.h:223
|
||||
GLU_TESS_BEGIN_DATA = 100106 # /usr/include/GL/glu.h:224
|
||||
GLU_TESS_VERTEX_DATA = 100107 # /usr/include/GL/glu.h:225
|
||||
GLU_TESS_END_DATA = 100108 # /usr/include/GL/glu.h:226
|
||||
GLU_TESS_ERROR_DATA = 100109 # /usr/include/GL/glu.h:227
|
||||
GLU_TESS_EDGE_FLAG_DATA = 100110 # /usr/include/GL/glu.h:228
|
||||
GLU_TESS_COMBINE_DATA = 100111 # /usr/include/GL/glu.h:229
|
||||
GLU_CW = 100120 # /usr/include/GL/glu.h:232
|
||||
GLU_CCW = 100121 # /usr/include/GL/glu.h:233
|
||||
GLU_INTERIOR = 100122 # /usr/include/GL/glu.h:234
|
||||
GLU_EXTERIOR = 100123 # /usr/include/GL/glu.h:235
|
||||
GLU_UNKNOWN = 100124 # /usr/include/GL/glu.h:236
|
||||
GLU_TESS_WINDING_RULE = 100140 # /usr/include/GL/glu.h:239
|
||||
GLU_TESS_BOUNDARY_ONLY = 100141 # /usr/include/GL/glu.h:240
|
||||
GLU_TESS_TOLERANCE = 100142 # /usr/include/GL/glu.h:241
|
||||
GLU_TESS_ERROR1 = 100151 # /usr/include/GL/glu.h:244
|
||||
GLU_TESS_ERROR2 = 100152 # /usr/include/GL/glu.h:245
|
||||
GLU_TESS_ERROR3 = 100153 # /usr/include/GL/glu.h:246
|
||||
GLU_TESS_ERROR4 = 100154 # /usr/include/GL/glu.h:247
|
||||
GLU_TESS_ERROR5 = 100155 # /usr/include/GL/glu.h:248
|
||||
GLU_TESS_ERROR6 = 100156 # /usr/include/GL/glu.h:249
|
||||
GLU_TESS_ERROR7 = 100157 # /usr/include/GL/glu.h:250
|
||||
GLU_TESS_ERROR8 = 100158 # /usr/include/GL/glu.h:251
|
||||
GLU_TESS_MISSING_BEGIN_POLYGON = 100151 # /usr/include/GL/glu.h:252
|
||||
GLU_TESS_MISSING_BEGIN_CONTOUR = 100152 # /usr/include/GL/glu.h:253
|
||||
GLU_TESS_MISSING_END_POLYGON = 100153 # /usr/include/GL/glu.h:254
|
||||
GLU_TESS_MISSING_END_CONTOUR = 100154 # /usr/include/GL/glu.h:255
|
||||
GLU_TESS_COORD_TOO_LARGE = 100155 # /usr/include/GL/glu.h:256
|
||||
GLU_TESS_NEED_COMBINE_CALLBACK = 100156 # /usr/include/GL/glu.h:257
|
||||
GLU_TESS_WINDING_ODD = 100130 # /usr/include/GL/glu.h:260
|
||||
GLU_TESS_WINDING_NONZERO = 100131 # /usr/include/GL/glu.h:261
|
||||
GLU_TESS_WINDING_POSITIVE = 100132 # /usr/include/GL/glu.h:262
|
||||
GLU_TESS_WINDING_NEGATIVE = 100133 # /usr/include/GL/glu.h:263
|
||||
GLU_TESS_WINDING_ABS_GEQ_TWO = 100134 # /usr/include/GL/glu.h:264
|
||||
|
||||
|
||||
class struct_GLUnurbs(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUnurbs._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
|
||||
class struct_GLUnurbs(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUnurbs._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUnurbs = struct_GLUnurbs # /usr/include/GL/glu.h:274
|
||||
|
||||
|
||||
class struct_GLUquadric(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUquadric._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
|
||||
class struct_GLUquadric(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUquadric._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUquadric = struct_GLUquadric # /usr/include/GL/glu.h:275
|
||||
|
||||
|
||||
class struct_GLUtesselator(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUtesselator._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
|
||||
class struct_GLUtesselator(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct_GLUtesselator._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLUtesselator = struct_GLUtesselator # /usr/include/GL/glu.h:276
|
||||
GLUnurbsObj = GLUnurbs # /usr/include/GL/glu.h:279
|
||||
GLUquadricObj = GLUquadric # /usr/include/GL/glu.h:280
|
||||
GLUtesselatorObj = GLUtesselator # /usr/include/GL/glu.h:281
|
||||
GLUtriangulatorObj = GLUtesselator # /usr/include/GL/glu.h:282
|
||||
GLU_TESS_MAX_COORD = 1e+150 # /usr/include/GL/glu.h:284
|
||||
_GLUfuncptr = CFUNCTYPE(None) # /usr/include/GL/glu.h:287
|
||||
# /usr/include/GL/glu.h:289
|
||||
gluBeginCurve = _link_function('gluBeginCurve', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:290
|
||||
gluBeginPolygon = _link_function('gluBeginPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:291
|
||||
gluBeginSurface = _link_function('gluBeginSurface', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:292
|
||||
gluBeginTrim = _link_function('gluBeginTrim', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
GLint = c_int # /usr/include/GL/gl.h:127
|
||||
GLenum = c_uint # /usr/include/GL/gl.h:121
|
||||
GLsizei = c_int # /usr/include/GL/gl.h:131
|
||||
# /usr/include/GL/glu.h:293
|
||||
gluBuild1DMipmapLevels = _link_function('gluBuild1DMipmapLevels', GLint, [GLenum, GLint, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)],
|
||||
None)
|
||||
|
||||
# /usr/include/GL/glu.h:294
|
||||
gluBuild1DMipmaps = _link_function('gluBuild1DMipmaps', GLint, [GLenum, GLint, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:295
|
||||
gluBuild2DMipmapLevels = _link_function('gluBuild2DMipmapLevels', GLint,
|
||||
[GLenum, GLint, GLsizei, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:296
|
||||
gluBuild2DMipmaps = _link_function('gluBuild2DMipmaps', GLint, [GLenum, GLint, GLsizei, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:297
|
||||
gluBuild3DMipmapLevels = _link_function('gluBuild3DMipmapLevels', GLint,
|
||||
[GLenum, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLint, GLint, GLint, POINTER(None)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:298
|
||||
gluBuild3DMipmaps = _link_function('gluBuild3DMipmaps', GLint, [GLenum, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, POINTER(None)], None)
|
||||
|
||||
GLboolean = c_ubyte # /usr/include/GL/gl.h:122
|
||||
GLubyte = c_ubyte # /usr/include/GL/gl.h:128
|
||||
# /usr/include/GL/glu.h:299
|
||||
gluCheckExtension = _link_function('gluCheckExtension', GLboolean, [POINTER(GLubyte), POINTER(GLubyte)], None)
|
||||
|
||||
GLdouble = c_double # /usr/include/GL/gl.h:134
|
||||
# /usr/include/GL/glu.h:300
|
||||
gluCylinder = _link_function('gluCylinder', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:301
|
||||
gluDeleteNurbsRenderer = _link_function('gluDeleteNurbsRenderer', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:302
|
||||
gluDeleteQuadric = _link_function('gluDeleteQuadric', None, [POINTER(GLUquadric)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:303
|
||||
gluDeleteTess = _link_function('gluDeleteTess', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:304
|
||||
gluDisk = _link_function('gluDisk', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:305
|
||||
gluEndCurve = _link_function('gluEndCurve', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:306
|
||||
gluEndPolygon = _link_function('gluEndPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:307
|
||||
gluEndSurface = _link_function('gluEndSurface', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:308
|
||||
gluEndTrim = _link_function('gluEndTrim', None, [POINTER(GLUnurbs)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:309
|
||||
gluErrorString = _link_function('gluErrorString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
GLfloat = c_float # /usr/include/GL/gl.h:132
|
||||
# /usr/include/GL/glu.h:310
|
||||
gluGetNurbsProperty = _link_function('gluGetNurbsProperty', None, [POINTER(GLUnurbs), GLenum, POINTER(GLfloat)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:311
|
||||
gluGetString = _link_function('gluGetString', POINTER(GLubyte), [GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:312
|
||||
gluGetTessProperty = _link_function('gluGetTessProperty', None, [POINTER(GLUtesselator), GLenum, POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:313
|
||||
gluLoadSamplingMatrices = _link_function('gluLoadSamplingMatrices', None, [POINTER(GLUnurbs), POINTER(GLfloat), POINTER(GLfloat), POINTER(GLint)],
|
||||
None)
|
||||
|
||||
# /usr/include/GL/glu.h:314
|
||||
gluLookAt = _link_function('gluLookAt', None, [GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:315
|
||||
gluNewNurbsRenderer = _link_function('gluNewNurbsRenderer', POINTER(GLUnurbs), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:316
|
||||
gluNewQuadric = _link_function('gluNewQuadric', POINTER(GLUquadric), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:317
|
||||
gluNewTess = _link_function('gluNewTess', POINTER(GLUtesselator), [], None)
|
||||
|
||||
# /usr/include/GL/glu.h:318
|
||||
gluNextContour = _link_function('gluNextContour', None, [POINTER(GLUtesselator), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:319
|
||||
gluNurbsCallback = _link_function('gluNurbsCallback', None, [POINTER(GLUnurbs), GLenum, _GLUfuncptr], None)
|
||||
|
||||
GLvoid = None # /usr/include/GL/gl.h:124
|
||||
# /usr/include/GL/glu.h:320
|
||||
gluNurbsCallbackData = _link_function('gluNurbsCallbackData', None, [POINTER(GLUnurbs), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:321
|
||||
gluNurbsCallbackDataEXT = _link_function('gluNurbsCallbackDataEXT', None, [POINTER(GLUnurbs), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:322
|
||||
gluNurbsCurve = _link_function('gluNurbsCurve', None, [POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, POINTER(GLfloat), GLint, GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:323
|
||||
gluNurbsProperty = _link_function('gluNurbsProperty', None, [POINTER(GLUnurbs), GLenum, GLfloat], None)
|
||||
|
||||
# /usr/include/GL/glu.h:324
|
||||
gluNurbsSurface = _link_function('gluNurbsSurface', None,
|
||||
[POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, POINTER(GLfloat), GLint, GLint, POINTER(GLfloat), GLint, GLint,
|
||||
GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:325
|
||||
gluOrtho2D = _link_function('gluOrtho2D', None, [GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:326
|
||||
gluPartialDisk = _link_function('gluPartialDisk', None, [POINTER(GLUquadric), GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:327
|
||||
gluPerspective = _link_function('gluPerspective', None, [GLdouble, GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:328
|
||||
gluPickMatrix = _link_function('gluPickMatrix', None, [GLdouble, GLdouble, GLdouble, GLdouble, POINTER(GLint)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:329
|
||||
gluProject = _link_function('gluProject', GLint,
|
||||
[GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), POINTER(GLdouble), POINTER(GLdouble),
|
||||
POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:330
|
||||
gluPwlCurve = _link_function('gluPwlCurve', None, [POINTER(GLUnurbs), GLint, POINTER(GLfloat), GLint, GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:331
|
||||
gluQuadricCallback = _link_function('gluQuadricCallback', None, [POINTER(GLUquadric), GLenum, _GLUfuncptr], None)
|
||||
|
||||
# /usr/include/GL/glu.h:332
|
||||
gluQuadricDrawStyle = _link_function('gluQuadricDrawStyle', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:333
|
||||
gluQuadricNormals = _link_function('gluQuadricNormals', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:334
|
||||
gluQuadricOrientation = _link_function('gluQuadricOrientation', None, [POINTER(GLUquadric), GLenum], None)
|
||||
|
||||
# /usr/include/GL/glu.h:335
|
||||
gluQuadricTexture = _link_function('gluQuadricTexture', None, [POINTER(GLUquadric), GLboolean], None)
|
||||
|
||||
# /usr/include/GL/glu.h:336
|
||||
gluScaleImage = _link_function('gluScaleImage', GLint, [GLenum, GLsizei, GLsizei, GLenum, POINTER(None), GLsizei, GLsizei, GLenum, POINTER(GLvoid)],
|
||||
None)
|
||||
|
||||
# /usr/include/GL/glu.h:337
|
||||
gluSphere = _link_function('gluSphere', None, [POINTER(GLUquadric), GLdouble, GLint, GLint], None)
|
||||
|
||||
# /usr/include/GL/glu.h:338
|
||||
gluTessBeginContour = _link_function('gluTessBeginContour', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:339
|
||||
gluTessBeginPolygon = _link_function('gluTessBeginPolygon', None, [POINTER(GLUtesselator), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:340
|
||||
gluTessCallback = _link_function('gluTessCallback', None, [POINTER(GLUtesselator), GLenum, _GLUfuncptr], None)
|
||||
|
||||
# /usr/include/GL/glu.h:341
|
||||
gluTessEndContour = _link_function('gluTessEndContour', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:342
|
||||
gluTessEndPolygon = _link_function('gluTessEndPolygon', None, [POINTER(GLUtesselator)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:343
|
||||
gluTessNormal = _link_function('gluTessNormal', None, [POINTER(GLUtesselator), GLdouble, GLdouble, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:344
|
||||
gluTessProperty = _link_function('gluTessProperty', None, [POINTER(GLUtesselator), GLenum, GLdouble], None)
|
||||
|
||||
# /usr/include/GL/glu.h:345
|
||||
gluTessVertex = _link_function('gluTessVertex', None, [POINTER(GLUtesselator), POINTER(GLdouble), POINTER(GLvoid)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:346
|
||||
gluUnProject = _link_function('gluUnProject', GLint,
|
||||
[GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), POINTER(GLdouble),
|
||||
POINTER(GLdouble), POINTER(GLdouble)], None)
|
||||
|
||||
# /usr/include/GL/glu.h:347
|
||||
gluUnProject4 = _link_function('gluUnProject4', GLint,
|
||||
[GLdouble, GLdouble, GLdouble, GLdouble, POINTER(GLdouble), POINTER(GLdouble), POINTER(GLint), GLdouble, GLdouble,
|
||||
POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble), POINTER(GLdouble)], None)
|
||||
|
||||
__all__ = ['GLU_EXT_object_space_tess', 'GLU_EXT_nurbs_tessellator',
|
||||
'GLU_FALSE', 'GLU_TRUE', 'GLU_VERSION_1_1', 'GLU_VERSION_1_2',
|
||||
'GLU_VERSION_1_3', 'GLU_VERSION', 'GLU_EXTENSIONS', 'GLU_INVALID_ENUM',
|
||||
'GLU_INVALID_VALUE', 'GLU_OUT_OF_MEMORY', 'GLU_INCOMPATIBLE_GL_VERSION',
|
||||
'GLU_INVALID_OPERATION', 'GLU_OUTLINE_POLYGON', 'GLU_OUTLINE_PATCH',
|
||||
'GLU_NURBS_ERROR', 'GLU_ERROR', 'GLU_NURBS_BEGIN', 'GLU_NURBS_BEGIN_EXT',
|
||||
'GLU_NURBS_VERTEX', 'GLU_NURBS_VERTEX_EXT', 'GLU_NURBS_NORMAL',
|
||||
'GLU_NURBS_NORMAL_EXT', 'GLU_NURBS_COLOR', 'GLU_NURBS_COLOR_EXT',
|
||||
'GLU_NURBS_TEXTURE_COORD', 'GLU_NURBS_TEX_COORD_EXT', 'GLU_NURBS_END',
|
||||
'GLU_NURBS_END_EXT', 'GLU_NURBS_BEGIN_DATA', 'GLU_NURBS_BEGIN_DATA_EXT',
|
||||
'GLU_NURBS_VERTEX_DATA', 'GLU_NURBS_VERTEX_DATA_EXT', 'GLU_NURBS_NORMAL_DATA',
|
||||
'GLU_NURBS_NORMAL_DATA_EXT', 'GLU_NURBS_COLOR_DATA',
|
||||
'GLU_NURBS_COLOR_DATA_EXT', 'GLU_NURBS_TEXTURE_COORD_DATA',
|
||||
'GLU_NURBS_TEX_COORD_DATA_EXT', 'GLU_NURBS_END_DATA',
|
||||
'GLU_NURBS_END_DATA_EXT', 'GLU_NURBS_ERROR1', 'GLU_NURBS_ERROR2',
|
||||
'GLU_NURBS_ERROR3', 'GLU_NURBS_ERROR4', 'GLU_NURBS_ERROR5',
|
||||
'GLU_NURBS_ERROR6', 'GLU_NURBS_ERROR7', 'GLU_NURBS_ERROR8',
|
||||
'GLU_NURBS_ERROR9', 'GLU_NURBS_ERROR10', 'GLU_NURBS_ERROR11',
|
||||
'GLU_NURBS_ERROR12', 'GLU_NURBS_ERROR13', 'GLU_NURBS_ERROR14',
|
||||
'GLU_NURBS_ERROR15', 'GLU_NURBS_ERROR16', 'GLU_NURBS_ERROR17',
|
||||
'GLU_NURBS_ERROR18', 'GLU_NURBS_ERROR19', 'GLU_NURBS_ERROR20',
|
||||
'GLU_NURBS_ERROR21', 'GLU_NURBS_ERROR22', 'GLU_NURBS_ERROR23',
|
||||
'GLU_NURBS_ERROR24', 'GLU_NURBS_ERROR25', 'GLU_NURBS_ERROR26',
|
||||
'GLU_NURBS_ERROR27', 'GLU_NURBS_ERROR28', 'GLU_NURBS_ERROR29',
|
||||
'GLU_NURBS_ERROR30', 'GLU_NURBS_ERROR31', 'GLU_NURBS_ERROR32',
|
||||
'GLU_NURBS_ERROR33', 'GLU_NURBS_ERROR34', 'GLU_NURBS_ERROR35',
|
||||
'GLU_NURBS_ERROR36', 'GLU_NURBS_ERROR37', 'GLU_AUTO_LOAD_MATRIX',
|
||||
'GLU_CULLING', 'GLU_SAMPLING_TOLERANCE', 'GLU_DISPLAY_MODE',
|
||||
'GLU_PARAMETRIC_TOLERANCE', 'GLU_SAMPLING_METHOD', 'GLU_U_STEP', 'GLU_V_STEP',
|
||||
'GLU_NURBS_MODE', 'GLU_NURBS_MODE_EXT', 'GLU_NURBS_TESSELLATOR',
|
||||
'GLU_NURBS_TESSELLATOR_EXT', 'GLU_NURBS_RENDERER', 'GLU_NURBS_RENDERER_EXT',
|
||||
'GLU_OBJECT_PARAMETRIC_ERROR', 'GLU_OBJECT_PARAMETRIC_ERROR_EXT',
|
||||
'GLU_OBJECT_PATH_LENGTH', 'GLU_OBJECT_PATH_LENGTH_EXT', 'GLU_PATH_LENGTH',
|
||||
'GLU_PARAMETRIC_ERROR', 'GLU_DOMAIN_DISTANCE', 'GLU_MAP1_TRIM_2',
|
||||
'GLU_MAP1_TRIM_3', 'GLU_POINT', 'GLU_LINE', 'GLU_FILL', 'GLU_SILHOUETTE',
|
||||
'GLU_SMOOTH', 'GLU_FLAT', 'GLU_NONE', 'GLU_OUTSIDE', 'GLU_INSIDE',
|
||||
'GLU_TESS_BEGIN', 'GLU_BEGIN', 'GLU_TESS_VERTEX', 'GLU_VERTEX',
|
||||
'GLU_TESS_END', 'GLU_END', 'GLU_TESS_ERROR', 'GLU_TESS_EDGE_FLAG',
|
||||
'GLU_EDGE_FLAG', 'GLU_TESS_COMBINE', 'GLU_TESS_BEGIN_DATA',
|
||||
'GLU_TESS_VERTEX_DATA', 'GLU_TESS_END_DATA', 'GLU_TESS_ERROR_DATA',
|
||||
'GLU_TESS_EDGE_FLAG_DATA', 'GLU_TESS_COMBINE_DATA', 'GLU_CW', 'GLU_CCW',
|
||||
'GLU_INTERIOR', 'GLU_EXTERIOR', 'GLU_UNKNOWN', 'GLU_TESS_WINDING_RULE',
|
||||
'GLU_TESS_BOUNDARY_ONLY', 'GLU_TESS_TOLERANCE', 'GLU_TESS_ERROR1',
|
||||
'GLU_TESS_ERROR2', 'GLU_TESS_ERROR3', 'GLU_TESS_ERROR4', 'GLU_TESS_ERROR5',
|
||||
'GLU_TESS_ERROR6', 'GLU_TESS_ERROR7', 'GLU_TESS_ERROR8',
|
||||
'GLU_TESS_MISSING_BEGIN_POLYGON', 'GLU_TESS_MISSING_BEGIN_CONTOUR',
|
||||
'GLU_TESS_MISSING_END_POLYGON', 'GLU_TESS_MISSING_END_CONTOUR',
|
||||
'GLU_TESS_COORD_TOO_LARGE', 'GLU_TESS_NEED_COMBINE_CALLBACK',
|
||||
'GLU_TESS_WINDING_ODD', 'GLU_TESS_WINDING_NONZERO',
|
||||
'GLU_TESS_WINDING_POSITIVE', 'GLU_TESS_WINDING_NEGATIVE',
|
||||
'GLU_TESS_WINDING_ABS_GEQ_TWO', 'GLUnurbs', 'GLUquadric', 'GLUtesselator',
|
||||
'GLUnurbsObj', 'GLUquadricObj', 'GLUtesselatorObj', 'GLUtriangulatorObj',
|
||||
'GLU_TESS_MAX_COORD', '_GLUfuncptr', 'gluBeginCurve', 'gluBeginPolygon',
|
||||
'gluBeginSurface', 'gluBeginTrim', 'gluBuild1DMipmapLevels',
|
||||
'gluBuild1DMipmaps', 'gluBuild2DMipmapLevels', 'gluBuild2DMipmaps',
|
||||
'gluBuild3DMipmapLevels', 'gluBuild3DMipmaps', 'gluCheckExtension',
|
||||
'gluCylinder', 'gluDeleteNurbsRenderer', 'gluDeleteQuadric', 'gluDeleteTess',
|
||||
'gluDisk', 'gluEndCurve', 'gluEndPolygon', 'gluEndSurface', 'gluEndTrim',
|
||||
'gluErrorString', 'gluGetNurbsProperty', 'gluGetString', 'gluGetTessProperty',
|
||||
'gluLoadSamplingMatrices', 'gluLookAt', 'gluNewNurbsRenderer',
|
||||
'gluNewQuadric', 'gluNewTess', 'gluNextContour', 'gluNurbsCallback',
|
||||
'gluNurbsCallbackData', 'gluNurbsCallbackDataEXT', 'gluNurbsCurve',
|
||||
'gluNurbsProperty', 'gluNurbsSurface', 'gluOrtho2D', 'gluPartialDisk',
|
||||
'gluPerspective', 'gluPickMatrix', 'gluProject', 'gluPwlCurve',
|
||||
'gluQuadricCallback', 'gluQuadricDrawStyle', 'gluQuadricNormals',
|
||||
'gluQuadricOrientation', 'gluQuadricTexture', 'gluScaleImage', 'gluSphere',
|
||||
'gluTessBeginContour', 'gluTessBeginPolygon', 'gluTessCallback',
|
||||
'gluTessEndContour', 'gluTessEndPolygon', 'gluTessNormal', 'gluTessProperty',
|
||||
'gluTessVertex', 'gluUnProject', 'gluUnProject4']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
@ -57,8 +57,8 @@ Note that GLUInfo only returns meaningful information if a context has been
|
||||
created.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
import warnings
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.glu import *
|
||||
from pyglet.util import asstr
|
||||
@ -109,7 +109,7 @@ class GLUInfo:
|
||||
warnings.warn('No GL context created yet.')
|
||||
ver = '%s.0.0' % self.version.split(' ', 1)[0]
|
||||
imajor, iminor, irelease = [int(v) for v in ver.split('.', 3)[:3]]
|
||||
return imajor > major or\
|
||||
return imajor > major or \
|
||||
(imajor == major and iminor > minor) or \
|
||||
(imajor == major and iminor == minor and irelease >= release)
|
||||
|
@ -39,8 +39,9 @@ Do not modify generated portions of this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.lib import c_void
|
||||
from pyglet.gl.lib import link_GLX as _link_function
|
||||
from pyglet.gl.lib import c_ptrdiff_t, c_void
|
||||
|
||||
if not _link_function:
|
||||
raise ImportError('libGL.so is not available.')
|
||||
@ -53,132 +54,146 @@ if not _link_function:
|
||||
import pyglet.libs.x11.xlib
|
||||
|
||||
# H (/usr/include/GL/glx.h:26)
|
||||
GLX_VERSION_1_1 = 1 # /usr/include/GL/glx.h:58
|
||||
GLX_VERSION_1_2 = 1 # /usr/include/GL/glx.h:59
|
||||
GLX_VERSION_1_3 = 1 # /usr/include/GL/glx.h:60
|
||||
GLX_VERSION_1_4 = 1 # /usr/include/GL/glx.h:61
|
||||
GLX_USE_GL = 1 # /usr/include/GL/glx.h:70
|
||||
GLX_BUFFER_SIZE = 2 # /usr/include/GL/glx.h:71
|
||||
GLX_LEVEL = 3 # /usr/include/GL/glx.h:72
|
||||
GLX_RGBA = 4 # /usr/include/GL/glx.h:73
|
||||
GLX_DOUBLEBUFFER = 5 # /usr/include/GL/glx.h:74
|
||||
GLX_STEREO = 6 # /usr/include/GL/glx.h:75
|
||||
GLX_AUX_BUFFERS = 7 # /usr/include/GL/glx.h:76
|
||||
GLX_RED_SIZE = 8 # /usr/include/GL/glx.h:77
|
||||
GLX_GREEN_SIZE = 9 # /usr/include/GL/glx.h:78
|
||||
GLX_BLUE_SIZE = 10 # /usr/include/GL/glx.h:79
|
||||
GLX_ALPHA_SIZE = 11 # /usr/include/GL/glx.h:80
|
||||
GLX_DEPTH_SIZE = 12 # /usr/include/GL/glx.h:81
|
||||
GLX_STENCIL_SIZE = 13 # /usr/include/GL/glx.h:82
|
||||
GLX_ACCUM_RED_SIZE = 14 # /usr/include/GL/glx.h:83
|
||||
GLX_ACCUM_GREEN_SIZE = 15 # /usr/include/GL/glx.h:84
|
||||
GLX_ACCUM_BLUE_SIZE = 16 # /usr/include/GL/glx.h:85
|
||||
GLX_ACCUM_ALPHA_SIZE = 17 # /usr/include/GL/glx.h:86
|
||||
GLX_BAD_SCREEN = 1 # /usr/include/GL/glx.h:92
|
||||
GLX_BAD_ATTRIBUTE = 2 # /usr/include/GL/glx.h:93
|
||||
GLX_NO_EXTENSION = 3 # /usr/include/GL/glx.h:94
|
||||
GLX_BAD_VISUAL = 4 # /usr/include/GL/glx.h:95
|
||||
GLX_BAD_CONTEXT = 5 # /usr/include/GL/glx.h:96
|
||||
GLX_BAD_VALUE = 6 # /usr/include/GL/glx.h:97
|
||||
GLX_BAD_ENUM = 7 # /usr/include/GL/glx.h:98
|
||||
GLX_VENDOR = 1 # /usr/include/GL/glx.h:104
|
||||
GLX_VERSION = 2 # /usr/include/GL/glx.h:105
|
||||
GLX_EXTENSIONS = 3 # /usr/include/GL/glx.h:106
|
||||
GLX_CONFIG_CAVEAT = 32 # /usr/include/GL/glx.h:112
|
||||
GLX_DONT_CARE = 4294967295 # /usr/include/GL/glx.h:113
|
||||
GLX_X_VISUAL_TYPE = 34 # /usr/include/GL/glx.h:114
|
||||
GLX_TRANSPARENT_TYPE = 35 # /usr/include/GL/glx.h:115
|
||||
GLX_TRANSPARENT_INDEX_VALUE = 36 # /usr/include/GL/glx.h:116
|
||||
GLX_TRANSPARENT_RED_VALUE = 37 # /usr/include/GL/glx.h:117
|
||||
GLX_TRANSPARENT_GREEN_VALUE = 38 # /usr/include/GL/glx.h:118
|
||||
GLX_TRANSPARENT_BLUE_VALUE = 39 # /usr/include/GL/glx.h:119
|
||||
GLX_TRANSPARENT_ALPHA_VALUE = 40 # /usr/include/GL/glx.h:120
|
||||
GLX_WINDOW_BIT = 1 # /usr/include/GL/glx.h:121
|
||||
GLX_PIXMAP_BIT = 2 # /usr/include/GL/glx.h:122
|
||||
GLX_PBUFFER_BIT = 4 # /usr/include/GL/glx.h:123
|
||||
GLX_AUX_BUFFERS_BIT = 16 # /usr/include/GL/glx.h:124
|
||||
GLX_FRONT_LEFT_BUFFER_BIT = 1 # /usr/include/GL/glx.h:125
|
||||
GLX_FRONT_RIGHT_BUFFER_BIT = 2 # /usr/include/GL/glx.h:126
|
||||
GLX_BACK_LEFT_BUFFER_BIT = 4 # /usr/include/GL/glx.h:127
|
||||
GLX_BACK_RIGHT_BUFFER_BIT = 8 # /usr/include/GL/glx.h:128
|
||||
GLX_DEPTH_BUFFER_BIT = 32 # /usr/include/GL/glx.h:129
|
||||
GLX_STENCIL_BUFFER_BIT = 64 # /usr/include/GL/glx.h:130
|
||||
GLX_ACCUM_BUFFER_BIT = 128 # /usr/include/GL/glx.h:131
|
||||
GLX_NONE = 32768 # /usr/include/GL/glx.h:132
|
||||
GLX_SLOW_CONFIG = 32769 # /usr/include/GL/glx.h:133
|
||||
GLX_TRUE_COLOR = 32770 # /usr/include/GL/glx.h:134
|
||||
GLX_DIRECT_COLOR = 32771 # /usr/include/GL/glx.h:135
|
||||
GLX_PSEUDO_COLOR = 32772 # /usr/include/GL/glx.h:136
|
||||
GLX_STATIC_COLOR = 32773 # /usr/include/GL/glx.h:137
|
||||
GLX_GRAY_SCALE = 32774 # /usr/include/GL/glx.h:138
|
||||
GLX_STATIC_GRAY = 32775 # /usr/include/GL/glx.h:139
|
||||
GLX_TRANSPARENT_RGB = 32776 # /usr/include/GL/glx.h:140
|
||||
GLX_TRANSPARENT_INDEX = 32777 # /usr/include/GL/glx.h:141
|
||||
GLX_VISUAL_ID = 32779 # /usr/include/GL/glx.h:142
|
||||
GLX_SCREEN = 32780 # /usr/include/GL/glx.h:143
|
||||
GLX_NON_CONFORMANT_CONFIG = 32781 # /usr/include/GL/glx.h:144
|
||||
GLX_DRAWABLE_TYPE = 32784 # /usr/include/GL/glx.h:145
|
||||
GLX_RENDER_TYPE = 32785 # /usr/include/GL/glx.h:146
|
||||
GLX_X_RENDERABLE = 32786 # /usr/include/GL/glx.h:147
|
||||
GLX_FBCONFIG_ID = 32787 # /usr/include/GL/glx.h:148
|
||||
GLX_RGBA_TYPE = 32788 # /usr/include/GL/glx.h:149
|
||||
GLX_COLOR_INDEX_TYPE = 32789 # /usr/include/GL/glx.h:150
|
||||
GLX_MAX_PBUFFER_WIDTH = 32790 # /usr/include/GL/glx.h:151
|
||||
GLX_MAX_PBUFFER_HEIGHT = 32791 # /usr/include/GL/glx.h:152
|
||||
GLX_MAX_PBUFFER_PIXELS = 32792 # /usr/include/GL/glx.h:153
|
||||
GLX_PRESERVED_CONTENTS = 32795 # /usr/include/GL/glx.h:154
|
||||
GLX_LARGEST_PBUFFER = 32796 # /usr/include/GL/glx.h:155
|
||||
GLX_WIDTH = 32797 # /usr/include/GL/glx.h:156
|
||||
GLX_HEIGHT = 32798 # /usr/include/GL/glx.h:157
|
||||
GLX_EVENT_MASK = 32799 # /usr/include/GL/glx.h:158
|
||||
GLX_DAMAGED = 32800 # /usr/include/GL/glx.h:159
|
||||
GLX_SAVED = 32801 # /usr/include/GL/glx.h:160
|
||||
GLX_WINDOW = 32802 # /usr/include/GL/glx.h:161
|
||||
GLX_PBUFFER = 32803 # /usr/include/GL/glx.h:162
|
||||
GLX_PBUFFER_HEIGHT = 32832 # /usr/include/GL/glx.h:163
|
||||
GLX_PBUFFER_WIDTH = 32833 # /usr/include/GL/glx.h:164
|
||||
GLX_RGBA_BIT = 1 # /usr/include/GL/glx.h:165
|
||||
GLX_COLOR_INDEX_BIT = 2 # /usr/include/GL/glx.h:166
|
||||
GLX_PBUFFER_CLOBBER_MASK = 134217728 # /usr/include/GL/glx.h:167
|
||||
GLX_SAMPLE_BUFFERS = 100000 # /usr/include/GL/glx.h:173
|
||||
GLX_SAMPLES = 100001 # /usr/include/GL/glx.h:174
|
||||
class struct___GLXcontextRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___GLXcontextRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
GLX_VERSION_1_1 = 1 # /usr/include/GL/glx.h:58
|
||||
GLX_VERSION_1_2 = 1 # /usr/include/GL/glx.h:59
|
||||
GLX_VERSION_1_3 = 1 # /usr/include/GL/glx.h:60
|
||||
GLX_VERSION_1_4 = 1 # /usr/include/GL/glx.h:61
|
||||
GLX_USE_GL = 1 # /usr/include/GL/glx.h:70
|
||||
GLX_BUFFER_SIZE = 2 # /usr/include/GL/glx.h:71
|
||||
GLX_LEVEL = 3 # /usr/include/GL/glx.h:72
|
||||
GLX_RGBA = 4 # /usr/include/GL/glx.h:73
|
||||
GLX_DOUBLEBUFFER = 5 # /usr/include/GL/glx.h:74
|
||||
GLX_STEREO = 6 # /usr/include/GL/glx.h:75
|
||||
GLX_AUX_BUFFERS = 7 # /usr/include/GL/glx.h:76
|
||||
GLX_RED_SIZE = 8 # /usr/include/GL/glx.h:77
|
||||
GLX_GREEN_SIZE = 9 # /usr/include/GL/glx.h:78
|
||||
GLX_BLUE_SIZE = 10 # /usr/include/GL/glx.h:79
|
||||
GLX_ALPHA_SIZE = 11 # /usr/include/GL/glx.h:80
|
||||
GLX_DEPTH_SIZE = 12 # /usr/include/GL/glx.h:81
|
||||
GLX_STENCIL_SIZE = 13 # /usr/include/GL/glx.h:82
|
||||
GLX_ACCUM_RED_SIZE = 14 # /usr/include/GL/glx.h:83
|
||||
GLX_ACCUM_GREEN_SIZE = 15 # /usr/include/GL/glx.h:84
|
||||
GLX_ACCUM_BLUE_SIZE = 16 # /usr/include/GL/glx.h:85
|
||||
GLX_ACCUM_ALPHA_SIZE = 17 # /usr/include/GL/glx.h:86
|
||||
GLX_BAD_SCREEN = 1 # /usr/include/GL/glx.h:92
|
||||
GLX_BAD_ATTRIBUTE = 2 # /usr/include/GL/glx.h:93
|
||||
GLX_NO_EXTENSION = 3 # /usr/include/GL/glx.h:94
|
||||
GLX_BAD_VISUAL = 4 # /usr/include/GL/glx.h:95
|
||||
GLX_BAD_CONTEXT = 5 # /usr/include/GL/glx.h:96
|
||||
GLX_BAD_VALUE = 6 # /usr/include/GL/glx.h:97
|
||||
GLX_BAD_ENUM = 7 # /usr/include/GL/glx.h:98
|
||||
GLX_VENDOR = 1 # /usr/include/GL/glx.h:104
|
||||
GLX_VERSION = 2 # /usr/include/GL/glx.h:105
|
||||
GLX_EXTENSIONS = 3 # /usr/include/GL/glx.h:106
|
||||
GLX_CONFIG_CAVEAT = 32 # /usr/include/GL/glx.h:112
|
||||
GLX_DONT_CARE = 4294967295 # /usr/include/GL/glx.h:113
|
||||
GLX_X_VISUAL_TYPE = 34 # /usr/include/GL/glx.h:114
|
||||
GLX_TRANSPARENT_TYPE = 35 # /usr/include/GL/glx.h:115
|
||||
GLX_TRANSPARENT_INDEX_VALUE = 36 # /usr/include/GL/glx.h:116
|
||||
GLX_TRANSPARENT_RED_VALUE = 37 # /usr/include/GL/glx.h:117
|
||||
GLX_TRANSPARENT_GREEN_VALUE = 38 # /usr/include/GL/glx.h:118
|
||||
GLX_TRANSPARENT_BLUE_VALUE = 39 # /usr/include/GL/glx.h:119
|
||||
GLX_TRANSPARENT_ALPHA_VALUE = 40 # /usr/include/GL/glx.h:120
|
||||
GLX_WINDOW_BIT = 1 # /usr/include/GL/glx.h:121
|
||||
GLX_PIXMAP_BIT = 2 # /usr/include/GL/glx.h:122
|
||||
GLX_PBUFFER_BIT = 4 # /usr/include/GL/glx.h:123
|
||||
GLX_AUX_BUFFERS_BIT = 16 # /usr/include/GL/glx.h:124
|
||||
GLX_FRONT_LEFT_BUFFER_BIT = 1 # /usr/include/GL/glx.h:125
|
||||
GLX_FRONT_RIGHT_BUFFER_BIT = 2 # /usr/include/GL/glx.h:126
|
||||
GLX_BACK_LEFT_BUFFER_BIT = 4 # /usr/include/GL/glx.h:127
|
||||
GLX_BACK_RIGHT_BUFFER_BIT = 8 # /usr/include/GL/glx.h:128
|
||||
GLX_DEPTH_BUFFER_BIT = 32 # /usr/include/GL/glx.h:129
|
||||
GLX_STENCIL_BUFFER_BIT = 64 # /usr/include/GL/glx.h:130
|
||||
GLX_ACCUM_BUFFER_BIT = 128 # /usr/include/GL/glx.h:131
|
||||
GLX_NONE = 32768 # /usr/include/GL/glx.h:132
|
||||
GLX_SLOW_CONFIG = 32769 # /usr/include/GL/glx.h:133
|
||||
GLX_TRUE_COLOR = 32770 # /usr/include/GL/glx.h:134
|
||||
GLX_DIRECT_COLOR = 32771 # /usr/include/GL/glx.h:135
|
||||
GLX_PSEUDO_COLOR = 32772 # /usr/include/GL/glx.h:136
|
||||
GLX_STATIC_COLOR = 32773 # /usr/include/GL/glx.h:137
|
||||
GLX_GRAY_SCALE = 32774 # /usr/include/GL/glx.h:138
|
||||
GLX_STATIC_GRAY = 32775 # /usr/include/GL/glx.h:139
|
||||
GLX_TRANSPARENT_RGB = 32776 # /usr/include/GL/glx.h:140
|
||||
GLX_TRANSPARENT_INDEX = 32777 # /usr/include/GL/glx.h:141
|
||||
GLX_VISUAL_ID = 32779 # /usr/include/GL/glx.h:142
|
||||
GLX_SCREEN = 32780 # /usr/include/GL/glx.h:143
|
||||
GLX_NON_CONFORMANT_CONFIG = 32781 # /usr/include/GL/glx.h:144
|
||||
GLX_DRAWABLE_TYPE = 32784 # /usr/include/GL/glx.h:145
|
||||
GLX_RENDER_TYPE = 32785 # /usr/include/GL/glx.h:146
|
||||
GLX_X_RENDERABLE = 32786 # /usr/include/GL/glx.h:147
|
||||
GLX_FBCONFIG_ID = 32787 # /usr/include/GL/glx.h:148
|
||||
GLX_RGBA_TYPE = 32788 # /usr/include/GL/glx.h:149
|
||||
GLX_COLOR_INDEX_TYPE = 32789 # /usr/include/GL/glx.h:150
|
||||
GLX_MAX_PBUFFER_WIDTH = 32790 # /usr/include/GL/glx.h:151
|
||||
GLX_MAX_PBUFFER_HEIGHT = 32791 # /usr/include/GL/glx.h:152
|
||||
GLX_MAX_PBUFFER_PIXELS = 32792 # /usr/include/GL/glx.h:153
|
||||
GLX_PRESERVED_CONTENTS = 32795 # /usr/include/GL/glx.h:154
|
||||
GLX_LARGEST_PBUFFER = 32796 # /usr/include/GL/glx.h:155
|
||||
GLX_WIDTH = 32797 # /usr/include/GL/glx.h:156
|
||||
GLX_HEIGHT = 32798 # /usr/include/GL/glx.h:157
|
||||
GLX_EVENT_MASK = 32799 # /usr/include/GL/glx.h:158
|
||||
GLX_DAMAGED = 32800 # /usr/include/GL/glx.h:159
|
||||
GLX_SAVED = 32801 # /usr/include/GL/glx.h:160
|
||||
GLX_WINDOW = 32802 # /usr/include/GL/glx.h:161
|
||||
GLX_PBUFFER = 32803 # /usr/include/GL/glx.h:162
|
||||
GLX_PBUFFER_HEIGHT = 32832 # /usr/include/GL/glx.h:163
|
||||
GLX_PBUFFER_WIDTH = 32833 # /usr/include/GL/glx.h:164
|
||||
GLX_RGBA_BIT = 1 # /usr/include/GL/glx.h:165
|
||||
GLX_COLOR_INDEX_BIT = 2 # /usr/include/GL/glx.h:166
|
||||
GLX_PBUFFER_CLOBBER_MASK = 134217728 # /usr/include/GL/glx.h:167
|
||||
GLX_SAMPLE_BUFFERS = 100000 # /usr/include/GL/glx.h:173
|
||||
GLX_SAMPLES = 100001 # /usr/include/GL/glx.h:174
|
||||
|
||||
|
||||
class struct___GLXcontextRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___GLXcontextRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLXContext = POINTER(struct___GLXcontextRec) # /usr/include/GL/glx.h:178
|
||||
|
||||
class struct___GLXcontextRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___GLXcontextRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLXContext = POINTER(struct___GLXcontextRec) # /usr/include/GL/glx.h:178
|
||||
XID = pyglet.libs.x11.xlib.XID
|
||||
GLXPixmap = XID # /usr/include/GL/glx.h:179
|
||||
GLXDrawable = XID # /usr/include/GL/glx.h:180
|
||||
class struct___GLXFBConfigRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
struct___GLXFBConfigRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
GLXPixmap = XID # /usr/include/GL/glx.h:179
|
||||
GLXDrawable = XID # /usr/include/GL/glx.h:180
|
||||
|
||||
|
||||
class struct___GLXFBConfigRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___GLXFBConfigRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLXFBConfig = POINTER(struct___GLXFBConfigRec) # /usr/include/GL/glx.h:182
|
||||
GLXFBConfigID = XID # /usr/include/GL/glx.h:183
|
||||
GLXContextID = XID # /usr/include/GL/glx.h:184
|
||||
GLXWindow = XID # /usr/include/GL/glx.h:185
|
||||
GLXPbuffer = XID # /usr/include/GL/glx.h:186
|
||||
|
||||
class struct___GLXFBConfigRec(Structure):
|
||||
__slots__ = [
|
||||
]
|
||||
|
||||
|
||||
struct___GLXFBConfigRec._fields_ = [
|
||||
('_opaque_struct', c_int)
|
||||
]
|
||||
|
||||
GLXFBConfig = POINTER(struct___GLXFBConfigRec) # /usr/include/GL/glx.h:182
|
||||
GLXFBConfigID = XID # /usr/include/GL/glx.h:183
|
||||
GLXContextID = XID # /usr/include/GL/glx.h:184
|
||||
GLXWindow = XID # /usr/include/GL/glx.h:185
|
||||
GLXPbuffer = XID # /usr/include/GL/glx.h:186
|
||||
XVisualInfo = pyglet.libs.x11.xlib.XVisualInfo
|
||||
Display = pyglet.libs.x11.xlib.Display
|
||||
# /usr/include/GL/glx.h:190
|
||||
@ -298,35 +313,35 @@ glXSelectEvent = _link_function('glXSelectEvent', None, [POINTER(Display), GLXDr
|
||||
# /usr/include/GL/glx.h:290
|
||||
glXGetSelectedEvent = _link_function('glXGetSelectedEvent', None, [POINTER(Display), GLXDrawable, POINTER(c_ulong)], 'H')
|
||||
|
||||
PFNGLXGETFBCONFIGSPROC = CFUNCTYPE(POINTER(GLXFBConfig), POINTER(Display), c_int, POINTER(c_int)) # /usr/include/GL/glx.h:294
|
||||
PFNGLXCHOOSEFBCONFIGPROC = CFUNCTYPE(POINTER(GLXFBConfig), POINTER(Display), c_int, POINTER(c_int), POINTER(c_int)) # /usr/include/GL/glx.h:295
|
||||
PFNGLXGETFBCONFIGATTRIBPROC = CFUNCTYPE(c_int, POINTER(Display), GLXFBConfig, c_int, POINTER(c_int)) # /usr/include/GL/glx.h:296
|
||||
PFNGLXGETVISUALFROMFBCONFIGPROC = CFUNCTYPE(POINTER(XVisualInfo), POINTER(Display), GLXFBConfig) # /usr/include/GL/glx.h:297
|
||||
PFNGLXCREATEWINDOWPROC = CFUNCTYPE(GLXWindow, POINTER(Display), GLXFBConfig, Window, POINTER(c_int)) # /usr/include/GL/glx.h:298
|
||||
PFNGLXDESTROYWINDOWPROC = CFUNCTYPE(None, POINTER(Display), GLXWindow) # /usr/include/GL/glx.h:299
|
||||
PFNGLXCREATEPIXMAPPROC = CFUNCTYPE(GLXPixmap, POINTER(Display), GLXFBConfig, Pixmap, POINTER(c_int)) # /usr/include/GL/glx.h:300
|
||||
PFNGLXDESTROYPIXMAPPROC = CFUNCTYPE(None, POINTER(Display), GLXPixmap) # /usr/include/GL/glx.h:301
|
||||
PFNGLXCREATEPBUFFERPROC = CFUNCTYPE(GLXPbuffer, POINTER(Display), GLXFBConfig, POINTER(c_int)) # /usr/include/GL/glx.h:302
|
||||
PFNGLXDESTROYPBUFFERPROC = CFUNCTYPE(None, POINTER(Display), GLXPbuffer) # /usr/include/GL/glx.h:303
|
||||
PFNGLXQUERYDRAWABLEPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, c_int, POINTER(c_uint)) # /usr/include/GL/glx.h:304
|
||||
PFNGLXCREATENEWCONTEXTPROC = CFUNCTYPE(GLXContext, POINTER(Display), GLXFBConfig, c_int, GLXContext, c_int) # /usr/include/GL/glx.h:305
|
||||
PFNGLXMAKECONTEXTCURRENTPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, GLXDrawable, GLXContext) # /usr/include/GL/glx.h:306
|
||||
PFNGLXGETCURRENTREADDRAWABLEPROC = CFUNCTYPE(GLXDrawable) # /usr/include/GL/glx.h:307
|
||||
PFNGLXGETCURRENTDISPLAYPROC = CFUNCTYPE(POINTER(Display)) # /usr/include/GL/glx.h:308
|
||||
PFNGLXQUERYCONTEXTPROC = CFUNCTYPE(c_int, POINTER(Display), GLXContext, c_int, POINTER(c_int)) # /usr/include/GL/glx.h:309
|
||||
PFNGLXSELECTEVENTPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, c_ulong) # /usr/include/GL/glx.h:310
|
||||
PFNGLXGETSELECTEDEVENTPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, POINTER(c_ulong)) # /usr/include/GL/glx.h:311
|
||||
PFNGLXGETFBCONFIGSPROC = CFUNCTYPE(POINTER(GLXFBConfig), POINTER(Display), c_int, POINTER(c_int)) # /usr/include/GL/glx.h:294
|
||||
PFNGLXCHOOSEFBCONFIGPROC = CFUNCTYPE(POINTER(GLXFBConfig), POINTER(Display), c_int, POINTER(c_int), POINTER(c_int)) # /usr/include/GL/glx.h:295
|
||||
PFNGLXGETFBCONFIGATTRIBPROC = CFUNCTYPE(c_int, POINTER(Display), GLXFBConfig, c_int, POINTER(c_int)) # /usr/include/GL/glx.h:296
|
||||
PFNGLXGETVISUALFROMFBCONFIGPROC = CFUNCTYPE(POINTER(XVisualInfo), POINTER(Display), GLXFBConfig) # /usr/include/GL/glx.h:297
|
||||
PFNGLXCREATEWINDOWPROC = CFUNCTYPE(GLXWindow, POINTER(Display), GLXFBConfig, Window, POINTER(c_int)) # /usr/include/GL/glx.h:298
|
||||
PFNGLXDESTROYWINDOWPROC = CFUNCTYPE(None, POINTER(Display), GLXWindow) # /usr/include/GL/glx.h:299
|
||||
PFNGLXCREATEPIXMAPPROC = CFUNCTYPE(GLXPixmap, POINTER(Display), GLXFBConfig, Pixmap, POINTER(c_int)) # /usr/include/GL/glx.h:300
|
||||
PFNGLXDESTROYPIXMAPPROC = CFUNCTYPE(None, POINTER(Display), GLXPixmap) # /usr/include/GL/glx.h:301
|
||||
PFNGLXCREATEPBUFFERPROC = CFUNCTYPE(GLXPbuffer, POINTER(Display), GLXFBConfig, POINTER(c_int)) # /usr/include/GL/glx.h:302
|
||||
PFNGLXDESTROYPBUFFERPROC = CFUNCTYPE(None, POINTER(Display), GLXPbuffer) # /usr/include/GL/glx.h:303
|
||||
PFNGLXQUERYDRAWABLEPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, c_int, POINTER(c_uint)) # /usr/include/GL/glx.h:304
|
||||
PFNGLXCREATENEWCONTEXTPROC = CFUNCTYPE(GLXContext, POINTER(Display), GLXFBConfig, c_int, GLXContext, c_int) # /usr/include/GL/glx.h:305
|
||||
PFNGLXMAKECONTEXTCURRENTPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, GLXDrawable, GLXContext) # /usr/include/GL/glx.h:306
|
||||
PFNGLXGETCURRENTREADDRAWABLEPROC = CFUNCTYPE(GLXDrawable) # /usr/include/GL/glx.h:307
|
||||
PFNGLXGETCURRENTDISPLAYPROC = CFUNCTYPE(POINTER(Display)) # /usr/include/GL/glx.h:308
|
||||
PFNGLXQUERYCONTEXTPROC = CFUNCTYPE(c_int, POINTER(Display), GLXContext, c_int, POINTER(c_int)) # /usr/include/GL/glx.h:309
|
||||
PFNGLXSELECTEVENTPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, c_ulong) # /usr/include/GL/glx.h:310
|
||||
PFNGLXGETSELECTEDEVENTPROC = CFUNCTYPE(None, POINTER(Display), GLXDrawable, POINTER(c_ulong)) # /usr/include/GL/glx.h:311
|
||||
# ARB_get_proc_address (/usr/include/GL/glx.h:317)
|
||||
GLX_ARB_get_proc_address = 1 # /usr/include/GL/glx.h:318
|
||||
__GLXextFuncPtr = CFUNCTYPE(None) # /usr/include/GL/glx.h:320
|
||||
GLubyte = c_ubyte # /usr/include/GL/gl.h:160
|
||||
GLX_ARB_get_proc_address = 1 # /usr/include/GL/glx.h:318
|
||||
__GLXextFuncPtr = CFUNCTYPE(None) # /usr/include/GL/glx.h:320
|
||||
GLubyte = c_ubyte # /usr/include/GL/gl.h:160
|
||||
# /usr/include/GL/glx.h:321
|
||||
glXGetProcAddressARB = _link_function('glXGetProcAddressARB', __GLXextFuncPtr, [POINTER(GLubyte)], 'ARB_get_proc_address')
|
||||
|
||||
# /usr/include/GL/glx.h:328
|
||||
glXGetProcAddress = _link_function('glXGetProcAddress', POINTER(CFUNCTYPE(None)), [POINTER(GLubyte)], 'ARB_get_proc_address')
|
||||
|
||||
PFNGLXGETPROCADDRESSPROC = CFUNCTYPE(__GLXextFuncPtr, POINTER(GLubyte)) # /usr/include/GL/glx.h:331
|
||||
PFNGLXGETPROCADDRESSPROC = CFUNCTYPE(__GLXextFuncPtr, POINTER(GLubyte)) # /usr/include/GL/glx.h:331
|
||||
# GLXEXT_LEGACY (/usr/include/GL/glx.h:334)
|
||||
# VERSION_1_3 (/usr/include/GL/glxext.h:55)
|
||||
# VERSION_1_4 (/usr/include/GL/glxext.h:114)
|
||||
@ -422,34 +437,35 @@ PFNGLXGETPROCADDRESSPROC = CFUNCTYPE(__GLXextFuncPtr, POINTER(GLubyte)) # /usr/
|
||||
# EXT_swap_control (/usr/include/GL/glxext.h:912)
|
||||
# NV_copy_image (/usr/include/GL/glxext.h:920)
|
||||
# NV_vertex_array_range (/usr/include/GL/glx.h:349)
|
||||
GLsizei = c_int # /usr/include/GL/gl.h:163
|
||||
GLfloat = c_float # /usr/include/GL/gl.h:164
|
||||
GLsizei = c_int # /usr/include/GL/gl.h:163
|
||||
GLfloat = c_float # /usr/include/GL/gl.h:164
|
||||
# /usr/include/GL/glx.h:352
|
||||
glXAllocateMemoryNV = _link_function('glXAllocateMemoryNV', POINTER(c_void), [GLsizei, GLfloat, GLfloat, GLfloat], 'NV_vertex_array_range')
|
||||
|
||||
GLvoid = None # /usr/include/GL/gl.h:156
|
||||
GLvoid = None # /usr/include/GL/gl.h:156
|
||||
# /usr/include/GL/glx.h:353
|
||||
glXFreeMemoryNV = _link_function('glXFreeMemoryNV', None, [POINTER(GLvoid)], 'NV_vertex_array_range')
|
||||
|
||||
PFNGLXALLOCATEMEMORYNVPROC = CFUNCTYPE(POINTER(c_void), GLsizei, GLfloat, GLfloat, GLfloat) # /usr/include/GL/glx.h:354
|
||||
PFNGLXFREEMEMORYNVPROC = CFUNCTYPE(None, POINTER(GLvoid)) # /usr/include/GL/glx.h:355
|
||||
PFNGLXALLOCATEMEMORYNVPROC = CFUNCTYPE(POINTER(c_void), GLsizei, GLfloat, GLfloat, GLfloat) # /usr/include/GL/glx.h:354
|
||||
PFNGLXFREEMEMORYNVPROC = CFUNCTYPE(None, POINTER(GLvoid)) # /usr/include/GL/glx.h:355
|
||||
# MESA_allocate_memory (/usr/include/GL/glx.h:363)
|
||||
GLX_MESA_allocate_memory = 1 # /usr/include/GL/glx.h:364
|
||||
GLX_MESA_allocate_memory = 1 # /usr/include/GL/glx.h:364
|
||||
# /usr/include/GL/glx.h:366
|
||||
glXAllocateMemoryMESA = _link_function('glXAllocateMemoryMESA', POINTER(c_void), [POINTER(Display), c_int, c_size_t, c_float, c_float, c_float], 'MESA_allocate_memory')
|
||||
glXAllocateMemoryMESA = _link_function('glXAllocateMemoryMESA', POINTER(c_void), [POINTER(Display), c_int, c_size_t, c_float, c_float, c_float],
|
||||
'MESA_allocate_memory')
|
||||
|
||||
# /usr/include/GL/glx.h:367
|
||||
glXFreeMemoryMESA = _link_function('glXFreeMemoryMESA', None, [POINTER(Display), c_int, POINTER(None)], 'MESA_allocate_memory')
|
||||
|
||||
GLuint = c_uint # /usr/include/GL/gl.h:162
|
||||
GLuint = c_uint # /usr/include/GL/gl.h:162
|
||||
# /usr/include/GL/glx.h:368
|
||||
glXGetMemoryOffsetMESA = _link_function('glXGetMemoryOffsetMESA', GLuint, [POINTER(Display), c_int, POINTER(None)], 'MESA_allocate_memory')
|
||||
|
||||
PFNGLXALLOCATEMEMORYMESAPROC = CFUNCTYPE(POINTER(c_void), POINTER(Display), c_int, c_size_t, c_float, c_float, c_float) # /usr/include/GL/glx.h:369
|
||||
PFNGLXFREEMEMORYMESAPROC = CFUNCTYPE(None, POINTER(Display), c_int, POINTER(None)) # /usr/include/GL/glx.h:370
|
||||
PFNGLXGETMEMORYOFFSETMESAPROC = CFUNCTYPE(GLuint, POINTER(Display), c_int, POINTER(None)) # /usr/include/GL/glx.h:371
|
||||
PFNGLXALLOCATEMEMORYMESAPROC = CFUNCTYPE(POINTER(c_void), POINTER(Display), c_int, c_size_t, c_float, c_float, c_float) # /usr/include/GL/glx.h:369
|
||||
PFNGLXFREEMEMORYMESAPROC = CFUNCTYPE(None, POINTER(Display), c_int, POINTER(None)) # /usr/include/GL/glx.h:370
|
||||
PFNGLXGETMEMORYOFFSETMESAPROC = CFUNCTYPE(GLuint, POINTER(Display), c_int, POINTER(None)) # /usr/include/GL/glx.h:371
|
||||
# ARB_render_texture (/usr/include/GL/glx.h:380)
|
||||
GLX_ARB_render_texture = 1 # /usr/include/GL/glx.h:381
|
||||
GLX_ARB_render_texture = 1 # /usr/include/GL/glx.h:381
|
||||
# /usr/include/GL/glx.h:383
|
||||
glXBindTexImageARB = _link_function('glXBindTexImageARB', c_int, [POINTER(Display), GLXPbuffer, c_int], 'ARB_render_texture')
|
||||
|
||||
@ -461,7 +477,7 @@ glXDrawableAttribARB = _link_function('glXDrawableAttribARB', c_int, [POINTER(Di
|
||||
|
||||
# NV_float_buffer (/usr/include/GL/glx.h:393)
|
||||
# MESA_swap_frame_usage (/usr/include/GL/glx.h:405)
|
||||
GLX_MESA_swap_frame_usage = 1 # /usr/include/GL/glx.h:406
|
||||
GLX_MESA_swap_frame_usage = 1 # /usr/include/GL/glx.h:406
|
||||
# /usr/include/GL/glx.h:408
|
||||
glXGetFrameUsageMESA = _link_function('glXGetFrameUsageMESA', c_int, [POINTER(Display), GLXDrawable, POINTER(c_float)], 'MESA_swap_frame_usage')
|
||||
|
||||
@ -472,22 +488,27 @@ glXBeginFrameTrackingMESA = _link_function('glXBeginFrameTrackingMESA', c_int, [
|
||||
glXEndFrameTrackingMESA = _link_function('glXEndFrameTrackingMESA', c_int, [POINTER(Display), GLXDrawable], 'MESA_swap_frame_usage')
|
||||
|
||||
# /usr/include/GL/glx.h:411
|
||||
glXQueryFrameTrackingMESA = _link_function('glXQueryFrameTrackingMESA', c_int, [POINTER(Display), GLXDrawable, POINTER(c_int64), POINTER(c_int64), POINTER(c_float)], 'MESA_swap_frame_usage')
|
||||
glXQueryFrameTrackingMESA = _link_function('glXQueryFrameTrackingMESA', c_int,
|
||||
[POINTER(Display), GLXDrawable, POINTER(c_int64), POINTER(c_int64), POINTER(c_float)],
|
||||
'MESA_swap_frame_usage')
|
||||
|
||||
PFNGLXGETFRAMEUSAGEMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, POINTER(c_float)) # /usr/include/GL/glx.h:413
|
||||
PFNGLXBEGINFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable) # /usr/include/GL/glx.h:414
|
||||
PFNGLXENDFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable) # /usr/include/GL/glx.h:415
|
||||
PFNGLXQUERYFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, POINTER(c_int64), POINTER(c_int64), POINTER(c_float)) # /usr/include/GL/glx.h:416
|
||||
PFNGLXGETFRAMEUSAGEMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, POINTER(c_float)) # /usr/include/GL/glx.h:413
|
||||
PFNGLXBEGINFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable) # /usr/include/GL/glx.h:414
|
||||
PFNGLXENDFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable) # /usr/include/GL/glx.h:415
|
||||
PFNGLXQUERYFRAMETRACKINGMESAPROC = CFUNCTYPE(c_int, POINTER(Display), GLXDrawable, POINTER(c_int64), POINTER(c_int64),
|
||||
POINTER(c_float)) # /usr/include/GL/glx.h:416
|
||||
# MESA_swap_control (/usr/include/GL/glx.h:425)
|
||||
GLX_MESA_swap_control = 1 # /usr/include/GL/glx.h:426
|
||||
GLX_MESA_swap_control = 1 # /usr/include/GL/glx.h:426
|
||||
# /usr/include/GL/glx.h:428
|
||||
glXSwapIntervalMESA = _link_function('glXSwapIntervalMESA', c_int, [c_uint], 'MESA_swap_control')
|
||||
|
||||
# /usr/include/GL/glx.h:429
|
||||
glXGetSwapIntervalMESA = _link_function('glXGetSwapIntervalMESA', c_int, [], 'MESA_swap_control')
|
||||
|
||||
PFNGLXSWAPINTERVALMESAPROC = CFUNCTYPE(c_int, c_uint) # /usr/include/GL/glx.h:431
|
||||
PFNGLXGETSWAPINTERVALMESAPROC = CFUNCTYPE(c_int) # /usr/include/GL/glx.h:432
|
||||
PFNGLXSWAPINTERVALMESAPROC = CFUNCTYPE(c_int, c_uint) # /usr/include/GL/glx.h:431
|
||||
PFNGLXGETSWAPINTERVALMESAPROC = CFUNCTYPE(c_int) # /usr/include/GL/glx.h:432
|
||||
|
||||
|
||||
# EXT_texture_from_pixmap (/usr/include/GL/glx.h:442)
|
||||
class struct_anon_111(Structure):
|
||||
__slots__ = [
|
||||
@ -505,6 +526,8 @@ class struct_anon_111(Structure):
|
||||
'height',
|
||||
'count',
|
||||
]
|
||||
|
||||
|
||||
struct_anon_111._fields_ = [
|
||||
('event_type', c_int),
|
||||
('draw_type', c_int),
|
||||
@ -521,80 +544,84 @@ struct_anon_111._fields_ = [
|
||||
('count', c_int),
|
||||
]
|
||||
|
||||
GLXPbufferClobberEvent = struct_anon_111 # /usr/include/GL/glx.h:508
|
||||
GLXPbufferClobberEvent = struct_anon_111 # /usr/include/GL/glx.h:508
|
||||
|
||||
|
||||
class struct___GLXEvent(Union):
|
||||
__slots__ = [
|
||||
'glxpbufferclobber',
|
||||
'pad',
|
||||
]
|
||||
|
||||
|
||||
struct___GLXEvent._fields_ = [
|
||||
('glxpbufferclobber', GLXPbufferClobberEvent),
|
||||
('pad', c_long * 24),
|
||||
]
|
||||
|
||||
GLXEvent = struct___GLXEvent # /usr/include/GL/glx.h:513
|
||||
GLXEvent = struct___GLXEvent # /usr/include/GL/glx.h:513
|
||||
|
||||
__all__ = ['GLX_VERSION_1_1', 'GLX_VERSION_1_2', 'GLX_VERSION_1_3',
|
||||
'GLX_VERSION_1_4', 'GLX_USE_GL', 'GLX_BUFFER_SIZE', 'GLX_LEVEL', 'GLX_RGBA',
|
||||
'GLX_DOUBLEBUFFER', 'GLX_STEREO', 'GLX_AUX_BUFFERS', 'GLX_RED_SIZE',
|
||||
'GLX_GREEN_SIZE', 'GLX_BLUE_SIZE', 'GLX_ALPHA_SIZE', 'GLX_DEPTH_SIZE',
|
||||
'GLX_STENCIL_SIZE', 'GLX_ACCUM_RED_SIZE', 'GLX_ACCUM_GREEN_SIZE',
|
||||
'GLX_ACCUM_BLUE_SIZE', 'GLX_ACCUM_ALPHA_SIZE', 'GLX_BAD_SCREEN',
|
||||
'GLX_BAD_ATTRIBUTE', 'GLX_NO_EXTENSION', 'GLX_BAD_VISUAL', 'GLX_BAD_CONTEXT',
|
||||
'GLX_BAD_VALUE', 'GLX_BAD_ENUM', 'GLX_VENDOR', 'GLX_VERSION',
|
||||
'GLX_EXTENSIONS', 'GLX_CONFIG_CAVEAT', 'GLX_DONT_CARE', 'GLX_X_VISUAL_TYPE',
|
||||
'GLX_TRANSPARENT_TYPE', 'GLX_TRANSPARENT_INDEX_VALUE',
|
||||
'GLX_TRANSPARENT_RED_VALUE', 'GLX_TRANSPARENT_GREEN_VALUE',
|
||||
'GLX_TRANSPARENT_BLUE_VALUE', 'GLX_TRANSPARENT_ALPHA_VALUE', 'GLX_WINDOW_BIT',
|
||||
'GLX_PIXMAP_BIT', 'GLX_PBUFFER_BIT', 'GLX_AUX_BUFFERS_BIT',
|
||||
'GLX_FRONT_LEFT_BUFFER_BIT', 'GLX_FRONT_RIGHT_BUFFER_BIT',
|
||||
'GLX_BACK_LEFT_BUFFER_BIT', 'GLX_BACK_RIGHT_BUFFER_BIT',
|
||||
'GLX_DEPTH_BUFFER_BIT', 'GLX_STENCIL_BUFFER_BIT', 'GLX_ACCUM_BUFFER_BIT',
|
||||
'GLX_NONE', 'GLX_SLOW_CONFIG', 'GLX_TRUE_COLOR', 'GLX_DIRECT_COLOR',
|
||||
'GLX_PSEUDO_COLOR', 'GLX_STATIC_COLOR', 'GLX_GRAY_SCALE', 'GLX_STATIC_GRAY',
|
||||
'GLX_TRANSPARENT_RGB', 'GLX_TRANSPARENT_INDEX', 'GLX_VISUAL_ID', 'GLX_SCREEN',
|
||||
'GLX_NON_CONFORMANT_CONFIG', 'GLX_DRAWABLE_TYPE', 'GLX_RENDER_TYPE',
|
||||
'GLX_X_RENDERABLE', 'GLX_FBCONFIG_ID', 'GLX_RGBA_TYPE',
|
||||
'GLX_COLOR_INDEX_TYPE', 'GLX_MAX_PBUFFER_WIDTH', 'GLX_MAX_PBUFFER_HEIGHT',
|
||||
'GLX_MAX_PBUFFER_PIXELS', 'GLX_PRESERVED_CONTENTS', 'GLX_LARGEST_PBUFFER',
|
||||
'GLX_WIDTH', 'GLX_HEIGHT', 'GLX_EVENT_MASK', 'GLX_DAMAGED', 'GLX_SAVED',
|
||||
'GLX_WINDOW', 'GLX_PBUFFER', 'GLX_PBUFFER_HEIGHT', 'GLX_PBUFFER_WIDTH',
|
||||
'GLX_RGBA_BIT', 'GLX_COLOR_INDEX_BIT', 'GLX_PBUFFER_CLOBBER_MASK',
|
||||
'GLX_SAMPLE_BUFFERS', 'GLX_SAMPLES', 'GLXContext', 'GLXPixmap', 'GLXDrawable',
|
||||
'GLXFBConfig', 'GLXFBConfigID', 'GLXContextID', 'GLXWindow', 'GLXPbuffer',
|
||||
'glXChooseVisual', 'glXCreateContext', 'glXDestroyContext', 'glXMakeCurrent',
|
||||
'glXCopyContext', 'glXSwapBuffers', 'glXCreateGLXPixmap',
|
||||
'glXDestroyGLXPixmap', 'glXQueryExtension', 'glXQueryVersion', 'glXIsDirect',
|
||||
'glXGetConfig', 'glXGetCurrentContext', 'glXGetCurrentDrawable', 'glXWaitGL',
|
||||
'glXWaitX', 'glXUseXFont', 'glXQueryExtensionsString', 'glXQueryServerString',
|
||||
'glXGetClientString', 'glXGetCurrentDisplay', 'glXChooseFBConfig',
|
||||
'glXGetFBConfigAttrib', 'glXGetFBConfigs', 'glXGetVisualFromFBConfig',
|
||||
'glXCreateWindow', 'glXDestroyWindow', 'glXCreatePixmap', 'glXDestroyPixmap',
|
||||
'glXCreatePbuffer', 'glXDestroyPbuffer', 'glXQueryDrawable',
|
||||
'glXCreateNewContext', 'glXMakeContextCurrent', 'glXGetCurrentReadDrawable',
|
||||
'glXQueryContext', 'glXSelectEvent', 'glXGetSelectedEvent',
|
||||
'PFNGLXGETFBCONFIGSPROC', 'PFNGLXCHOOSEFBCONFIGPROC',
|
||||
'PFNGLXGETFBCONFIGATTRIBPROC', 'PFNGLXGETVISUALFROMFBCONFIGPROC',
|
||||
'PFNGLXCREATEWINDOWPROC', 'PFNGLXDESTROYWINDOWPROC', 'PFNGLXCREATEPIXMAPPROC',
|
||||
'PFNGLXDESTROYPIXMAPPROC', 'PFNGLXCREATEPBUFFERPROC',
|
||||
'PFNGLXDESTROYPBUFFERPROC', 'PFNGLXQUERYDRAWABLEPROC',
|
||||
'PFNGLXCREATENEWCONTEXTPROC', 'PFNGLXMAKECONTEXTCURRENTPROC',
|
||||
'PFNGLXGETCURRENTREADDRAWABLEPROC', 'PFNGLXGETCURRENTDISPLAYPROC',
|
||||
'PFNGLXQUERYCONTEXTPROC', 'PFNGLXSELECTEVENTPROC',
|
||||
'PFNGLXGETSELECTEDEVENTPROC', 'GLX_ARB_get_proc_address', '__GLXextFuncPtr',
|
||||
'glXGetProcAddressARB', 'glXGetProcAddress', 'PFNGLXGETPROCADDRESSPROC',
|
||||
'glXAllocateMemoryNV', 'glXFreeMemoryNV', 'PFNGLXALLOCATEMEMORYNVPROC',
|
||||
'PFNGLXFREEMEMORYNVPROC', 'GLX_MESA_allocate_memory', 'glXAllocateMemoryMESA',
|
||||
'glXFreeMemoryMESA', 'glXGetMemoryOffsetMESA', 'PFNGLXALLOCATEMEMORYMESAPROC',
|
||||
'PFNGLXFREEMEMORYMESAPROC', 'PFNGLXGETMEMORYOFFSETMESAPROC',
|
||||
'GLX_ARB_render_texture', 'glXBindTexImageARB', 'glXReleaseTexImageARB',
|
||||
'glXDrawableAttribARB', 'GLX_MESA_swap_frame_usage', 'glXGetFrameUsageMESA',
|
||||
'glXBeginFrameTrackingMESA', 'glXEndFrameTrackingMESA',
|
||||
'glXQueryFrameTrackingMESA', 'PFNGLXGETFRAMEUSAGEMESAPROC',
|
||||
'PFNGLXBEGINFRAMETRACKINGMESAPROC', 'PFNGLXENDFRAMETRACKINGMESAPROC',
|
||||
'PFNGLXQUERYFRAMETRACKINGMESAPROC', 'GLX_MESA_swap_control',
|
||||
'glXSwapIntervalMESA', 'glXGetSwapIntervalMESA', 'PFNGLXSWAPINTERVALMESAPROC',
|
||||
'PFNGLXGETSWAPINTERVALMESAPROC', 'GLXPbufferClobberEvent', 'GLXEvent']
|
||||
'GLX_VERSION_1_4', 'GLX_USE_GL', 'GLX_BUFFER_SIZE', 'GLX_LEVEL', 'GLX_RGBA',
|
||||
'GLX_DOUBLEBUFFER', 'GLX_STEREO', 'GLX_AUX_BUFFERS', 'GLX_RED_SIZE',
|
||||
'GLX_GREEN_SIZE', 'GLX_BLUE_SIZE', 'GLX_ALPHA_SIZE', 'GLX_DEPTH_SIZE',
|
||||
'GLX_STENCIL_SIZE', 'GLX_ACCUM_RED_SIZE', 'GLX_ACCUM_GREEN_SIZE',
|
||||
'GLX_ACCUM_BLUE_SIZE', 'GLX_ACCUM_ALPHA_SIZE', 'GLX_BAD_SCREEN',
|
||||
'GLX_BAD_ATTRIBUTE', 'GLX_NO_EXTENSION', 'GLX_BAD_VISUAL', 'GLX_BAD_CONTEXT',
|
||||
'GLX_BAD_VALUE', 'GLX_BAD_ENUM', 'GLX_VENDOR', 'GLX_VERSION',
|
||||
'GLX_EXTENSIONS', 'GLX_CONFIG_CAVEAT', 'GLX_DONT_CARE', 'GLX_X_VISUAL_TYPE',
|
||||
'GLX_TRANSPARENT_TYPE', 'GLX_TRANSPARENT_INDEX_VALUE',
|
||||
'GLX_TRANSPARENT_RED_VALUE', 'GLX_TRANSPARENT_GREEN_VALUE',
|
||||
'GLX_TRANSPARENT_BLUE_VALUE', 'GLX_TRANSPARENT_ALPHA_VALUE', 'GLX_WINDOW_BIT',
|
||||
'GLX_PIXMAP_BIT', 'GLX_PBUFFER_BIT', 'GLX_AUX_BUFFERS_BIT',
|
||||
'GLX_FRONT_LEFT_BUFFER_BIT', 'GLX_FRONT_RIGHT_BUFFER_BIT',
|
||||
'GLX_BACK_LEFT_BUFFER_BIT', 'GLX_BACK_RIGHT_BUFFER_BIT',
|
||||
'GLX_DEPTH_BUFFER_BIT', 'GLX_STENCIL_BUFFER_BIT', 'GLX_ACCUM_BUFFER_BIT',
|
||||
'GLX_NONE', 'GLX_SLOW_CONFIG', 'GLX_TRUE_COLOR', 'GLX_DIRECT_COLOR',
|
||||
'GLX_PSEUDO_COLOR', 'GLX_STATIC_COLOR', 'GLX_GRAY_SCALE', 'GLX_STATIC_GRAY',
|
||||
'GLX_TRANSPARENT_RGB', 'GLX_TRANSPARENT_INDEX', 'GLX_VISUAL_ID', 'GLX_SCREEN',
|
||||
'GLX_NON_CONFORMANT_CONFIG', 'GLX_DRAWABLE_TYPE', 'GLX_RENDER_TYPE',
|
||||
'GLX_X_RENDERABLE', 'GLX_FBCONFIG_ID', 'GLX_RGBA_TYPE',
|
||||
'GLX_COLOR_INDEX_TYPE', 'GLX_MAX_PBUFFER_WIDTH', 'GLX_MAX_PBUFFER_HEIGHT',
|
||||
'GLX_MAX_PBUFFER_PIXELS', 'GLX_PRESERVED_CONTENTS', 'GLX_LARGEST_PBUFFER',
|
||||
'GLX_WIDTH', 'GLX_HEIGHT', 'GLX_EVENT_MASK', 'GLX_DAMAGED', 'GLX_SAVED',
|
||||
'GLX_WINDOW', 'GLX_PBUFFER', 'GLX_PBUFFER_HEIGHT', 'GLX_PBUFFER_WIDTH',
|
||||
'GLX_RGBA_BIT', 'GLX_COLOR_INDEX_BIT', 'GLX_PBUFFER_CLOBBER_MASK',
|
||||
'GLX_SAMPLE_BUFFERS', 'GLX_SAMPLES', 'GLXContext', 'GLXPixmap', 'GLXDrawable',
|
||||
'GLXFBConfig', 'GLXFBConfigID', 'GLXContextID', 'GLXWindow', 'GLXPbuffer',
|
||||
'glXChooseVisual', 'glXCreateContext', 'glXDestroyContext', 'glXMakeCurrent',
|
||||
'glXCopyContext', 'glXSwapBuffers', 'glXCreateGLXPixmap',
|
||||
'glXDestroyGLXPixmap', 'glXQueryExtension', 'glXQueryVersion', 'glXIsDirect',
|
||||
'glXGetConfig', 'glXGetCurrentContext', 'glXGetCurrentDrawable', 'glXWaitGL',
|
||||
'glXWaitX', 'glXUseXFont', 'glXQueryExtensionsString', 'glXQueryServerString',
|
||||
'glXGetClientString', 'glXGetCurrentDisplay', 'glXChooseFBConfig',
|
||||
'glXGetFBConfigAttrib', 'glXGetFBConfigs', 'glXGetVisualFromFBConfig',
|
||||
'glXCreateWindow', 'glXDestroyWindow', 'glXCreatePixmap', 'glXDestroyPixmap',
|
||||
'glXCreatePbuffer', 'glXDestroyPbuffer', 'glXQueryDrawable',
|
||||
'glXCreateNewContext', 'glXMakeContextCurrent', 'glXGetCurrentReadDrawable',
|
||||
'glXQueryContext', 'glXSelectEvent', 'glXGetSelectedEvent',
|
||||
'PFNGLXGETFBCONFIGSPROC', 'PFNGLXCHOOSEFBCONFIGPROC',
|
||||
'PFNGLXGETFBCONFIGATTRIBPROC', 'PFNGLXGETVISUALFROMFBCONFIGPROC',
|
||||
'PFNGLXCREATEWINDOWPROC', 'PFNGLXDESTROYWINDOWPROC', 'PFNGLXCREATEPIXMAPPROC',
|
||||
'PFNGLXDESTROYPIXMAPPROC', 'PFNGLXCREATEPBUFFERPROC',
|
||||
'PFNGLXDESTROYPBUFFERPROC', 'PFNGLXQUERYDRAWABLEPROC',
|
||||
'PFNGLXCREATENEWCONTEXTPROC', 'PFNGLXMAKECONTEXTCURRENTPROC',
|
||||
'PFNGLXGETCURRENTREADDRAWABLEPROC', 'PFNGLXGETCURRENTDISPLAYPROC',
|
||||
'PFNGLXQUERYCONTEXTPROC', 'PFNGLXSELECTEVENTPROC',
|
||||
'PFNGLXGETSELECTEDEVENTPROC', 'GLX_ARB_get_proc_address', '__GLXextFuncPtr',
|
||||
'glXGetProcAddressARB', 'glXGetProcAddress', 'PFNGLXGETPROCADDRESSPROC',
|
||||
'glXAllocateMemoryNV', 'glXFreeMemoryNV', 'PFNGLXALLOCATEMEMORYNVPROC',
|
||||
'PFNGLXFREEMEMORYNVPROC', 'GLX_MESA_allocate_memory', 'glXAllocateMemoryMESA',
|
||||
'glXFreeMemoryMESA', 'glXGetMemoryOffsetMESA', 'PFNGLXALLOCATEMEMORYMESAPROC',
|
||||
'PFNGLXFREEMEMORYMESAPROC', 'PFNGLXGETMEMORYOFFSETMESAPROC',
|
||||
'GLX_ARB_render_texture', 'glXBindTexImageARB', 'glXReleaseTexImageARB',
|
||||
'glXDrawableAttribARB', 'GLX_MESA_swap_frame_usage', 'glXGetFrameUsageMESA',
|
||||
'glXBeginFrameTrackingMESA', 'glXEndFrameTrackingMESA',
|
||||
'glXQueryFrameTrackingMESA', 'PFNGLXGETFRAMEUSAGEMESAPROC',
|
||||
'PFNGLXBEGINFRAMETRACKINGMESAPROC', 'PFNGLXENDFRAMETRACKINGMESAPROC',
|
||||
'PFNGLXQUERYFRAMETRACKINGMESAPROC', 'GLX_MESA_swap_control',
|
||||
'glXSwapIntervalMESA', 'glXGetSwapIntervalMESA', 'PFNGLXSWAPINTERVALMESAPROC',
|
||||
'PFNGLXGETSWAPINTERVALMESAPROC', 'GLXPbufferClobberEvent', 'GLXEvent']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
||||
|
||||
# From glxproto.h
|
||||
@ -613,11 +640,6 @@ GLXBadCurrentDrawable = 11
|
||||
GLXBadWindow = 12
|
||||
|
||||
__all__ += ['GLXBadContext', 'GLXBadContextState', 'GLXBadDrawable',
|
||||
'GLXBadPixmap', 'GLXBadContextTag', 'GLXBadCurrentWindow',
|
||||
'GLXBadRenderRequest', 'GLXBadLargeRequest', 'GLXUnsupportedPrivateRequest',
|
||||
'GLXBadFBConfig', 'GLXBadPbuffer', 'GLXBadCurrentDrawable', 'GLXBadWindow']
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'GLXBadPixmap', 'GLXBadContextTag', 'GLXBadCurrentWindow',
|
||||
'GLXBadRenderRequest', 'GLXBadLargeRequest', 'GLXUnsupportedPrivateRequest',
|
||||
'GLXBadFBConfig', 'GLXBadPbuffer', 'GLXBadCurrentDrawable', 'GLXBadWindow']
|
@ -33,15 +33,14 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
import warnings
|
||||
from ctypes import *
|
||||
|
||||
from .base import Config, CanvasConfig, Context
|
||||
from pyglet import gl
|
||||
from pyglet.canvas.headless import HeadlessCanvas
|
||||
from pyglet.libs.egl import egl
|
||||
from pyglet.libs.egl.egl import *
|
||||
from pyglet import gl
|
||||
|
||||
from .base import Config, CanvasConfig, Context
|
||||
|
||||
_fake_gl_attributes = {
|
||||
'double_buffer': 0,
|
||||
@ -53,6 +52,7 @@ _fake_gl_attributes = {
|
||||
'accum_alpha_size': 0
|
||||
}
|
||||
|
||||
|
||||
class HeadlessConfig(Config):
|
||||
def match(self, canvas):
|
||||
if not isinstance(canvas, HeadlessCanvas):
|
@ -33,8 +33,6 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
from ctypes import *
|
||||
|
||||
import pyglet.lib
|
||||
from pyglet.gl.lib import missing_function, decorate_function
|
||||
|
@ -37,7 +37,6 @@ from ctypes import *
|
||||
|
||||
import pyglet.lib
|
||||
from pyglet.gl.lib import missing_function, decorate_function
|
||||
|
||||
from pyglet.util import asbytes
|
||||
|
||||
__all__ = ['link_GL', 'link_GLU', 'link_GLX']
|
388
libs/pyglet/gl/wgl.py
Normal file
388
libs/pyglet/gl/wgl.py
Normal file
@ -0,0 +1,388 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# pyglet
|
||||
# Copyright (c) 2006-2008 Alex Holkner
|
||||
# Copyright (c) 2008-2021 pyglet contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of pyglet nor the names of its
|
||||
# contributors may be used to endorse or promote products
|
||||
# derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
"""Wrapper for C:\cygwin\home\Alex\pyglet\tools\wgl.h
|
||||
|
||||
Generated by tools/gengl.py.
|
||||
Do not modify this file.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.lib import link_WGL as _link_function
|
||||
|
||||
if not _link_function:
|
||||
raise ImportError('opengl32.dll is not available.')
|
||||
|
||||
# BEGIN GENERATED CONTENT (do not edit below this line)
|
||||
|
||||
# This content is generated by tools/gengl.py.
|
||||
# Wrapper for C:\cygwin\home\Alex\pyglet\tools\wgl.h
|
||||
|
||||
|
||||
CONST = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:14
|
||||
GLenum = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:17
|
||||
GLboolean = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:18
|
||||
GLbitfield = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:19
|
||||
GLbyte = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:20
|
||||
GLshort = c_short # C:\cygwin\home\Alex\pyglet\tools\wgl.h:21
|
||||
GLint = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:22
|
||||
GLsizei = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:23
|
||||
GLubyte = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:24
|
||||
GLushort = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:25
|
||||
GLuint = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:26
|
||||
GLfloat = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:27
|
||||
GLclampf = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:28
|
||||
GLdouble = c_double # C:\cygwin\home\Alex\pyglet\tools\wgl.h:29
|
||||
GLclampd = c_double # C:\cygwin\home\Alex\pyglet\tools\wgl.h:30
|
||||
GLvoid = None # C:\cygwin\home\Alex\pyglet\tools\wgl.h:31
|
||||
INT8 = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:33
|
||||
PINT8 = c_char_p # C:\cygwin\home\Alex\pyglet\tools\wgl.h:33
|
||||
INT16 = c_short # C:\cygwin\home\Alex\pyglet\tools\wgl.h:34
|
||||
PINT16 = POINTER(c_short) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:34
|
||||
INT32 = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:35
|
||||
PINT32 = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:35
|
||||
UINT8 = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:36
|
||||
PUINT8 = POINTER(c_ubyte) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:36
|
||||
UINT16 = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:37
|
||||
PUINT16 = POINTER(c_ushort) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:37
|
||||
UINT32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:38
|
||||
PUINT32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:38
|
||||
LONG32 = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:39
|
||||
PLONG32 = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:39
|
||||
ULONG32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:40
|
||||
PULONG32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:40
|
||||
DWORD32 = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:41
|
||||
PDWORD32 = POINTER(c_uint) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:41
|
||||
INT64 = c_longlong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:42
|
||||
PINT64 = POINTER(c_longlong) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:42
|
||||
UINT64 = c_ulonglong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:43
|
||||
PUINT64 = POINTER(c_ulonglong) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:43
|
||||
VOID = None # C:\cygwin\home\Alex\pyglet\tools\wgl.h:45
|
||||
LPVOID = POINTER(None) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:45
|
||||
LPCSTR = c_char_p # C:\cygwin\home\Alex\pyglet\tools\wgl.h:46
|
||||
CHAR = c_char # C:\cygwin\home\Alex\pyglet\tools\wgl.h:47
|
||||
BYTE = c_ubyte # C:\cygwin\home\Alex\pyglet\tools\wgl.h:48
|
||||
WORD = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:49
|
||||
USHORT = c_ushort # C:\cygwin\home\Alex\pyglet\tools\wgl.h:49
|
||||
UINT = c_uint # C:\cygwin\home\Alex\pyglet\tools\wgl.h:50
|
||||
INT = c_int # C:\cygwin\home\Alex\pyglet\tools\wgl.h:51
|
||||
INT_PTR = POINTER(c_int) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:51
|
||||
BOOL = c_long # C:\cygwin\home\Alex\pyglet\tools\wgl.h:52
|
||||
LONG = c_long # C:\cygwin\home\Alex\pyglet\tools\wgl.h:53
|
||||
DWORD = c_ulong # C:\cygwin\home\Alex\pyglet\tools\wgl.h:54
|
||||
FLOAT = c_float # C:\cygwin\home\Alex\pyglet\tools\wgl.h:55
|
||||
COLORREF = DWORD # C:\cygwin\home\Alex\pyglet\tools\wgl.h:56
|
||||
LPCOLORREF = POINTER(DWORD) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:56
|
||||
HANDLE = POINTER(None) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:58
|
||||
HGLRC = HANDLE # C:\cygwin\home\Alex\pyglet\tools\wgl.h:60
|
||||
HDC = HANDLE # C:\cygwin\home\Alex\pyglet\tools\wgl.h:61
|
||||
PROC = CFUNCTYPE(INT_PTR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:63
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:65
|
||||
wglCopyContext = _link_function('wglCopyContext', BOOL, [HGLRC, HGLRC, UINT], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:66
|
||||
wglCreateContext = _link_function('wglCreateContext', HGLRC, [HDC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:67
|
||||
wglCreateLayerContext = _link_function('wglCreateLayerContext', HGLRC, [HDC, c_int], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:68
|
||||
wglDeleteContext = _link_function('wglDeleteContext', BOOL, [HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:69
|
||||
wglGetCurrentContext = _link_function('wglGetCurrentContext', HGLRC, [], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:70
|
||||
wglGetCurrentDC = _link_function('wglGetCurrentDC', HDC, [], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:71
|
||||
wglGetProcAddress = _link_function('wglGetProcAddress', PROC, [LPCSTR], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:72
|
||||
wglMakeCurrent = _link_function('wglMakeCurrent', BOOL, [HDC, HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:73
|
||||
wglShareLists = _link_function('wglShareLists', BOOL, [HGLRC, HGLRC], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:74
|
||||
wglUseFontBitmapsA = _link_function('wglUseFontBitmapsA', BOOL, [HDC, DWORD, DWORD, DWORD], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:75
|
||||
wglUseFontBitmapsW = _link_function('wglUseFontBitmapsW', BOOL, [HDC, DWORD, DWORD, DWORD], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:76
|
||||
SwapBuffers = _link_function('SwapBuffers', BOOL, [HDC], None)
|
||||
|
||||
|
||||
class struct__POINTFLOAT(Structure):
|
||||
__slots__ = [
|
||||
'x',
|
||||
'y',
|
||||
]
|
||||
|
||||
|
||||
struct__POINTFLOAT._fields_ = [
|
||||
('x', FLOAT),
|
||||
('y', FLOAT),
|
||||
]
|
||||
|
||||
POINTFLOAT = struct__POINTFLOAT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:81
|
||||
PPOINTFLOAT = POINTER(struct__POINTFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:81
|
||||
|
||||
|
||||
class struct__GLYPHMETRICSFLOAT(Structure):
|
||||
__slots__ = [
|
||||
'gmfBlackBoxX',
|
||||
'gmfBlackBoxY',
|
||||
'gmfptGlyphOrigin',
|
||||
'gmfCellIncX',
|
||||
'gmfCellIncY',
|
||||
]
|
||||
|
||||
|
||||
struct__GLYPHMETRICSFLOAT._fields_ = [
|
||||
('gmfBlackBoxX', FLOAT),
|
||||
('gmfBlackBoxY', FLOAT),
|
||||
('gmfptGlyphOrigin', POINTFLOAT),
|
||||
('gmfCellIncX', FLOAT),
|
||||
('gmfCellIncY', FLOAT),
|
||||
]
|
||||
|
||||
GLYPHMETRICSFLOAT = struct__GLYPHMETRICSFLOAT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
PGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
LPGLYPHMETRICSFLOAT = POINTER(struct__GLYPHMETRICSFLOAT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:89
|
||||
WGL_FONT_LINES = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:91
|
||||
WGL_FONT_POLYGONS = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:92
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:93
|
||||
wglUseFontOutlinesA = _link_function('wglUseFontOutlinesA', BOOL, [HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:95
|
||||
wglUseFontOutlinesW = _link_function('wglUseFontOutlinesW', BOOL, [HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, c_int, LPGLYPHMETRICSFLOAT], None)
|
||||
|
||||
|
||||
class struct_tagLAYERPLANEDESCRIPTOR(Structure):
|
||||
__slots__ = [
|
||||
'nSize',
|
||||
'nVersion',
|
||||
'dwFlags',
|
||||
'iPixelType',
|
||||
'cColorBits',
|
||||
'cRedBits',
|
||||
'cRedShift',
|
||||
'cGreenBits',
|
||||
'cGreenShift',
|
||||
'cBlueBits',
|
||||
'cBlueShift',
|
||||
'cAlphaBits',
|
||||
'cAlphaShift',
|
||||
'cAccumBits',
|
||||
'cAccumRedBits',
|
||||
'cAccumGreenBits',
|
||||
'cAccumBlueBits',
|
||||
'cAccumAlphaBits',
|
||||
'cDepthBits',
|
||||
'cStencilBits',
|
||||
'cAuxBuffers',
|
||||
'iLayerPlane',
|
||||
'bReserved',
|
||||
'crTransparent',
|
||||
]
|
||||
|
||||
|
||||
struct_tagLAYERPLANEDESCRIPTOR._fields_ = [
|
||||
('nSize', WORD),
|
||||
('nVersion', WORD),
|
||||
('dwFlags', DWORD),
|
||||
('iPixelType', BYTE),
|
||||
('cColorBits', BYTE),
|
||||
('cRedBits', BYTE),
|
||||
('cRedShift', BYTE),
|
||||
('cGreenBits', BYTE),
|
||||
('cGreenShift', BYTE),
|
||||
('cBlueBits', BYTE),
|
||||
('cBlueShift', BYTE),
|
||||
('cAlphaBits', BYTE),
|
||||
('cAlphaShift', BYTE),
|
||||
('cAccumBits', BYTE),
|
||||
('cAccumRedBits', BYTE),
|
||||
('cAccumGreenBits', BYTE),
|
||||
('cAccumBlueBits', BYTE),
|
||||
('cAccumAlphaBits', BYTE),
|
||||
('cDepthBits', BYTE),
|
||||
('cStencilBits', BYTE),
|
||||
('cAuxBuffers', BYTE),
|
||||
('iLayerPlane', BYTE),
|
||||
('bReserved', BYTE),
|
||||
('crTransparent', COLORREF),
|
||||
]
|
||||
|
||||
LAYERPLANEDESCRIPTOR = struct_tagLAYERPLANEDESCRIPTOR # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
PLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
LPLAYERPLANEDESCRIPTOR = POINTER(struct_tagLAYERPLANEDESCRIPTOR) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:125
|
||||
LPD_DOUBLEBUFFER = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:128
|
||||
LPD_STEREO = 2 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:129
|
||||
LPD_SUPPORT_GDI = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:130
|
||||
LPD_SUPPORT_OPENGL = 32 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:131
|
||||
LPD_SHARE_DEPTH = 64 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:132
|
||||
LPD_SHARE_STENCIL = 128 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:133
|
||||
LPD_SHARE_ACCUM = 256 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:134
|
||||
LPD_SWAP_EXCHANGE = 512 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:135
|
||||
LPD_SWAP_COPY = 1024 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:136
|
||||
LPD_TRANSPARENT = 4096 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:137
|
||||
LPD_TYPE_RGBA = 0 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:139
|
||||
LPD_TYPE_COLORINDEX = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:140
|
||||
WGL_SWAP_MAIN_PLANE = 1 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:143
|
||||
WGL_SWAP_OVERLAY1 = 2 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:144
|
||||
WGL_SWAP_OVERLAY2 = 4 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:145
|
||||
WGL_SWAP_OVERLAY3 = 8 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:146
|
||||
WGL_SWAP_OVERLAY4 = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:147
|
||||
WGL_SWAP_OVERLAY5 = 32 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:148
|
||||
WGL_SWAP_OVERLAY6 = 64 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:149
|
||||
WGL_SWAP_OVERLAY7 = 128 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:150
|
||||
WGL_SWAP_OVERLAY8 = 256 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:151
|
||||
WGL_SWAP_OVERLAY9 = 512 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:152
|
||||
WGL_SWAP_OVERLAY10 = 1024 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:153
|
||||
WGL_SWAP_OVERLAY11 = 2048 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:154
|
||||
WGL_SWAP_OVERLAY12 = 4096 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:155
|
||||
WGL_SWAP_OVERLAY13 = 8192 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:156
|
||||
WGL_SWAP_OVERLAY14 = 16384 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:157
|
||||
WGL_SWAP_OVERLAY15 = 32768 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:158
|
||||
WGL_SWAP_UNDERLAY1 = 65536 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:159
|
||||
WGL_SWAP_UNDERLAY2 = 131072 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:160
|
||||
WGL_SWAP_UNDERLAY3 = 262144 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:161
|
||||
WGL_SWAP_UNDERLAY4 = 524288 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:162
|
||||
WGL_SWAP_UNDERLAY5 = 1048576 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:163
|
||||
WGL_SWAP_UNDERLAY6 = 2097152 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:164
|
||||
WGL_SWAP_UNDERLAY7 = 4194304 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:165
|
||||
WGL_SWAP_UNDERLAY8 = 8388608 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:166
|
||||
WGL_SWAP_UNDERLAY9 = 16777216 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:167
|
||||
WGL_SWAP_UNDERLAY10 = 33554432 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:168
|
||||
WGL_SWAP_UNDERLAY11 = 67108864 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:169
|
||||
WGL_SWAP_UNDERLAY12 = 134217728 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:170
|
||||
WGL_SWAP_UNDERLAY13 = 268435456 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:171
|
||||
WGL_SWAP_UNDERLAY14 = 536870912 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:172
|
||||
WGL_SWAP_UNDERLAY15 = 1073741824 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:173
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:175
|
||||
wglDescribeLayerPlane = _link_function('wglDescribeLayerPlane', BOOL, [HDC, c_int, c_int, UINT, LPLAYERPLANEDESCRIPTOR], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:177
|
||||
wglSetLayerPaletteEntries = _link_function('wglSetLayerPaletteEntries', c_int, [HDC, c_int, c_int, c_int, POINTER(COLORREF)], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:179
|
||||
wglGetLayerPaletteEntries = _link_function('wglGetLayerPaletteEntries', c_int, [HDC, c_int, c_int, c_int, POINTER(COLORREF)], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:181
|
||||
wglRealizeLayerPalette = _link_function('wglRealizeLayerPalette', BOOL, [HDC, c_int, BOOL], None)
|
||||
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:182
|
||||
wglSwapLayerBuffers = _link_function('wglSwapLayerBuffers', BOOL, [HDC, UINT], None)
|
||||
|
||||
|
||||
class struct__WGLSWAP(Structure):
|
||||
__slots__ = [
|
||||
'hdc',
|
||||
'uiFlags',
|
||||
]
|
||||
|
||||
|
||||
struct__WGLSWAP._fields_ = [
|
||||
('hdc', HDC),
|
||||
('uiFlags', UINT),
|
||||
]
|
||||
|
||||
WGLSWAP = struct__WGLSWAP # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
PWGLSWAP = POINTER(struct__WGLSWAP) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
LPWGLSWAP = POINTER(struct__WGLSWAP) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:188
|
||||
WGL_SWAPMULTIPLE_MAX = 16 # C:\cygwin\home\Alex\pyglet\tools\wgl.h:190
|
||||
# C:\cygwin\home\Alex\pyglet\tools\wgl.h:192
|
||||
wglSwapMultipleBuffers = _link_function('wglSwapMultipleBuffers', DWORD, [UINT, POINTER(WGLSWAP)], None)
|
||||
|
||||
|
||||
class struct_tagRECT(Structure):
|
||||
__slots__ = [
|
||||
'left',
|
||||
'top',
|
||||
'right',
|
||||
'bottom',
|
||||
]
|
||||
|
||||
|
||||
struct_tagRECT._fields_ = [
|
||||
('left', LONG),
|
||||
('top', LONG),
|
||||
('right', LONG),
|
||||
('bottom', LONG),
|
||||
]
|
||||
|
||||
RECT = struct_tagRECT # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
PRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
NPRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
LPRECT = POINTER(struct_tagRECT) # C:\cygwin\home\Alex\pyglet\tools\wgl.h:200
|
||||
|
||||
__all__ = ['CONST', 'GLenum', 'GLboolean', 'GLbitfield', 'GLbyte', 'GLshort',
|
||||
'GLint', 'GLsizei', 'GLubyte', 'GLushort', 'GLuint', 'GLfloat', 'GLclampf',
|
||||
'GLdouble', 'GLclampd', 'GLvoid', 'INT8', 'PINT8', 'INT16', 'PINT16', 'INT32',
|
||||
'PINT32', 'UINT8', 'PUINT8', 'UINT16', 'PUINT16', 'UINT32', 'PUINT32',
|
||||
'LONG32', 'PLONG32', 'ULONG32', 'PULONG32', 'DWORD32', 'PDWORD32', 'INT64',
|
||||
'PINT64', 'UINT64', 'PUINT64', 'VOID', 'LPVOID', 'LPCSTR', 'CHAR', 'BYTE',
|
||||
'WORD', 'USHORT', 'UINT', 'INT', 'INT_PTR', 'BOOL', 'LONG', 'DWORD', 'FLOAT',
|
||||
'COLORREF', 'LPCOLORREF', 'HANDLE', 'HGLRC', 'HDC', 'PROC', 'wglCopyContext',
|
||||
'wglCreateContext', 'wglCreateLayerContext', 'wglDeleteContext',
|
||||
'wglGetCurrentContext', 'wglGetCurrentDC', 'wglGetProcAddress',
|
||||
'wglMakeCurrent', 'wglShareLists', 'wglUseFontBitmapsA', 'wglUseFontBitmapsW',
|
||||
'SwapBuffers', 'POINTFLOAT', 'PPOINTFLOAT', 'GLYPHMETRICSFLOAT',
|
||||
'PGLYPHMETRICSFLOAT', 'LPGLYPHMETRICSFLOAT', 'WGL_FONT_LINES',
|
||||
'WGL_FONT_POLYGONS', 'wglUseFontOutlinesA', 'wglUseFontOutlinesW',
|
||||
'LAYERPLANEDESCRIPTOR', 'PLAYERPLANEDESCRIPTOR', 'LPLAYERPLANEDESCRIPTOR',
|
||||
'LPD_DOUBLEBUFFER', 'LPD_STEREO', 'LPD_SUPPORT_GDI', 'LPD_SUPPORT_OPENGL',
|
||||
'LPD_SHARE_DEPTH', 'LPD_SHARE_STENCIL', 'LPD_SHARE_ACCUM',
|
||||
'LPD_SWAP_EXCHANGE', 'LPD_SWAP_COPY', 'LPD_TRANSPARENT', 'LPD_TYPE_RGBA',
|
||||
'LPD_TYPE_COLORINDEX', 'WGL_SWAP_MAIN_PLANE', 'WGL_SWAP_OVERLAY1',
|
||||
'WGL_SWAP_OVERLAY2', 'WGL_SWAP_OVERLAY3', 'WGL_SWAP_OVERLAY4',
|
||||
'WGL_SWAP_OVERLAY5', 'WGL_SWAP_OVERLAY6', 'WGL_SWAP_OVERLAY7',
|
||||
'WGL_SWAP_OVERLAY8', 'WGL_SWAP_OVERLAY9', 'WGL_SWAP_OVERLAY10',
|
||||
'WGL_SWAP_OVERLAY11', 'WGL_SWAP_OVERLAY12', 'WGL_SWAP_OVERLAY13',
|
||||
'WGL_SWAP_OVERLAY14', 'WGL_SWAP_OVERLAY15', 'WGL_SWAP_UNDERLAY1',
|
||||
'WGL_SWAP_UNDERLAY2', 'WGL_SWAP_UNDERLAY3', 'WGL_SWAP_UNDERLAY4',
|
||||
'WGL_SWAP_UNDERLAY5', 'WGL_SWAP_UNDERLAY6', 'WGL_SWAP_UNDERLAY7',
|
||||
'WGL_SWAP_UNDERLAY8', 'WGL_SWAP_UNDERLAY9', 'WGL_SWAP_UNDERLAY10',
|
||||
'WGL_SWAP_UNDERLAY11', 'WGL_SWAP_UNDERLAY12', 'WGL_SWAP_UNDERLAY13',
|
||||
'WGL_SWAP_UNDERLAY14', 'WGL_SWAP_UNDERLAY15', 'wglDescribeLayerPlane',
|
||||
'wglSetLayerPaletteEntries', 'wglGetLayerPaletteEntries',
|
||||
'wglRealizeLayerPalette', 'wglSwapLayerBuffers', 'WGLSWAP', 'PWGLSWAP',
|
||||
'LPWGLSWAP', 'WGL_SWAPMULTIPLE_MAX', 'wglSwapMultipleBuffers', 'RECT',
|
||||
'PRECT', 'NPRECT', 'LPRECT']
|
||||
# END GENERATED CONTENT (do not edit above this line)
|
@ -37,13 +37,12 @@
|
||||
implementation.
|
||||
"""
|
||||
|
||||
from ctypes import *
|
||||
import warnings
|
||||
from ctypes import *
|
||||
|
||||
from pyglet.gl.lib import MissingFunctionException
|
||||
from pyglet.gl.gl import *
|
||||
from pyglet.gl import gl_info
|
||||
from pyglet.gl.wgl import *
|
||||
from pyglet.gl.gl import *
|
||||
from pyglet.gl.lib import MissingFunctionException
|
||||
from pyglet.gl.wglext_arb import *
|
||||
from pyglet.util import asstr
|
||||
|
@ -33,19 +33,18 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
from pyglet.canvas.win32 import Win32Canvas
|
||||
from .base import Config, CanvasConfig, Context
|
||||
|
||||
from pyglet import gl
|
||||
from pyglet.canvas.win32 import Win32Canvas
|
||||
from pyglet.gl import gl_info
|
||||
from pyglet.gl import wgl
|
||||
from pyglet.gl import wglext_arb
|
||||
from pyglet.gl import wgl_info
|
||||
|
||||
from pyglet.libs.win32 import _user32, _kernel32, _gdi32
|
||||
from pyglet.gl import wglext_arb
|
||||
from pyglet.libs.win32 import _gdi32
|
||||
from pyglet.libs.win32.constants import *
|
||||
from pyglet.libs.win32.types import *
|
||||
|
||||
from .base import Config, CanvasConfig, Context
|
||||
|
||||
|
||||
class Win32Config(Config):
|
||||
def match(self, canvas):
|
||||
@ -103,12 +102,12 @@ class Win32Config(Config):
|
||||
if pf:
|
||||
return [Win32CanvasConfig(canvas, pf, self)]
|
||||
else:
|
||||
return []
|
||||
return []
|
||||
|
||||
def _get_arb_pixel_format_matching_configs(self, canvas):
|
||||
"""Get configs using the WGL_ARB_pixel_format extension.
|
||||
This method assumes a (dummy) GL context is already created."""
|
||||
|
||||
|
||||
# Check for required extensions
|
||||
if self.sample_buffers or self.samples:
|
||||
if not gl_info.have_extension('GL_ARB_multisample'):
|
||||
@ -120,7 +119,7 @@ class Win32Config(Config):
|
||||
attr = Win32CanvasConfigARB.attribute_ids.get(name, None)
|
||||
if attr and value is not None:
|
||||
attrs.extend([attr, int(value)])
|
||||
attrs.append(0)
|
||||
attrs.append(0)
|
||||
attrs = (c_int * len(attrs))(*attrs)
|
||||
|
||||
pformats = (c_int * 16)()
|
||||
@ -190,12 +189,12 @@ class Win32CanvasConfigARB(CanvasConfig):
|
||||
def __init__(self, canvas, pf, config):
|
||||
super(Win32CanvasConfigARB, self).__init__(canvas, config)
|
||||
self._pf = pf
|
||||
|
||||
|
||||
names = list(self.attribute_ids.keys())
|
||||
attrs = list(self.attribute_ids.values())
|
||||
attrs = (c_int * len(attrs))(*attrs)
|
||||
values = (c_int * len(attrs))()
|
||||
|
||||
|
||||
wglext_arb.wglGetPixelFormatAttribivARB(canvas.hdc, pf, 0, len(attrs), attrs, values)
|
||||
|
||||
for name, value in zip(names, values):
|
@ -36,14 +36,15 @@
|
||||
import warnings
|
||||
from ctypes import *
|
||||
|
||||
from .base import Config, CanvasConfig, Context
|
||||
from pyglet import gl
|
||||
from pyglet.canvas.xlib import XlibCanvas
|
||||
from pyglet.gl import glx
|
||||
from pyglet.gl import glxext_arb
|
||||
from pyglet.gl import glx_info
|
||||
from pyglet.gl import glxext_arb
|
||||
from pyglet.gl import glxext_mesa
|
||||
from pyglet.gl import lib
|
||||
from pyglet import gl
|
||||
|
||||
from .base import Config, CanvasConfig, Context
|
||||
|
||||
|
||||
class XlibConfig(Config):
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user