diff -Nru pyopengl-3.0.0~b6/debian/changelog pyopengl-3.0.0/debian/changelog --- pyopengl-3.0.0~b6/debian/changelog 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/changelog 2009-05-07 02:24:08.000000000 +0100 @@ -1,3 +1,31 @@ +pyopengl (3.0.0-1ubuntu1) jaunty; urgency=low + + * New upstream release + + -- Robert Ancell Thu, 07 May 2009 10:01:58 +1000 + +pyopengl (3.0.0~c1-1) unstable; urgency=low + + * New upstream release (Closes: #498403) + * debian/compat + - bumped debhelper compatibility level to 7 + * debian/control, debian/rules + - Switched to python-support + - bumped standards version to 3.8.1, no changes necessary + - removed python-opengl-doc, documentation is not distributed anymore + by upstream. + - removed build dependency on python-setuptools and run-time + dependency on python-pkg-resource, not needed anymore + - dropped build dependencies on all GL libraries, not needed anymore + because documentation is removed + - removed dependencies on dpatch + * debian/preinst + - make sure pycentral files are removed properly + * debian/patches/00list + - deactivated patches + + -- Torsten Marek Fri, 27 Mar 2009 15:11:57 +0100 + pyopengl (3.0.0~b6-3) unstable; urgency=low [ Piotr Ożarowski ] diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/compat /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/compat --- pyopengl-3.0.0~b6/debian/compat 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/compat 2009-05-07 02:24:08.000000000 +0100 @@ -1 +1 @@ -5 +7 diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/control /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/control --- pyopengl-3.0.0~b6/debian/control 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/control 2009-05-07 02:24:08.000000000 +0100 @@ -3,17 +3,15 @@ Priority: optional Maintainer: Debian Python Modules Team Uploaders: Torsten Marek -Build-Depends-Indep: python-setuptools (>= 0.6b3), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, libgle3 -Build-Depends: debhelper (>= 5.0.38), cdbs (>= 0.4.43), python-dev (>= 2.3.5-11), python-central (>= 0.6.8), dpatch -Standards-Version: 3.8.0 +Build-Depends: debhelper (>= 7.0.1), cdbs (>= 0.4.43), python-support, python-dev (>= 2.3.5-11) +Standards-Version: 3.8.1 Homepage: http://pyopengl.sourceforge.net -XS-Python-Version: >= 2.4 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyopengl/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/pyopengl/trunk/ Package: python-opengl Architecture: all -Depends: ${python:Depends}, python-ctypes | python (>= 2.5), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, python-pkg-resources +Depends: ${python:Depends}, python-ctypes | python (>= 2.5), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, ${misc:Depends} Suggests: python-tk, python-numpy, libgle3 XB-Python-Version: ${python:Versions} Description: Python bindings to OpenGL @@ -22,12 +20,3 @@ GL, GLU, GLE, and GLUT libraries. The library can be used with the Tkinter, wxPython, FxPy, and Win32GUI windowing libraries (or almost any Python windowing library which can provide an OpenGL context). - -Package: python-opengl-doc -Architecture: all -Section: doc -Description: Documentation for PyOpenGL - PyOpenGL is a cross-platform open source Python binding to the standard - OpenGL API providing 2D and 3D graphic drawing. - . - This package contains documentation for developers using PyOpenGL. diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/control.in /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/control.in --- pyopengl-3.0.0~b6/debian/control.in 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/control.in 2009-05-07 02:24:08.000000000 +0100 @@ -3,17 +3,15 @@ Priority: optional Maintainer: Debian Python Modules Team Uploaders: Torsten Marek -Build-Depends-Indep: python-setuptools (>= 0.6b3), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, libgle3 -Build-Depends: @cdbs@, python-all-dev (>= 2.3.5-11) -Standards-Version: 3.8.0 +Build-Depends: @cdbs@, python-dev (>= 2.3.5-11) +Standards-Version: 3.8.1 Homepage: http://pyopengl.sourceforge.net -XS-Python-Version: >= 2.4 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyopengl/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/pyopengl/trunk/ Package: python-opengl Architecture: all -Depends: ${python:Depends}, python-ctypes | python (>= 2.5), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, python-pkg-resources +Depends: ${python:Depends}, python-ctypes | python (>= 2.5), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, freeglut3, ${misc:Depends} Suggests: python-tk, python-numpy, libgle3 XB-Python-Version: ${python:Versions} Description: Python bindings to OpenGL @@ -22,12 +20,3 @@ GL, GLU, GLE, and GLUT libraries. The library can be used with the Tkinter, wxPython, FxPy, and Win32GUI windowing libraries (or almost any Python windowing library which can provide an OpenGL context). - -Package: python-opengl-doc -Architecture: all -Section: doc -Description: Documentation for PyOpenGL - PyOpenGL is a cross-platform open source Python binding to the standard - OpenGL API providing 2D and 3D graphic drawing. - . - This package contains documentation for developers using PyOpenGL. diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/patches/00list /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/patches/00list --- pyopengl-3.0.0~b6/debian/patches/00list 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/patches/00list 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -01_no_ctypes_dep -03_tk_fix diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/preinst /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/preinst --- pyopengl-3.0.0~b6/debian/preinst 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/debian/preinst 2009-05-07 02:24:08.000000000 +0100 @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 3.0.0~c1-1; then + pycentral pkgremove python-opengl +fi + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/python-opengl-doc.doc-base /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/python-opengl-doc.doc-base --- pyopengl-3.0.0~b6/debian/python-opengl-doc.doc-base 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/python-opengl-doc.doc-base 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -Document: pyopengl -Title: PyOpenGL API Documentation -Author: Micheal C. Fletcher -Abstract: A ctypes-based OpenGL wrapper for Python - This is the PyOpenGL 3.0.0 tree, it attempts to provide - a largely compatible API for code written with the - PyOpenGL 2.x series using the ctypes foreign function - interface system. -Section: Programming/Python - -Format: HTML -Index: /usr/share/doc/python-opengl-doc/documentation/pydoc/OpenGL.html -Files: /usr/share/doc/python-opengl-doc/documentation/pydoc/*.html diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/python-opengl-doc.docs /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/python-opengl-doc.docs --- pyopengl-3.0.0~b6/debian/python-opengl-doc.docs 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/python-opengl-doc.docs 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -documentation/ diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/pyversions /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/pyversions --- pyopengl-3.0.0~b6/debian/pyversions 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/debian/pyversions 2009-05-07 02:24:08.000000000 +0100 @@ -0,0 +1 @@ +2.4- diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/debian/rules /tmp/6jwPQaot5C/pyopengl-3.0.0/debian/rules --- pyopengl-3.0.0~b6/debian/rules 2009-05-07 02:24:08.000000000 +0100 +++ pyopengl-3.0.0/debian/rules 2009-05-07 02:24:08.000000000 +0100 @@ -1,25 +1,8 @@ #!/usr/bin/make -f -DEB_PYTHON_SYSTEM=pycentral +DEB_PYTHON_SYSTEM=pysupport include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk -include /usr/share/cdbs/1/rules/dpatch.mk -# needed to use the dpatch tools (like dpatch-edit-patch) -include /usr/share/dpatch/dpatch.make - -DEB_DESTDIR=debian/python-opengl -PYVER=$(shell pyversions -vd) - -# Install egg-info directories -DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed - -pre-build:: - chmod a-x PyOpenGL.egg-info/* - -install/python-opengl-doc:: - cd documentation/pydoc/ && PYTHONPATH="../.." python$(PYVER) builddocs.py - -clean:: - -sed -i -e '/setup\.cfg/d' PyOpenGL.egg-info/SOURCES.txt - -rm -f documentation/pydoc/*.html +#include /usr/share/cdbs/1/rules/dpatch.mk +#include /usr/share/dpatch/dpatch.make diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/buildepydoc.py /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/buildepydoc.py --- pyopengl-3.0.0~b6/documentation/buildepydoc.py 2006-09-16 20:35:22.000000000 +0100 +++ pyopengl-3.0.0/documentation/buildepydoc.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,62 +0,0 @@ -from ctypes import _CFuncPtr -from OpenGL import wrapper -def isCtypesFunction( target ): - """Is this a ctypes function pointer?""" - return isinstance( target, _CFuncPtr ) -def isWrapperFunction( target ): - """Is this an OpenGL wrapper instance?""" - return isinstance( target, wrapper.Wrapper ) - -from epydoc import docintrospecter, apidoc, markup -def ctypesIntrospecter(value, value_doc): - """Add ctypes documentation to the given value's documentation""" - value_doc.specialize_to(apidoc.RoutineDoc) - value_doc.is_imported = False - value_doc.is_public = True - if hasattr( value, 'argNames' ): - value_doc.posargs = value.argNames - value_doc.posarg_defaults = [None] * len(value.argNames) - if hasattr( value, '__doc__' ): - value_doc.docstring = docintrospecter.get_docstring(value) - value_doc.return_type = markup.parse( str(value.restype) ) - - return value_doc - -def wrapperInstrospecter( value, value_doc ): - """Add wrapper-specific documentation to the value_doc - - Wrappers should have at least this information: - - pyConverters - cConverters - cResolvers - storeValues - returnValues - - wrappedOperation signature - - and each of the registered values should be providing - the information required to determine what they are - actually doing... - """ - value_doc.specialize_to(apidoc.RoutineDoc) - value_doc.is_imported = False - value_doc.is_public = True - if hasattr( value,' pyConverterNames' ): - value_doc.posargs = value.pyConverterNames - else: - value_doc.posargs = value.wrappedOperation.argNames - value_doc.posarg_defaults = [None]*len(value_doc.posargs) - if hasattr( value, '__doc__' ): - value_doc.docstring = docintrospecter.get_docstring(value) - return value_doc - -docintrospecter.register_introspecter( - isCtypesFunction, ctypesIntrospecter, -) -docintrospecter.register_introspecter( - isWrapperFunction, wrapperInstrospecter, -) - -from epydoc.cli import cli -cli() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/development.html /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/development.html --- pyopengl-3.0.0~b6/documentation/development.html 2008-09-08 13:25:20.000000000 +0100 +++ pyopengl-3.0.0/documentation/development.html 1970-01-01 01:00:00.000000000 +0100 @@ -1,4332 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Contributing to OpenGL-ctypes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Contributing -to OpenGL-ctypes
- - - - - - - - - - - -

- - - - - - - - - - - -

This -document describes how to get started with -contributing to the OpenGL-ctypes project, the project which is creating the PyOpenGL 3.0.0 release.  It outlines the -basic -architecture of the system and how to begin work on the system for a -new developer.  It assumes familiarity with Python, Numpy and -ctypes.
- - - - - - - - - - - -

- - - - - - - - - - - -

The History of OpenGL-ctypes
- - - - - - - - - - - -

- - - - - - - - - - - -

OpenGL-ctypes is a -re-implementation of the OpenGL bindings -for Python.  Historically there were two other mainline -implementations of OpenGL for Python.

- - - - - - - - - - - -
    - - - - - - - - - - - -
  • PyOpenGL up to 1.x was -written as a C extension using the raw -Python C API.  It was characterised by a very intuitive -"Pythonic" -API that just seemed to do what you expected it to do (in most cases) -because the authors had actually sat down and written the code for -every function.  Maintenance and extension was extremely hard, -and -support for extensions was minimal or non-existant.  This is -the -code base originally created by David Ascher et. al.  This -code -base has been entirely superceded by PyOpenGL 2.x.
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
  • PyOpenGL 2.x was written as -a set of SWIG typemaps (a.k.a. -PyOpenGLSWIG.  The code was basically a huge set of nested -macro -expansions, SWIG pattern matching rules and a heavily hacked distutils -script that semi-automatically turned OpenGL headers into usable C -extensions.  PyOpenGL 2.x had far greater support for -extensions -and far better coverage than the 1.x series, but it was extremely -difficult to modify or debug the system.  It was also -notoriously -difficult to compile/install.  This is the codebase created by -Tarn Weisner Burton.
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
- - - - - - - - - - - -

OpenGL-ctypes is intended to -become the 3.x release of "PyOpenGL", -that is, it will eventually replace the 2.x stream as the "standard" -PyOpenGL.  However, to get there, it needs developer -attention.  In particular, it needs some porting work for new -architectures, testing and debugging on all architectures, and lots of -work on extension development.  If you are interested in the -rationale for OpenGL-ctypes, see this posting, -which outlines -why the reimplementation is being undertaken.

- - - - - - - - - - - -

Getting the Code

- - - - - - - - - - - -

OpenGL-ctypes is developed and -maintained within the PyOpenGL CVS repository.  To check out -the current version of OpenGL-ctypes:

- - - - - - - - - - - -
cvs -z3 -d:pserver:anonymous@pyopengl.cvs.sourceforge.net:/cvsroot/pyopengl co -P OpenGL-ctypes
- - - - - - - - - - - -

You can install the checkout to your path for further development as -follows (from the OpenGL-ctypes checkout directory):
- - - - - - - - - - - -

- - - - - - - - - - - -
./setup.py develop --install-dir=~/YOUR-WORKING-DIRECTORY-ON-PYTHONPATH-HERE
- - - - - - - - - - - -

As of 3.0.0a3 OpenGL-ctypes is dependant on the setuptools -package.  You cannot run without the setuptools support, as it is -used to provide the plugin mechanism used by array data-type plugin -mechanism.  You likely already have setuptools installed, but if not, download the ez_setup.py script and run it to install the package.  You will probably want to install numpy as well, and in case you missed it, ctypes -is a dependency (for Python 2.4 and below), it is declared in the -setuptools dependencies for version 3.0.0a5 and above so that it should -automatically be installed for you when you "develop" your PyOpenGL -working directory.
- - - - - - - - - - - -

- - - - - - - - - - - -

When you make a change, run cvs -diff on the OpenGL-ctypes -directory to produce a patch file and upload it to the PyOpenGL Patch Tracker as an attachment.  I prefer "context" diffs (cvs -diff -c) for contributed -code, as it makes it easier to see where the code fits in.  -That said, I'm happy to get code in any readily integrated format.  We discuss PyOpenGL development on the PyOpenGL-dev mailing list.

- - - - - - - - - - - -

The Architecture of -OpenGL-ctypes

- - - - - - - - - - - -

Here are the loose design goals -of OpenGL-ctypes:

- - - - - - - - - - - -
    - - - - - - - - - - - -
  • Access to the all of -OpenGL's functionality
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Allow access to OpenGL 1.x -and 2.x functionality
    • - - - - - - - - - - - -
    • Access to modern extensions
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Backward compatability with -PyOpenGL code
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Not a fanatic requirement, -but I want 90%+ of code to run -without changes and 99% to run with only minor changes such as one -would expect from a major release of a large package
    • - - - - - - - - - - - -
    • Insulate the PyOpenGL -developer from the implementation (ctypes) so that code can continue to -work across multiple implementations
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Ease of development
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • The whole point of this is -to make it possible for more people -to work on the system
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Play nicely with others
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Alternate Python -implementations (PyPy, IronPython)
    • - - - - - - - - - - - -
    • GUI libraries
    • - - - - - - - - - - - -
    • Numeric libraries
    • - - - - - - - - - - - -
    • Threading behaviour
    • - - - - - - - - - - - -
    • Multimedia libraries
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Flexibility and robustness
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Graceful degradation in -the face of missing functionality
    • - - - - - - - - - - - -
    • Ease of debugging
    • - - - - - - - - - - - -
    • Informative error reports
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Ease of installation
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Portability (note, we are -limited to ctypes ported platforms, -but that should grow faster than we grow, given that ctypes is now part -of Python)
      - - - - - - - - - - - -
    • - - - - - - - - - - - -
    • Simplicity of installation -process (no hacked up distutils!)
    • - - - - - - - - - - - -
    • Use of eggs and easy_install
    • - - - - - - - - - - - -
    • Ability to plug in support for new data-types and the like
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
- - - - - - - - - - - -

Platform Abstraction

- - - - - - - - - - - -

OpenGL-ctypes -is exposing "platform" (Operating -System and Hardware) functionality to the Python environment.  -Differences among the various platforms are abstracted such that -porting OpenGL-ctypes to a new platform is largely a matter of -implementing a small module in the "platform" sub-package.

- - - - - - - - - - - -

Each platform gets their own OpenGL.platform.baseplatform.BasePlatform subclass.  OpenGL.platform.baseplatform.BasePlatform classes provide:

- - - - - - - - - - - -
    - - - - - - - - - - - -
  • ctypes library objects for -GL, GLU, GLUT and possibly GLE. How we -find these libraries, the names of the libraries, flags needed for -loading and the like tends to be system specific
  • - - - - - - - - - - - -
  • definition of the ctypes FunctionType -used for -calling functions in the libraries, i.e. what calling convention to use -for calling the functions.  On Windows, for instance, we have to -use windows, rather than C calling conventions.
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
  • functions GetCurrentContext() -and CurrentContextIsValid() -to allow code to retrieve and/or test whether we have a current -context.  This is used to implement context-specific -data-storage.  These are normally exposed by the platform's -OpenGL -implementation
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
  • function getExtensionProcedure( -name ) to retrieve -an OpenGL extension function by name
  • - - - - - - - - - - - -
  • function getGLUTFontPointer( -constant ) to retrieve -a void * -to a GLUT font, different platforms use very -different conventions for these values
  • - - - - - - - - - - - -
  • flags HAS_DYNAMIC_EXT -and EXT_DEFINES_PROTO -which tell OpenGL-ctypes whether the platform has the ability to load -dynamic extensions and whether it uses prototype definitions
  • - - - - - - - - - - - -
  • function safeGetError() to retrieve OpenGL's error state if doing -so would be safe (i.e. we have a valid context or the platform can -handle having a call to glGetError when there is no valid context)
  • -
  • functions/methods -to create/retrieve function pointers from libraries (createBaseFunction -and createExtensionFunction), which insulate us from changes in -ctypes as well as giving us a convenient -place to add functionality to any function. -
    def createBaseFunction( 
        functionName, dll=OpenGL,
        resultType=ctypes.c_int, argTypes=(),
        doc = None, argNames = (),
    ):

    - - - - - - - - - - - -

    and

    - - - - - - - - - - - -
    def createExtensionFunction( 
    functionName, dll=OpenGL,
    resultType=ctypes.c_int,
    argTypes=(),
    doc = None, argNames = (),
    ):
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
- - - - - - - - - - - -

New platform implementations are registered in setup.py -using pkgtools entry points.  We use the sys.platform and os.name -(in that order of preference) to decide which entry point to load.

- - - - - - - - - - - -

Autogenerated Wrappers

- - - - - - - - - - - -

There are two major wrapper generator systems available for use with -ctypes.  Originally OpenGL-ctypes used the ctypes generator module -(based on GCC-XML) to produce its wrappers.  We are switching to -using the pyglet/tools/wraptypes module.  Extension -modules are currently created via a regex-based generator, eventually -we'll switch to using wraptypes for that work as well.

-

wraptypes Generator (new method)

-

The -primary value of wraptypes is that it is easy to install and configure, -and allows for parsing headers which are not "native" to the platform -on which they are being run.  The wrapper generator (gengl.py) is not as advanced/finished as the openglgenerator.py -module, but it can generate the platform-specific module quite nicely, -and the underlying code is under active development with a focus on -GL-related operations.

-

To run this generator, simple check out pyglet's svn repository and add the tools/wraptypes package to your PYTHONPATH, then run the src/gengl.py module in PyOpenGL's source tree.

-

ctypes Wrapper Generator (old method)

-

ctypes includes a mechanism -based on GCC-XML which will autogenerate -wrappers for many C libraries. OpenGL-ctypes uses an -extended version of this autogenerator (in the src subdirectory of -the CVS -repository, see generateraw.py and openglgenerator.py) to produce the C-style "raw" API for the core libraries.  These are the modules in the OpenGL.raw packages.  If you wish to use ctypes directly with a C-style API it is possible to directly import and use these modules.

- - - - -

The generator also produces "annotations" modules in each of the -raw.* packages.  These contain calls which wrap the base functions -in size-of-array-aware wrappers.  The constants from the module -are also split into a separate module for easier reading (this module -is then imported into the main module).

- - - - -

Much of the API for the core libraries can be -used -as-is from the raw packages, so the main package modules -normally import all symbols from their raw.XXX -and raw.XXX.annotations module -before importing from modules providing customised functionality.

- - - - - - - - -
Making your own Auto-generated Wrappers
- - - - - - - - -

If you want to create new core modules (see below for OpenGL -extension modules), you can use the ctypes_codegen module from ctypes -svn.  This module is dependant on having a very up-to-date -(i.e. not yet officially released) gccxml.  Windows users can -download this gccxml from the ctypes SourceForge download page where it -was released with the 0.9.6 ctypes -release (note that the release requires the Visual C runtime from VC6, -which is not included in the download and may not be present on your -machine if you have not installed a VC6-compiled product).

- - - - - - - - -

You can check out the ctypeslib project from the Python svn tree like so:

- - - - - - - - -
svn co http://svn.python.org/projects/ctypes/trunk ctypes
cd ctypes/ctypeslib
python setup.py install
- - - - - - - - - - - -

To create a new PyOpenGL sub-package, such as one to support your -platform-native GLX work-alike (e.g. WGL or AGL), you first create an -XML description of your library.  Here's an example:

- - - - - - - - -
python ~/site-packages/ctypes_codegen/h2xml.py /usr/include/GL/glx.h -o glx.xml -c
- - - - - - - - -

which produces an XML file in your local directory (here glx.xml).  The -c -flag tells GCC-XML to attempt to include preprocessor definitions in -the XML file, which is normally desirable for GL-related systems, as -they tend to have a lot of constants defined in preprocessor directives.

- - - - - - - - -

Once we have the XML file, we need to turn it into Python source files.  The src/generateraw.py -script in the OpenGL-ctypes source distribution is an example of how to -create new wrappers.  Keep in mind that the output here is only -going to include those -functions which are defined on your system (particularly, in the -DLL/.so that you specify with the -l flag).  That means that locally unavailable functions may not show up in the resulting files.

- - - - - - - - -

Autogeneration has gone through many revisions -over the course of the project.  The newest version requires a -heavily restructured version of the ctypes codegenerator module to work.

- - - - -

OpenGL Extension Generation

- - - - - - - - -

Unlike the core modules, -extension modules are auto-generated using -a low-level hack that downloads the OpenGL extension registry's current -header file and parses the file with regexes, matching the two -definitions so that it can generate a single createExtensionFunction -call that has all of the data-type and naming information for that -function.

- - - - - - - - - - - -

The -OpenGL extension definitions in the glext.h -header are split into two parts, a macro which retrieves the pointer to -the function, and the function itself.  One of the definitions -provides the parameter list, the other provides the -properly-capitalised name.  We need both to use the function.

- - - - - - - - - - - -

A consequence of this approach is that -OpenGL-ctypes can remain up-to-date for OpenGL extensions.  -Producing the raw versions of all new extensions is normally just a -single command away.
- - - - - - - - - - - -

- - - - - - - - - - - -

glGet() output arrays are handled specially by the -auto-generation.  It produces calls which register constants -against array sizes so that the glGet* family of calls can return the -correctly-sized array for a given constant.  It does this by -combining information from the specification documents and the size -specifications stored in the glgetsizes.csv document in the source -directory.

- - - - - - - - - - - -

The autogeneration process also attempts to copy the "Overview" -section of the specification for each module into the docstring of the -module, so that users and coders can readily identify the purpose of -the module.

- - - - - - - - - - - -

The extension modules are -written as a single file, with the code -for the auto-generated material placed above a comment line which -tells you not to edit above it.

- - - - - - - - - - - -
### DO NOT EDIT above the line "END AUTOGENERATED SECTION" below!
...
### END AUTOGENERATED SECTION
- - - - - - - - - - - -

Customisations of the extension -are done after the auto-generated -section.  This (single file approach) is done mostly to reduce -the -number of files in the project and to make it easier to hack on a -single extension.

- - - - - - - - - - - -

It is -expected and encouraged that users will hack -on an extension module they care about to make it more Pythonic and -then contribute the changes back to the project.

- - - - - - - - - - - -

If you remove the autogenerated -comment then further autogeneration -passes will not process the module, keep in mind, however, that -improvements to the extension autogeneration will likely occur over -time.

- - - - - - - - - - - -

Converters and Wrappers

- - - - - - - - - - - -

When a method cannot use the -autogenerated ctypes wrapper as-is, we -normally fall back to the OpenGL.wrapper.Wrapper -class, -and the converters defined in the OpenGL.converters -module.  The Wrapper class provides a set of argument -transformation stages which allow for composing most functions from a -common set of simple operations.

- - - - - - - - - - - -

This -approach will seem familiar to those who have -looked at the source code generated by systems such as SWIG.  -There you define a set of matching rules which include snippets of code -which are composed into the C function being compiled.  -Instead of -rule-based matching, we use explicit specification.

- - - - - - - - - - - -

In some cases it's just easier -to code up a custom wrapper function -that uses raw ctypes.  We can do so without a problem simply -by -including the code in the namespace with the appropriate name.

- - - - - - - - - - - -

Wrapper Objects

- - - - - - - - - - - -

The stages in the Wrapper call -are as follows:

- - - - - - - - - - - -
    - - - - - - - - - - - -
  1. pyConverters -- accept (or -suppress) incoming Python arguments
  2. - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Used to convert a Python -argument to a type which is compatible -with the expected data-type
    • - - - - - - - - - - - -
    • Can be used to eliminate -an argument from the argument list by -passing no function, this is useful when we want to imply an argument -from the structure of another argument, for instance
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  3. cConverters -- pull -C-compatible argument out of the Python -argument list
  4. - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Looks at the whole set of -Python argument and produces a 1:1 -argument list of Python objects for the ctypes call
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  5. cResolvers -- take the -C-compatible Python objects and turn them -into the low-level data-type required by the ctypes call
  6. - - - - - - - - - - - -
  7. ctypes call, (with error -checking, errors are annotated with the -arguments used during the call)
  8. - - - - - - - - - - - -
  9. storeValues -- called to -store a C-compatible Python object, for -instance to prevent garbage collection of an array that is in-use
  10. - - - - - - - - - - - -
  11. returnValues -- determines -what result is required from the -wrapped function
  12. - - - - - - - - - - - -
- - - - - - - - - - - -

Of particular interest is the method wrapper.Wrapper.setOutput -which allows you to generate output arrays for a function using a -passed-in size tuple, dictionary or function to determine the -appropriate size for the -array.  See the OpenGL.GL.glget -module for examples of usage.

- - - - - - - - - - - -

Converters

- - - - - - - - - - - -

The OpenGL.converters -module provides a number of conversion "functions" for use with the -wrapper module's Wrapper objects.  The idea of these converter -functions is to produce readily re-used code that describes a common -idiom in wrapping a function.  The core libraries and -extensions then use these idioms to simplify the wrapping of their -functions.

- - - - - - - - - - - -

Array Handling

- - - - - - - - - - - -

While -you can do a great deal of work with OpenGL without array operations, -Python's OpenGL interfaces are all fastest when you use array (or -display-list) techniques to push as much of your rendering work into -the platform implementation as possible.  As such, the natural -handling of arrays is often a key issue for OpenGL programmers.

- - - - - - - - - - - -

Perhaps the most complex -mechanisms in OpenGL-ctypes are those which implement the array-based -operations which allow for using low-level blocks of formatted data to -communicate with the OpenGL implementation.  OpenGL-ctypes -preferred basic array implementation is the (new) numpy -reimplementation of the original Numeric Python.

- - - - - - - - - - - -

The array handling -functionality provided within OpenGL-ctypes is localised to the OpenGL.arrays -sub-package.  Within the package, there are two major classes, -one (the FormatHandler) -which implements an interface to a way of storing data in Python, and -another (the ArrayDatatype) -which models an OpenGL array format.  The ArrayDatatype -classes use FormatHandlers -to manipulate array-compatible objects for use in the system.

- - - - - - - - - - - -

ArrayDatatypes

- - - - - - - - - - - -

ArrayDatatype classes provide an -API composed primarily of -classmethods (that is, methods which are called directly on the class, -rather than requiring an instance of the class).  The -classmethods are used throughout OpenGL-ctypes to provide -array-format-specific handling of Python arguments.

- - - - - - - - - - - -

Currently we have the following -array types defined:

- - - - - - - - - - - -
    - - - - - - - - - - - -
  • ArrayDatatype
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Used for generic array -operations
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • GLclampdArray
  • - - - - - - - - - - - -
  • GLclampfArray
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Clamped floating-point -types
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • GLfloatArray
  • - - - - - - - - - - - -
  • GLdoubleArray
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Un-clamped floating-point -types
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • GLbyteArray
  • - - - - - - - - - - - -
  • GLcharArray (GLcharARBArray)
    - - - - - - - - - - - -
  • - - - - - - - - - - - -
  • GLubyteArray
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Character arrays
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • GLshortArray
  • - - - - - - - - - - - -
  • GLintArray
  • - - - - - - - - - - - -
  • GLsizeiArray
  • - - - - - - - - - - - -
  • GLenumArray
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Integer array types
      - - - - - - - - - - - -
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
- - - - - - - - - - - -

When you are coding new -OpenGL-ctypes modules, you should always use the ArrayDatatype -interfaces.  These interfaces allow us to code generic -operations such that they dispatch to the appropriate format handlers.

- - - - - - - - - - - -

Format Handlers
- - - - - - - - - - - -

- - - - - - - - - - - -

Each format handler is -responsible for implementing an API that ArrayDatatypes can use to work -with the Python data-format.  Data-formats can support a -subset of the API, they only need to support those aspects of the -data-format which make sense.  For instance, a write-only -array data-type (such as a Python string) doesn't need to implement the -zeros method.

- - - - - - - - - - - -

At the moment we have the -following Format Handlers:

- - - - - - - - - - - -
    - - - - - - - - - - - -
  • nones.NoneHandler
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Supports passing the None -object as an array data-pointer, quite limited in its functionality
    • - - - - - - - - - - - -
    • Implemented in Python
    • - - - - - - - - - - - -
    • registered as: 'nones'
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • numpymodule.NumpyHandler, -(numarrays.NumarrayHandlernumeric.NumericHandler)
    - - - - - - - - - - - -
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Full data-format handlers -for the three Numeric Python implementations
    • - - - - - - - - - - - -
    • numpy module is -implemented in Python using a stable API
    • - -
    • Numeric module is implemented in Python using a bit of a hack
    • - -
    • Numarray currently requires a C extension and, at the -moment, is not built by default
    • - - - - - - - - - - - -
    • registered as: 'numpy' and 'numeric' ('numarray')
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • numbers.NumberHandler
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Supports passing single -Python integers/floats in as array data-types
    • - - - - - - - - - - - -
    • Does not currently support -use for output arguments (since Numeric arrays are currently used for -single-value output arrays)
    • - - - - - - - - - - - -
    • Implemented in Python
    • - - - - - - - - - - - -
    • registered as: 'numbers'
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • strings.StringHandler
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Supports using Python -strings as data-sources, no output support
    • - - - - - - - - - - - -
    • Implemented in Python (with a bit of a hack in _strings.py)
      - - - - - - - - - - - -
    • - - - - - - - - - - - -
    • registered as: 'strings'
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • ctypesarrays.CtypesArrayHandler, - ctypespointers.CtypesPointerHandler
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Full data-format handler for ctypes arrays, input-only for -pointers
    • - - - - - - - - - - - -
    • Implemented in Python
    • - - - - - - - - - - - -
    • registered as: 'ctypesarrays','ctypespointers'
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - -
  • lists.ListHandler
  • - - - - - - - - - - - - - - -
      - - - - - - - -
    • Backup supports for using Python lists/tuples as data-sources if there is no numpy module available
    • - - - - - - - -
    • registered as 'lists'
    • - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
- - - - - - - - - - - -
Registering new FormatHandlers
- - - - - - - - - - - -

OpenGL-ctypes uses the simplistic OpenGL.plugins module which allows -you to register a plugin instance which defines a class which is to be -loaded to handle a given data format.

-
from OpenGL.plugins import FormatHandler
FormatHandler( 'numpy', 'OpenGL.arrays.numpymodule.NumpyHandler', ['numpy.ndarray'] )
-

The first parameter is just a name used to refer to the plugin. - The second is the actual class to load.  If there is not -third parameter, then the plugin will automatically load.  If -there is a value, then the value is a list of module.classname -values which will be matched against incoming array-parameter values.

-

OpenGL-ctypes delays resolving the FormatHandler set until the last -possible moment (i.e. the first call is made which requires a -FormatHandler).  Any time before this you can use code like this -to declare your application's preference for the handler to be used for -creating output argument (this handler must define a zeros(...) -method):

- - - - - - - - - - - -
from OpenGL.arrays import formathandler
formathandler.FormatHandler.chooseOutput( 'ctypesarrays' )
- - - - - - - - - - - -

Where the strings passed are those under which the handler was -registered (see previous section).

- - - - - - - - - - - -

There are currently no C-level extension modules -in OpenGL-ctypes.  However, we have (disabled) implementations for -a few format handlers which are C extensions.  It should be -possible to rewrite each of these as pure Python code using ctypes -eventually.  They were written as C extensions simply because -I had the code handy and I didn't want to have to re-specify the -structures for every release of Python or numpy.  The _strings.py -module is an example of a how such a rewrite could be done.  It -does a test at -run-time to determine the offset required to get a data-pointer from a -Python string.

- - - - - - - - - - - -

Image Handling

- - - - - - - - - - - -

Most of the complexity of Image -handling is taken care of by the Array Handling functionality, as most -image data-types are simply arrays of data in a given format.  -Beyond that, it is necessary to set various OpenGL parameters so that -the data-format assumptions of most Python users (e.g. tightly packed -image data) will be met.

- - - - - - - - - - - -

The OpenGL.images -module has the basic functions and data-tables which allow for -processing image data (both input and output).  Eventually we -will add APIs to support registering new image-types, but for now we -have to directly modify the data-tables to register a new data-type.

- - - - - - - - - - - -

The OpenGL.GL.images -module has implementations of the core OpenGL image-manipulation -functions which use the OpenGL.images module.  It can serve as -an example of how to use the image handling mechanisms.

- - - - - - - - - - - -

Error Handling

- - - - - - - - - - - -

As with previous versions of -PyOpenGL, OpenGL-ctypes tries to follow Python's

- - - - - - - - - - - -

Errors -should never pass silently.

- - - - - - - - - - - -

philosophy, rather than -OpenGL's philosophy of always requiring explicit checks for error -conditions.  OpenGL-ctypes functions run the function OpenGL.error.glCheckError -after each function call.  This function is glBegin/glEnd -aware, that is, the glBegin and glEnd functions enable and disable the -checking of errors (because error checking doesn't work between those -calls).

- - - - - - - - - - - -

You can override the error-handler, either to provide your own -custom functionality, or to disable checking entirely.  For -instance, if you will always have a valid context, you could register -the raw glGetError function as the error checker to avoid the overhead -of the context-validity checks:

- - - - - - - - - - - -
from OpenGL import error
error.ErrorChecker.registerChecker( myAlternateFunction )
- - - - - - - - - - - -

OpenGL-ctypes has a set of -errors defined in the OpenGL.error -module.  It can also raise standard Python exceptions, such as -ValueError or TypeError.  Finally, it can raise ctypes errors -when argument conversion fails. (XXX that's sub-optimal, it has -implementation details poking out to user code).
- - - - - - - - - - - -

- - - - - - - - - - - -

Wrapper objects catch OpenGL -errors and annotate the error with extra information to make it easier -to debug failures during the wrapping process.

- - - - - - - - - - - -

Context-specific Data

- - - - - - - - - - - -

Because of the way OpenGL and -ctypes handle, for instance, pointers, to array data, it is often -necessary to ensure that a Python data-structure is retained (i.e. not -garbage collected).  This is done by storing the data in an -array of data-values that are indexed by a context-specific -key.  The functions to provide this functionality are provided -by the OpenGL.contextdata -module.

- - - - - - - - - - - -

The -key that is used to index the storage array is provided by the platform -module's GetCurrentContext() -function.  The current context is used if the context argument -is passed in as None.
- - - - - - - - - - - -

- - - - - - - - - - - -

You can store a new value for -the current context with a call to:

- - - - - - - - - - - -
def setValue( constant, value, context=None, weak=False ):
"""Set a stored value for the given context"""
- - - - - - - - - - - -

You can retrieve the current -value (which will return None if there is no currently set value) with -a call to:

- - - - - - - - - - - -
def getValue( constant, context = None ):
"""Get a stored value for the given constant"""
- - - - - - - - - - - -

Lastly, you can delete any -currently set value with:

- - - - - - - - - - - -
def delValue( constant, context=None ):
"""Delete the specified value for the given context"""
- - - - - - - - - - - -

which will return a boolean -telling you whether an existing value was found.

- - - - - - - - - - - -

Keep -in mind that you must either explicitly clear out each stored value or -explicitly clear out the stored data with a call to OpenGL.contextdata.cleanupContext -when you destroy a rendering context.

- - - - - - - - - - - -

Extensions

- - - - - - - - - - - -

The OpenGL extension mechanism -is quite well developed, with most new functionality appearing as an -extension before it migrates into the OpenGL core.  There are -hundreds of registered extensions to OpenGL, with a large fraction of -the extensions simply introducing new constants or a few new simple -functions.

- - - - - - - - - - - -

A few of the largest -extensions, such as the GL.ARB.shader_object -or GL.ARB.vertex_buffer_object -extensions are more involved in their effects on the system.  -These extensions require considerable custom code beyond that generated -by the auto-generation system.

- - - - - - - - - - - -

Tkinter (Legacy GUI) Togl -Support

- - - - - - - - - - - -

We have included the Python -wrapper for the Tk Togl widget in the OpenGL-ctypes package.  -We do not, however, currently include the Togl widget itself.  -If you would like to use Togl in your package, please use your system's -package manager to install the Togl package (or compile from -source).  You may have to recompile Python with Tk support as -well.

- - - - - - - - - - - -

Historically, -Togl support was one of the most complex and error-prone aspects of the -PyOpenGL installation procedure.  Although there are lots of -scripts which use Togl from PyOpenGL, we just don't have the personel -to maintain it as part of the PyOpenGL project.  It would -likely be best if we could simple include a redistributable Togl -package alongside the OpenGL-ctypes package.

- - - - - - - - - - - -

Todo

- - - - - - - - - - - -

OpenGL-ctypes is still far from finished.  Here is a (partial) -list of tasks still needing to be completed, I'll add more here as I -discover it:

- - - - - - - - - - - -
    -
  • Extension development support
    - - - - - - - - - - - -
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • We need more elegant and stable APIs for implementing -OpenGL -extensions, particularly ones that have far-reaching consequences, that -is extensions which affect other extensions or core functionality
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Major extensions needing lots of love
    - - - - - - - - - - - -
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • ARB vertex buffer object
    • - - - - - - - - - - - -
    • ARB imaging
    • - - - - - - - - - - - -
    • ARB vertex/fragment shaders, shader objects (though they appear to be basically functional)
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Wrapping of OpenGL 1.4, 1.5 and 2.0 support
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Mostly just mechanical stuff wrapping array-handling code, doing image-transfer operations or the like
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
  • Documentation
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Need docstring cleanup and critique
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Re-integrate with the OpenGL, GLU and GLUT documentation set (from -PyOpenGL)
    • - - - - - - - - - - - -
    • User-oriented documentation
    • - - - - - - - - - - - - - - - - - - - - - - -
    -
  • Testing
  • - - - - - - - - - - - - - - - - - - - - - - -
      - - - - - - - - - - - -
    • Need to test with lots of PyOpenGL code to either eliminate or -document incompatibilities
    • - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - -
- - - - - - - - - - - - - - Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/images/pyopengl_icon.jpg and /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/images/pyopengl_icon.jpg differ Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/pyaccellerate.png and /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/pyaccellerate.png differ diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/pyaccellerate.svg /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/pyaccellerate.svg --- pyopengl-3.0.0~b6/documentation/pyaccellerate.svg 2007-02-23 23:53:02.000000000 +0000 +++ pyopengl-3.0.0/documentation/pyaccellerate.svg 1970-01-01 01:00:00.000000000 +0100 @@ -1,129 +0,0 @@ - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/pydoc/builddocs.py /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/pydoc/builddocs.py --- pyopengl-3.0.0~b6/documentation/pydoc/builddocs.py 2006-09-05 21:24:26.000000000 +0100 +++ pyopengl-3.0.0/documentation/pydoc/builddocs.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,47 +0,0 @@ -"""Script to automatically generate PyTable documentation""" -import pydoc2, inspect -from OpenGL import wrapper -from ctypes import _CFuncPtr - -originalIsRoutine = inspect.isroutine -def isroutine( obj ): - """Allow wrapper objects to show up as functions in pydoc""" - return ( - isinstance( obj, (wrapper.Wrapper,_CFuncPtr) ) or - originalIsRoutine( obj ) - ) -inspect.isroutine = isroutine -originalIsBuiltin = inspect.isbuiltin -def isbuiltin( obj ): - """Consider ctypes function pointers to be built-ins""" - return ( - isinstance( obj, (wrapper.Wrapper,_CFuncPtr) ) or - originalIsBuiltin( obj ) - ) -inspect.isbuiltin = isbuiltin - -if __name__ == "__main__": - excludes = [ - "Numeric", - "numpy", - "_tkinter", - "Tkinter", - "math", - "string", - "pygame", - ] - stops = [ - ] - - modules = [ - 'OpenGL', - 'ctypes', - '__builtin__', - ] - pydoc2.PackageDocumentationGenerator( - baseModules = modules, - destinationDirectory = ".", - exclusions = excludes, - recursionStops = stops, - ).process () - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/pydoc/pydoc2.py /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/pydoc/pydoc2.py --- pyopengl-3.0.0~b6/documentation/pydoc/pydoc2.py 2006-09-10 21:46:39.000000000 +0100 +++ pyopengl-3.0.0/documentation/pydoc/pydoc2.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,516 +0,0 @@ -"""Pydoc sub-class for generating documentation for entire packages""" -import pydoc, inspect, os, string -import sys, imp, os, stat, re, types, inspect -from repr import Repr -from string import expandtabs, find, join, lower, split, strip, rfind, rstrip - -def classify_class_attrs(cls): - """Return list of attribute-descriptor tuples. - - For each name in dir(cls), the return list contains a 4-tuple - with these elements: - - 0. The name (a string). - - 1. The kind of attribute this is, one of these strings: - 'class method' created via classmethod() - 'static method' created via staticmethod() - 'property' created via property() - 'method' any other flavor of method - 'data' not a method - - 2. The class which defined this attribute (a class). - - 3. The object as obtained directly from the defining class's - __dict__, not via getattr. This is especially important for - data attributes: C.data is just a data object, but - C.__dict__['data'] may be a data descriptor with additional - info, like a __doc__ string. - - Note: This version is patched to work with Zope Interface-bearing objects - """ - - mro = inspect.getmro(cls) - names = dir(cls) - result = [] - for name in names: - # Get the object associated with the name. - # Getting an obj from the __dict__ sometimes reveals more than - # using getattr. Static and class methods are dramatic examples. - if name in cls.__dict__: - obj = cls.__dict__[name] - else: - try: - obj = getattr(cls, name) - except AttributeError, err: - continue - - # Figure out where it was defined. - homecls = getattr(obj, "__objclass__", None) - if homecls is None: - # search the dicts. - for base in mro: - if name in base.__dict__: - homecls = base - break - - # Get the object again, in order to get it from the defining - # __dict__ instead of via getattr (if possible). - if homecls is not None and name in homecls.__dict__: - obj = homecls.__dict__[name] - - # Also get the object via getattr. - obj_via_getattr = getattr(cls, name) - - # Classify the object. - if isinstance(obj, staticmethod): - kind = "static method" - elif isinstance(obj, classmethod): - kind = "class method" - elif isinstance(obj, property): - kind = "property" - elif (inspect.ismethod(obj_via_getattr) or - inspect.ismethoddescriptor(obj_via_getattr)): - kind = "method" - else: - kind = "data" - - result.append((name, kind, homecls, obj)) - - return result -inspect.classify_class_attrs = classify_class_attrs - - -class DefaultFormatter(pydoc.HTMLDoc): - def docmodule(self, object, name=None, mod=None, packageContext = None, *ignored): - """Produce HTML documentation for a module object.""" - name = object.__name__ # ignore the passed-in name - parts = split(name, '.') - links = [] - for i in range(len(parts)-1): - links.append( - '%s' % - (join(parts[:i+1], '.'), parts[i])) - linkedname = join(links + parts[-1:], '.') - head = '%s' % linkedname - try: - path = inspect.getabsfile(object) - url = path - if sys.platform == 'win32': - import nturl2path - url = nturl2path.pathname2url(path) - filelink = '%s' % (url, path) - except TypeError: - filelink = '(built-in)' - info = [] - if hasattr(object, '__version__'): - version = str(object.__version__) - if version[:11] == '$' + 'Revision: ' and version[-1:] == '$': - version = strip(version[11:-1]) - info.append('version %s' % self.escape(version)) - if hasattr(object, '__date__'): - info.append(self.escape(str(object.__date__))) - if info: - head = head + ' (%s)' % join(info, ', ') - result = self.heading( - head, '#ffffff', '#7799ee', 'index
' + filelink) - - modules = inspect.getmembers(object, inspect.ismodule) - - classes, cdict = [], {} - for key, value in inspect.getmembers(object, inspect.isclass): - if (inspect.getmodule(value) or object) is object: - classes.append((key, value)) - cdict[key] = cdict[value] = '#' + key - for key, value in classes: - for base in value.__bases__: - key, modname = base.__name__, base.__module__ - module = sys.modules.get(modname) - if modname != name and module and hasattr(module, key): - if getattr(module, key) is base: - if not cdict.has_key(key): - cdict[key] = cdict[base] = modname + '.html#' + key - funcs, fdict = [], {} - for key, value in inspect.getmembers(object, inspect.isroutine): - if ( - inspect.isbuiltin(value) or - inspect.getmodule(value) is object - ): - funcs.append((key, value)) - fdict[key] = '#-' + key - if inspect.isfunction(value): fdict[value] = fdict[key] - data = [] - for key, value in inspect.getmembers(object, pydoc.isdata): - if key not in ['__builtins__', '__doc__']: - data.append((key, value)) - - doc = self.markup(pydoc.getdoc(object), self.preformat, fdict, cdict) - doc = doc and '%s' % doc - result = result + '

%s

\n' % doc - - packageContext.clean ( classes, object ) - packageContext.clean ( funcs, object ) - packageContext.clean ( data, object ) - - if hasattr(object, '__path__'): - modpkgs = [] - modnames = [] - for file in os.listdir(object.__path__[0]): - path = os.path.join(object.__path__[0], file) - modname = inspect.getmodulename(file) - if modname and modname not in modnames: - modpkgs.append((modname, name, 0, 0)) - modnames.append(modname) - elif pydoc.ispackage(path): - modpkgs.append((file, name, 1, 0)) - modpkgs.sort() - contents = self.multicolumn(modpkgs, self.modpkglink) -## result = result + self.bigsection( -## 'Package Contents', '#ffffff', '#aa55cc', contents) - result = result + self.moduleSection( object, packageContext) - elif modules: - contents = self.multicolumn( - modules, lambda (key, value), s=self: s.modulelink(value)) - result = result + self.bigsection( - 'Modules', '#fffff', '#aa55cc', contents) - - - if classes: -## print classes -## import pdb -## pdb.set_trace() - classlist = map(lambda (key, value): value, classes) - contents = [ - self.formattree(inspect.getclasstree(classlist, 1), name)] - for key, value in classes: - contents.append(self.document(value, key, name, fdict, cdict)) - result = result + self.bigsection( - 'Classes', '#ffffff', '#ee77aa', join(contents)) - if funcs: - contents = [] - for key, value in funcs: - contents.append(self.document(value, key, name, fdict, cdict)) - result = result + self.bigsection( - 'Functions', '#ffffff', '#eeaa77', join(contents)) - if data: - contents = [] - for key, value in data: - try: - contents.append(self.document(value, key)) - except Exception, err: - pass - result = result + self.bigsection( - 'Data', '#ffffff', '#55aa55', join(contents, '
\n')) - if hasattr(object, '__author__'): - contents = self.markup(str(object.__author__), self.preformat) - result = result + self.bigsection( - 'Author', '#ffffff', '#7799ee', contents) - if hasattr(object, '__credits__'): - contents = self.markup(str(object.__credits__), self.preformat) - result = result + self.bigsection( - 'Credits', '#ffffff', '#7799ee', contents) - - return result - - def classlink(self, object, modname): - """Make a link for a class.""" - name, module = object.__name__, sys.modules.get(object.__module__) - if hasattr(module, name) and getattr(module, name) is object: - return '%s' % ( - module.__name__, name, name - ) - return pydoc.classname(object, modname) - - def moduleSection( self, object, packageContext ): - """Create a module-links section for the given object (module)""" - modules = inspect.getmembers(object, inspect.ismodule) - packageContext.clean ( modules, object ) - packageContext.recurseScan( modules ) - - if hasattr(object, '__path__'): - modpkgs = [] - modnames = [] - for file in os.listdir(object.__path__[0]): - path = os.path.join(object.__path__[0], file) - modname = inspect.getmodulename(file) - if modname and modname not in modnames: - modpkgs.append((modname, object.__name__, 0, 0)) - modnames.append(modname) - elif pydoc.ispackage(path): - modpkgs.append((file, object.__name__, 1, 0)) - modpkgs.sort() - # do more recursion here... - for (modname, name, ya,yo) in modpkgs: - packageContext.addInteresting( join( (object.__name__, modname), '.')) - items = [] - for (modname, name, ispackage,isshadowed) in modpkgs: - try: - # get the actual module object... -## if modname == "events": -## import pdb -## pdb.set_trace() - module = pydoc.safeimport( "%s.%s"%(name,modname) ) - description, documentation = pydoc.splitdoc( inspect.getdoc( module )) - if description: - items.append( - """%s -- %s"""% ( - self.modpkglink( (modname, name, ispackage, isshadowed) ), - description, - ) - ) - else: - items.append( - self.modpkglink( (modname, name, ispackage, isshadowed) ) - ) - except: - items.append( - self.modpkglink( (modname, name, ispackage, isshadowed) ) - ) - contents = string.join( items, '
') - result = self.bigsection( - 'Package Contents', '#ffffff', '#aa55cc', contents) - elif modules: - contents = self.multicolumn( - modules, lambda (key, value), s=self: s.modulelink(value)) - result = self.bigsection( - 'Modules', '#fffff', '#aa55cc', contents) - else: - result = "" - return result - def docroutine( - self, object, name=None, mod=None, - funcs={}, classes={}, methods={}, cl=None - ): - """Override for use with wrapper.Wrapper objects""" - from OpenGL import wrapper - if isinstance( object, wrapper.Wrapper ): - pyConverters = cConverters = cResolvers = storeValues = returnValues = 'Not Used' - if hasattr( object, 'pyConverterNames' ): - args = ",".join( object.pyConverterNames ) - pyConverters = ", ".join([ - '%s=%s'%(key,self.document(value)) - for (key,value) in zip( object.pyConverterNames, object.pyConverters ) - ]) - else: - args = ",".join( object.wrappedOperation.argNames ) - pyConverterNames = ", ".join([ - '%s=%s'%(key,self.document(value)) - for (key,value) in zip( object.wrappedOperation.argNames, object.pyConverters ) - ]) - pySignature = '%s( %s )'%( object.__name__, args ) - - wrappedDoc = object.wrappedOperation.__doc__ - if hasattr( object, 'cConverters' ): - cConverters = ", ".join([ - '%s=%s'%(key,self.document(value)) - for (key,value) in zip( object.wrappedOperation.argNames, object.cConverters ) - ]) - if hasattr( object, 'cResolvers' ): - cResolvers = ", ".join([ - '%s=%s'%(key,self.document(value)) - for (key,value) in zip( object.wrappedOperation.argNames, object.cResolvers ) - ]) - if hasattr( object, 'storeValues' ): - storeValues = self.document(object.storeValues) - if hasattr( object, 'returnValues' ): - returnValues = self.document(object.returnValues) - return '''%(pySignature)s - -
-
pyConverters: %(pyConverters)s
-
cConverters: %(cConverters)s
-
cResolvers: %(cResolvers)s
-
storeValues: %(storeValues)s
-
returnValues: %(returnValues)s
-
- -
Wrapping Operation: %(wrappedDoc)s
'''%locals() - return pydoc.HTMLDoc.docroutine( - self,object,name,mod,funcs,classes,methods,cl, - ) - -class AlreadyDone(Exception): - pass - - - -class PackageDocumentationGenerator: - """A package document generator creates documentation - for an entire package using pydoc's machinery. - - baseModules -- modules which will be included - and whose included and children modules will be - considered fair game for documentation - destinationDirectory -- the directory into which - the HTML documentation will be written - recursion -- whether to add modules which are - referenced by and/or children of base modules - exclusions -- a list of modules whose contents will - not be shown in any other module, commonly - such modules as OpenGL.GL, wxPython.wx etc. - recursionStops -- a list of modules which will - explicitly stop recursion (i.e. they will never - be included), even if they are children of base - modules. - formatter -- allows for passing in a custom formatter - see DefaultFormatter for sample implementation. - """ - def __init__ ( - self, baseModules, destinationDirectory = ".", - recursion = 1, exclusions = (), - recursionStops = (), - formatter = None - ): - self.destinationDirectory = os.path.abspath( destinationDirectory) - self.exclusions = {} - self.warnings = [] - self.baseSpecifiers = {} - self.completed = {} - self.recursionStops = {} - self.recursion = recursion - for stop in recursionStops: - self.recursionStops[ stop ] = 1 - self.pending = [] - for exclusion in exclusions: - try: - self.exclusions[ exclusion ]= pydoc.locate ( exclusion) - except pydoc.ErrorDuringImport, value: - self.warn( """Unable to import the module %s which was specified as an exclusion module: %s"""% (repr(exclusion), value)) - self.formatter = formatter or DefaultFormatter() - for base in baseModules: - self.addBase( base ) - def warn( self, message ): - """Warnings are used for recoverable, but not necessarily ignorable conditions""" - self.warnings.append (message) - def info (self, message): - """Information/status report""" - print message - def addBase(self, specifier): - """Set the base of the documentation set, only children of these modules will be documented""" - try: - self.baseSpecifiers [specifier] = pydoc.locate ( specifier) - self.pending.append (specifier) - except pydoc.ErrorDuringImport, value: - self.warn( """Unable to import the module %s which was specified as a base module"""% (repr(specifier))) - def addInteresting( self, specifier): - """Add a module to the list of interesting modules""" - if self.checkScope( specifier): -## print "addInteresting", specifier - self.pending.append (specifier) - else: - self.completed[ specifier] = 1 - def checkScope (self, specifier): - """Check that the specifier is "in scope" for the recursion""" - if not self.recursion: - return 0 - items = string.split (specifier, ".") - stopCheck = items [:] - while stopCheck: - name = string.join(items, ".") - if self.recursionStops.get( name): - return 0 - elif self.completed.get (name): - return 0 - del stopCheck[-1] - while items: - if self.baseSpecifiers.get( string.join(items, ".")): - return 1 - del items[-1] - # was not within any given scope - return 0 - - def process( self ): - """Having added all of the base and/or interesting modules, - proceed to generate the appropriate documentation for each - module in the appropriate directory, doing the recursion - as we go.""" - try: - while self.pending: - try: - if self.completed.has_key( self.pending[0] ): - raise AlreadyDone( self.pending[0] ) - self.info( """Start %s"""% (repr(self.pending[0]))) - object = pydoc.locate ( self.pending[0] ) - self.info( """ ... found %s"""% (repr(object.__name__))) - except AlreadyDone: - pass - except pydoc.ErrorDuringImport, value: - self.info( """ ... FAILED %s"""% (value)) - self.warn( """Unable to import the module %s"""% (repr(self.pending[0]))) - except (SystemError, SystemExit), value: - self.info( """ ... FAILED %s"""% (repr( value))) - self.warn( """Unable to import the module %s"""% (repr(self.pending[0]))) - except Exception, value: - self.info( """ ... FAILED %s"""% (repr( value))) - self.warn( """Unable to import the module %s"""% (repr(self.pending[0]))) - else: - page = self.formatter.page( - pydoc.describe(object), - self.formatter.docmodule( - object, - object.__name__, - packageContext = self, - ) - ) - file = open ( - os.path.join( - self.destinationDirectory, - self.pending[0] + ".html", - ), - 'w', - ) - file.write(page) - file.close() - self.completed[ self.pending[0]] = object - del self.pending[0] - finally: - for item in self.warnings: - print item - - def clean (self, objectList, object): - """callback from the formatter object asking us to remove - those items in the key, value pairs where the object is - imported from one of the excluded modules""" - for key, value in objectList[:]: - for excludeObject in self.exclusions.values(): - if hasattr( excludeObject, key ) and excludeObject is not object: - if ( - getattr( excludeObject, key) is value or - (hasattr( excludeObject, '__name__') and - excludeObject.__name__ == "Numeric" - ) - ): - objectList[:] = [ (k,o) for k,o in objectList if k != key ] - def recurseScan(self, objectList): - """Process the list of modules trying to add each to the - list of interesting modules""" - for key, value in objectList: - self.addInteresting( value.__name__ ) - - - -if __name__ == "__main__": - excludes = [ - "OpenGL.GL", - "OpenGL.GLU", - "OpenGL.GLUT", - "OpenGL.GLE", - "OpenGL.GLX", - "wxPython.wx", - "Numeric", - "_tkinter", - "Tkinter", - ] - - modules = [ - "OpenGLContext.debug", -## "wxPython.glcanvas", -## "OpenGL.Tk", -## "OpenGL", - ] - PackageDocumentationGenerator( - baseModules = modules, - destinationDirectory = "z:\\temp", - exclusions = excludes, - ).process () - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/style/tutorial.css /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/style/tutorial.css --- pyopengl-3.0.0~b6/documentation/style/tutorial.css 2006-09-02 15:59:04.000000000 +0100 +++ pyopengl-3.0.0/documentation/style/tutorial.css 1970-01-01 01:00:00.000000000 +0100 @@ -1,59 +0,0 @@ -h1,h2,h3 { - color: #111144; - background-image: url(../images/greypinstripe.png); - border-top-style: solid; - border-top-width: 1 -} -.footer { - color: #111144; - background-image: url(../images/greypinstripe.png); - text-align: center; - border-bottom-style: solid; - border-bottom-width: 1 -} -th { - color: #111144; - background-image: url(../images/greypinstripe.png); - text-align: center; -} -.introduction { - margin-left: 60; - margin-right: 60; - color: #555555; -} -.technical { - margin-left: 60; - margin-right: 60; - color: #557755; -} -p { - margin-left: 10; - margin-right: 10; -} -ul { - margin-left: 30; -} -pre { - background-color: #ffffcc; - margin-left: 60; -} -blockquote { - margin-left: 90; -} -body { - background-color: #FFFFFF; - color: #000000; - font-family: Arial, Helvetica; -} -a:link { - color: #3333e0; - text-decoration: none; -} -a:visited { - color: #1111aa; - text-decoration: none; -} -a:active { - color: #111133; - text-decoration: none; -} diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/documentation/using.html /tmp/6jwPQaot5C/pyopengl-3.0.0/documentation/using.html --- pyopengl-3.0.0~b6/documentation/using.html 2008-06-15 22:44:23.000000000 +0100 +++ pyopengl-3.0.0/documentation/using.html 1970-01-01 01:00:00.000000000 +0100 @@ -1,891 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Using OpenGL in Python - - - - - - - - - - - - - - - - - - - - - - - - -

Using OpenGL in Python
- - - - - - - -

- - - - - - - -

This document describes how to get started -using OpenGL from Python, particularly using the PyOpenGL 3.x -package from pyopengl.sourceforge.net.  This document assumes -familiarity some familiarity with Python, OpenGL and Numpy (Numeric -Python).

- - - - - -

Installing the Package

- - - - - - - -

The PyOpenGL package uses the "SetupTools" package, which is a new, -common mechanism for distributing and installing Python packages. - It is quite likely that Python developers will already have -setuptools installed on their system.  If you do not have it -installed, download and run ez_setup.py.  If you want to install -your Python egg files in a non-standard location be sure to setup your -.pydistutils.cfg to support this before installing the packages.

- - -

Note that you will want to uninstall any PyOpenGL -2.x or OpenGL-3.0.0a4 installation before attempting to install. The -3.0.0a4 release used the undecorated name in a misguided attempt to -make things "simpler".  The 3.0.0a5 and beyond packages use the -same name as all previous PyOpenGL packages, "PyOpenGL".

- - - - -

Once you have setuptools installed (many Python developers already -will have it), simply issue the command:

- - - - - -
easy_install PyOpenGL
- - - - - -

To have setuptools lookup the current version of the PyOpenGL package, -download and install it.  If -setuptools fails to install the package, you may need to update your -setuptools.  Or you can try a direct download of the package with -this command in the directory where you downloaded the package:

- - - - -
easy_install -f . PyOpenGL
- - - - -

If you do not have administrative -permissions on your machine, you can create a .pydistutils.cfg file in -your home directory to tell setuptools where to install new .egg files.

- - -

To update your install to the latest release of PyOpenGL:

- - -
easy_install -U PyOpenGL
- - -

Which will search for the latest registered version of the package and install that on your system.

- - -

If you use setuptools to package your application, -you should declare a dependency on "PyOpenGL" to pull in the latest -PyOpenGL 3.x release.

- - - - - -

As of 3.0.0a3 PyOpenGL is dependant on the setuptools -package.  You cannot run without the setuptools support, as it is -used to provide the plugin mechanism used by array data-type plugin -mechanism.  You will probably want to install numpy as well.  ctypes is a dependency for Python 2.4 and Python 2.3 but included with Python 2.5.

-

Win32 Dependencies

-

PyOpenGL is a wrapper around OpenGL, GLU, GLUT (including -Free/OpenGLUT) and GLE. Most Linux and OS-X systems will have these -available or be able to install them automatically as packages. - On Win32 we need to do a bit more work:

-
    -
  • Download the GLUT for Win32 package, copy glut32.dll to your WINDOWS/system32 directory
  • -
  • Download the compiled GLE for Win32 package, copy gle32.dll to your WINDOWS/system32 directory
  • -
-

This script -automates the process.  Note that you will be agreeing to be bound -by the license agreements of the GLUT and GLE libraries on running the -script.

-

Bleeding Edge Development

- - - - - -

If you are working in an area that's currently under active -development you may prefer to use the CVS version of the PyOpenGL -package.  OpenGL-ctypes (the code-name for the 3.0.0 version of -PyOpenGL) is developed and -maintained within the PyOpenGL CVS repository.  To check out -the current version of OpenGL-ctypes:

- - - - - - - -
cvs -z3 -d:pserver:anonymous@pyopengl.cvs.sourceforge.net:/cvsroot/pyopengl co -P OpenGL-ctypes
- - - - - - - -

You can install the checkout to your path for further development as -follows (from the OpenGL-ctypes checkout directory):
- - - - - - - -

- - - - - - - -
./setupegg.py develop --install-dir=~/YOUR-WORKING-DIRECTORY-ON-PYTHONPATH-HERE
- - - - - -

When you make a change, run cvs -diff on the OpenGL-ctypes -directory to produce a patch file and send it to me -as an attachment.  I prefer "context" diffs (cvs -diff -c) for contributed -code, as it makes it easier to see where the code fits in.  -That said, I'm happy to get code in any readily integrated format.

- - - - - - - -

Accessing OpenGL Functionality

- - - - - -

The OpenGL library is a singleton instance for each process that is -shared by all in-process code that uses OpenGL commands.  Normally -you will want to use OpenGL from within a GUI framework, such as -wxPython, PyGame, Tkinter, PyGTK or PyQt.  For stand-alone 3D -programs, you may want to use the simple, but often quite -effective,GLUT library, a wrapper for which is included in the PyOpenGL -package.

- - - - - -

Your GUI package will generally have a way to define an OpenGL -"window" and set that window "active".  Once the window is active, -PyOpenGL commands will render into the window (as will any commands in -the process issued from another language, such as a C extension). - Normally this is handled by registering a handler for "events" -from the GUI for such things are requests to display, resize, deal with -mouse movements and the like.

- - - - - -

To get access to basic OpenGL functionality, you should import the -OpenGL.GL and OpenGL.GLU packages.  This is normally done with -global imports [XXX show multi-version-install usage as well]:

- - - - - -
from OpenGL.GL import *
from OpenGL.GLU import *
- - - - - -

If you want to access functions in an extension module, you can load the extensions via a similar import:

- - - - - -
from OpenGL.GL.ARB.shader_objects import *
from OpenGL.GL.ARB.fragment_shader import *
from OpenGL.GL.ARB.vertex_shader import *
- - - - - -

It's a good idea to use the initialisation functions in the -extension modules to check that the extension is available on the -current machine before using any of the functions in the extension -(note: calling the init functions was a requirement in PyOpenGL 2.x). - For example:

- - - - - -
if not glInitShaderObjectsARB():
raise RuntimeError(
"""ARB Shader Objects extension is required """
"""but not supported on this machine!"""
)
- - - - - -

or more reasonably, to trigger the use of fallback code for the missing functionality from the extension.

- - - - - -

API Changes from C-level OpenGL

- - - - - -

Generally speaking, PyOpenGL 3.x tries to be compatible with the -PyOpenGL 2.x series, which tried to provide a "Pythonic" interface to -OpenGL.  This includes providing support for implying various -arguments, such as the dimensions of arrays from array's declaration of -their dimensions.  The online pydoc documentationprovides -the most accurate (because it is auto-generated), though -somewhat confusing, reference to the API as provided by PyOpenGL. - We will be revising that documentation to be more friendly as -work progresses.

- - - - - -

If you are updating from PyOpenGL 2.x, see the Upgrading section below.

- - - - - -

Error Handling

- - - - - - - -

As with previous versions of -PyOpenGL, PyOpenGL 3.x tries to follow Python's

- - - - - - - -

Errors -should never pass silently.

- - - - - - - -

philosophy, rather than -OpenGL's philosophy of always requiring explicit checks for error -conditions.  PyOpenGL functions run the function OpenGL.error.glCheckError -after each function call.  This function is glBegin/glEnd -aware, that is, the glBegin and glEnd functions enable and disable the -checking of errors (because error checking doesn't work between those -calls).

- - - - - -

If you call C-level glBegin/glEnd the error -checking may become confused.  You should explicitly disable error -checking (described below) in such a case.

- - - - - - - -

You can override the error-handler, either to provide your own -custom functionality, or to disable checking entirely.  Error -checking can be entirely disabled by the following code (before -importing anything from the OpenGL namespace, i.e. as the first thing -your top-level script does):

-
import OpenGL
OpenGL.ERROR_CHECKING = False
-

This should only be done by applications, never by -libraries, as disabling error checking entirely makes it much harder to -debug a PyOpenGL application.

-

You can also customise the error-checking functionality rather than disabling it, for -instance, if you will always have a valid context, you could register -the raw glGetError function as the error checker to avoid the overhead -of the context-validity checks:

- - - - - - - -
from OpenGL import error
error.ErrorChecker.registerChecker( myAlternateFunction )
- - - - - - - -

OpenGL-ctypes has a set of -errors defined in the OpenGL.error -module.  It can also raise standard Python exceptions, such as -ValueError or TypeError.  Finally, it can raise ctypes errors -when argument conversion fails. (XXX that's sub-optimal, it has -implementation details poking out to user code).
- - - - - - - -

- - - - - - - -

Wrapper objects catch OpenGL -errors and annotate the error with extra information to make it easier -to debug failures during the wrapping process.

- - - - - -

Tkinter (Legacy GUI) Togl -Support

- - - - - - - -

We have included the Python -wrapper for the Tk Togl widget in the OpenGL-ctypes package.  -We do not, however, currently include the Togl widget itself.  -If you would like to use Togl in your package, please use your system's -package manager to install the Togl package (or compile from -source).  You may have to recompile Python with Tk support as -well.

- - - - - - - -

Performance Tips for Python + OpenGL

- - - - - -

Python is (currently) a fairly slow language due to the incredible -generality of it's execution model.  This means that certain -approaches to coding OpenGL that would work well in a language such a C -or C++ will be painfully slow in Python.  The key idea to remember -is that, as much as possible, you want to push the work of iteration -and repetition into the OpenGL implementation (which is implemented in -C and/or Hardware).

- - - - - -

There are two major approaches taken to accomplishing this:

- - - - - -
    - - - - - -
  • Use array-based geometry
  • - - - - - -
  • Use display-lists
  • - - - - - -
- - - - - -

Array based geometry uses OpenGL 1.1 features (supported almost -everywhere) that allow for passing large arrays of data to be processed -with a single call.  Using numpy (or Numeric) arrays, you can -readily pass your data into those functions without any need for -Python-level iteration.  This is the more flexible of the two -approaches, as it allows for readily mutating the data being rendered -without heavy recompilation costs and allows for special effects such -as translucency.  For static geometry, however, the display-list -approach may be faster.

- - - - - -

Display-list geometry normally uses slower individual-element -rendering functions to render a piece of geometry in a special OpenGL -mode which records the commands used to do the rendering.  In -future rendering passes the geometry can be rendered with a single -call.  You can create trees of display lists (where a root display -list calls dozens of other display-lists) or call multiple display -lists at once from an array.

- - - - - -

Avoiding Array-data Copying

- - - - - -

One of the biggest slowdowns you will see in array-based PyOpenGL code is where you are passing:

- - - - - -
    - - - - - -
  • a compatible but inexactly matching array data-type
  • - - - - - -
  • a non-contiguous array (one which is not stored as a simple data-pointer)
  • - - - - - -
- - - - - -

In these cases PyOpenGL implementation will cause an extra copy -of the data-set every time it is passed into any function.  That -copying, though done at the C level, can cause a signficant unnecessary -overhead.

- - - - - -

The copying is done by default to prevent new -OpenGL coders from being confronted by mystifying errors about -differences between "floats" and "double floats".  It also makes -PyOpenGL 3.x compatible with the PyOpenGL 2.x series.

- - - - - -

PyOpenGL 3.x provides a flag that allows you to raise Errors -in situations where numpy data-arrays are being copied.  You -can use these error messages to optimise your application data-paths to -eliminate the copying.To enable the checking do the following before any other OpenGL imports:

- - - - - -
import OpenGL
OpenGL.ERROR_ON_COPY = True
- - - - - -

This will raise errors of the type:

- - - - - -
OpenGL.error.CopyError
- - - - - -

With a description of the condition and why the copy was to be done.

- - - - - -

Context-specific Data

- - - - - - - -

Because of the way OpenGL and -ctypes handle, for instance, pointers, to array data, it is often -necessary to ensure that a Python data-structure is retained (i.e. not -garbage collected).  This is done by storing the data in an -array of data-values that are indexed by a context-specific -key.  The functions to provide this functionality are provided -by the OpenGL.contextdata -module.

- - - - - - - -

The -key that is used to index the storage array is provided by the platform -module's GetCurrentContext() -function.  The current context is used if the context argument -is passed in as None.
- - - - - - - -

- - - - - - - -

If you are creating and destroying rendering contexts, you need to -be aware of the Context-specific storage.  If you do not -explicitly clean up the storage, you will produce a memory leak of all -of the objects passed in as array data-sources and the like.  You -can either explicitly set the values to None (the standard OpenGL -approach), or use code like the following:

- - - - - -
from OpenGL import contextdata
def cleanupCallback( context=None ):
"""Create a cleanup callback to clear context-specific storage for the current context"""
def callback( context = contextdata.getContext( context ) ):
"""Clean up the context, assumes that the context will *not* render again!"""
contextdata.cleanupContext( context )
return callback
- - - - - -

registering the callback to be called after the context is destroyed.

- - - - - -

It is very important that you call the cleanup -operation after the context is destroyed, as any attempt to render the -context after the cleanup call will almost certainly result in -memory-access errors and potentially core dumps!

- - - - - -

Get Involved

- - - - - -

PyOpenGL is an Open Source project, and PyOpenGL 3.x is written in -Python to allow Python coders to enhance the package.  If you see -something that's wrong, or something that you'd like to fix, let people -know, or fix it and send a patch.  We have documentation for those who are interested in contributing that should help you get started hacking on the code-base.

- - - - - -

Upgrading

- - - - - -

PyOpenGL 3.x tries to be API-compatible with PyOpenGL 2.x as much as -possible, but there are some differences that need to be considered -when porting code:

- - - - - -
    - - - - - -
  • setuptools required
    • You *must* run -setuptools installation in order to register the egg entry points, if -you do not you will have *no* data formats supported and nothing will -work at all
  • numpy versus Numeric
  • - - - - - - - - - - -
      - - - - - -
    • PyOpenGL 2.x used (only) the older "Numeric" module. - PyOpenGL 3.x can use Numeric (with an optional C extension), but -uses numpy by default.
    • - - - - - - - - - - -
  • strings deprecated as array return-types for all save image data
    • PyOpenGL -2.x would normally return your GL_UNSIGNED_BYTE data as strings. - We continue to support this for image operations (glGetTexImage, -glReadPixels), but we provide a way to turn off the behaviour and -receive your configured Numpy/Ctypes return data-type for your -image-data queries (OpenGL.UNSIGNED_BYTE_IMAGES_AS_STRING)
    - - - - - -
  • different error types
  • - - - - - - - - - - -
      - - - - - -
    • In a number of locations PyOpenGL 3.x will raise a different -error type than PyOpenGL 2.x [XXX document which cases, at minimum -every ctypes-level error is new (and should be eliminated, likely)]
    • - - - - - - - - - - -
    - - - - - -
  • no "contiguous" function
  • - - - - - - - - - - -
      - - - - - -
    • This function was provided to allow users to force a Numeric -array to be a contiguous data-structure.  Given that PyOpenGL 3.x -is polyglot with regard to Numeric modules, it does not provide the -function any more.  See the vrml.array module's contiguous function for an example of how to write your own such function.
    • - - - - - - - - - - -
  • Togl support is deprecated/unsupported
    • Togl can be installed from the resurrected Togl project on SourceForge.  We continue to distribute the wrapper.
  • Performance decrease
    • The new architecture, while far more flexible than PyOpenGL 2.x is far slower than the C-coded version 2.x.
    • Getting -around this is pretty much "more of the same", i.e. use display lists -and arrays (preferably Vertex-buffer objects) religously (See Performance Tips above)
    - - - - - -
  • [XXX there's more, I'm sure]
  • - - - - - -
- - - - - - - - - - - - - - \ No newline at end of file diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/license.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/license.txt --- pyopengl-3.0.0~b6/license.txt 2008-05-04 22:24:49.000000000 +0100 +++ pyopengl-3.0.0/license.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,126 +0,0 @@ -OpenGL-ctypes License - - Copyright (c) 2005-2007, Michael C. Fletcher and 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. - - The name of Michael C. Fletcher, or the name of any Contributor, - may not be used to endorse or promote products derived from this - software without specific prior written permission. - - THIS SOFTWARE IS NOT FAULT TOLERANT AND SHOULD NOT BE USED IN ANY - SITUATION ENDANGERING HUMAN LIFE OR PROPERTY. - - 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 HOLDERS AND 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. - -OpenGL-ctypes includes code from the PyOpenGL 2.x series licensed under -version 3 of the PyOpenGL License (BSD-style): - - PyOpenGL License (v3) - - PyOpenGL is based on PyOpenGL 1.5.5, Copyright © 1997-1998 by - James Hugunin, Cambridge MA, USA, Thomas Schwaller, Munich, Germany - and David Ascher, San Francisco CA, USA. - - Contributors to the PyOpenGL project in addition to those listed - above include: - * David Konerding - * Soren Renner - * Rene Liebscher - * Randall Hopper - * Michael Fletcher - * Thomas Malik - * Thomas Hamelryck - * Jack Jansen - * Michel Sanner - * Tarn Weisner Burton - * Andrew Cox - * Rene Dudfield - - PyOpenGL is Copyright (c) 1997-1998, 2000-2006 by the 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. - * The names of the contributors may not 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 - HOLDERS 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. - -OpenGL-ctypes includes code from the Pyglet project, licensed under the -Pyglet License (BSD Style): - - Copyright (c) 2006-2008 Alex Holkner - 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. - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/MANIFEST.in /tmp/6jwPQaot5C/pyopengl-3.0.0/MANIFEST.in --- pyopengl-3.0.0~b6/MANIFEST.in 2008-07-27 22:25:05.000000000 +0100 +++ pyopengl-3.0.0/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -global-exclude *.odt *.odp .cvsignore *.diff -exclude src/*.h src/*.xml src/*.zip src/*.pdf src/*.zip src/*.txt diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/metadata.py /tmp/6jwPQaot5C/pyopengl-3.0.0/metadata.py --- pyopengl-3.0.0~b6/metadata.py 2006-10-16 03:50:18.000000000 +0100 +++ pyopengl-3.0.0/metadata.py 2008-12-08 04:16:32.000000000 +0000 @@ -8,9 +8,9 @@ ][0], author = 'Mike C. Fletcher', author_email = 'mcfletch@vrplumber.com', - url = 'http://pyopengl.sourceforge.net/ctypes/', + url = 'http://pyopengl.sourceforge.net', license = 'BSD', - download_url = "http://sourceforge.net/project/showfiles.php?group_id=5988", + download_url = "https://sourceforge.net/project/showfiles.php?group_id=5988&package_id=6035", keywords = 'Graphics,3D,OpenGL,GLU,GLUT,GLE,GLX,EXT,ARB,Mesa,ctypes', classifiers = [ """License :: OSI Approved :: BSD License""", diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/arraydatatype.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/arraydatatype.py --- pyopengl-3.0.0~b6/OpenGL/arrays/arraydatatype.py 2008-09-08 04:13:50.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/arraydatatype.py 2009-03-04 07:35:56.000000000 +0000 @@ -15,37 +15,22 @@ """ typeConstant = None def getHandler( cls, value ): - """Retrieve a handler for the given value, raise error on lookup failure""" - typ = type( value ) - try: - handler = cls.TYPE_REGISTRY.get( typ ) - except AttributeError, err: - formathandler.FormatHandler.loadAll() - cls.TYPE_REGISTRY = formathandler.FormatHandler.TYPE_REGISTRY - handler = cls.TYPE_REGISTRY.get( typ ) - if handler is None: - handler = plugins.FormatHandler.match( typ ) - if handler is None: - if hasattr( typ, '__mro__' ): - for base in typ.__mro__: - handler = cls.TYPE_REGISTRY.get( base ) - if handler is None: - handler = plugins.FormatHandler.match( base ) - if handler: - handler = cls.TYPE_REGISTRY[ base ] - handler.registerEquivalent( typ, base ) - cls.TYPE_REGISTRY[ typ ] = handler - return handler - raise TypeError( - """No array-type handler for type %r (value: %s) registered"""%( - typ, repr(value)[:50] - ) - ) - return handler + """Retrieve FormatHandler for given value + + This method is replaced by the FormatHandler registry + once the registry is initialized... + """ + formathandler.FormatHandler.loadAll() + cls.getHandler = formathandler.FormatHandler.TYPE_REGISTRY + return cls.getHandler( value ) getHandler = classmethod( getHandler ) def from_param( cls, value ): """Given a value in a known data-pointer type, convert to a ctypes pointer""" - return cls.getHandler(value).from_param( value ) + try: + return cls.getHandler(value).from_param( value, cls.typeConstant ) + except Exception, err: + import pdb + pdb.set_trace() from_param = classmethod( logs.logOnFail( from_param, log ) ) def dataPointer( cls, value ): """Given a value in a known data-pointer type, return long for pointer""" @@ -53,7 +38,7 @@ return cls.getHandler(value).dataPointer( value ) except Exception, err: log.warn( - """Failure in from_param for %s instance %s""", type(value), value, + """Failure in dataPointer for %s instance %s""", type(value), value, ) raise dataPointer = classmethod( logs.logOnFail( dataPointer, log ) ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/ctypesarrays.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/ctypesarrays.py --- pyopengl-3.0.0~b6/OpenGL/arrays/ctypesarrays.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/ctypesarrays.py 2008-12-20 16:01:54.000000000 +0000 @@ -12,9 +12,12 @@ class CtypesArrayHandler( formathandler.FormatHandler ): """Ctypes Array-type-specific data-type handler for OpenGL""" - from_param = staticmethod( ctypes.byref ) + @classmethod + def from_param( cls, value, typeCode=None ): + return ctypes.byref( value ) dataPointer = staticmethod( ctypes.addressof ) HANDLED_TYPES = (_ctypes.Array, ) + isOutput = True def voidDataPointer( cls, value ): """Given value in a known data-pointer type, return void_p for pointer""" return ctypes.byref( value ) @@ -43,12 +46,14 @@ ) def arraySize( self, value, typeCode = None ): """Given a data-value, calculate dimensions for the array""" - dims = 1 - for base in self.types( value ): - length = getattr( base, '_length_', None) - if length is not None: + try: + return value.__class__.__component_count__ + except AttributeError, err: + dims = 1 + for length in self.dims( value ): dims *= length - return dims + value.__class__.__component_count__ = dims + return dims def arrayByteCount( self, value, typeCode = None ): """Given a data-value, calculate number of bytes required to represent""" return ctypes.sizeof( value ) @@ -62,18 +67,28 @@ dimObject = None def dims( self, value ): """Produce iterable of all dimensions""" - for base in self.types( value ): - length = getattr( base, '_length_', None) - if length is not None: - yield length + try: + return value.__class__.__dimensions__ + except AttributeError, err: + dimensions = [] + for base in self.types( value ): + length = getattr( base, '_length_', None) + if length is not None: + dimensions.append( length ) + dimensions = tuple( dimensions ) + value.__class__.__dimensions__ = dimensions + return dimensions def asArray( self, value, typeCode=None ): """Convert given value to an array value of given typeCode""" return value def unitSize( self, value, typeCode=None ): """Determine unit size of an array (if possible)""" - for dim in self.dims( value ): - pass - return dim + try: + return value.__class__.__min_dimension__ + except AttributeError, err: + dim = self.dims( value )[-1] + value.__class__.__min_dimension__ = dim + return dim def dimensions( self, value, typeCode=None ): """Determine dimensions of the passed array value (if possible)""" return tuple( self.dims(value) ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/ctypesparameters.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/ctypesparameters.py --- pyopengl-3.0.0~b6/OpenGL/arrays/ctypesparameters.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/ctypesparameters.py 2008-12-20 16:01:54.000000000 +0000 @@ -13,8 +13,9 @@ class CtypesParameterHandler( formathandler.FormatHandler ): """Ctypes Paramater-type-specific data-type handler for OpenGL""" + isOutput = True HANDLED_TYPES = (ParamaterType, _ctypes._SimpleCData) - def from_param( cls, value ): + def from_param( cls, value, typeCode=None ): if isinstance( value, ParamaterType ): return value else: diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/ctypespointers.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/ctypespointers.py --- pyopengl-3.0.0~b6/OpenGL/arrays/ctypespointers.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/ctypespointers.py 2008-12-20 16:01:54.000000000 +0000 @@ -14,14 +14,9 @@ them for output of data, but they can be used for certain types of input... """ - from_param = staticmethod( ctypes.byref ) - def from_param( cls, value ): + @classmethod + def from_param( cls, value, typeCode=None ): return value - from_param = classmethod( from_param ) -## if isinstance( value, ctypes._Pointer ): -## return value -## else: -## return ctypes.byref( value ) dataPointer = staticmethod( ctypes.addressof ) HANDLED_TYPES = (ctypes._Pointer, ) def voidDataPointer( cls, value ): diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/formathandler.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/formathandler.py --- pyopengl-3.0.0~b6/OpenGL/arrays/formathandler.py 2008-09-08 04:26:35.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/formathandler.py 2009-03-31 15:54:49.000000000 +0100 @@ -5,6 +5,42 @@ import ctypes from OpenGL import plugins +try: +# raise ImportError( 'Testing without wrapper' ) + from OpenGL_accelerate.wrapper import HandlerRegistry +except ImportError, err: + class HandlerRegistry( dict ): + def __init__( self, match ): + self.match = match + def __call__( self, value ): + try: + typ = value.__class__ + except AttributeError, err: + # Bug report that at least one type of array can + # be passed in without __class__ available, likely + # on an older Python or with old Numeric. + typ = type(value) + handler = self.get( typ ) + if handler is None: + if hasattr( typ, '__mro__' ): + for base in typ.__mro__: + handler = self.get( base ) + if handler is None: + handler = self.match( base ) + if handler: + handler = handler.load() + if handler: + self[ base ] = handler + handler.registerEquivalent( typ, base ) + self[ typ ] = handler + return handler + raise TypeError( + """No array-type handler for type %r (value: %s) registered"""%( + typ, repr(value)[:50] + ) + ) + return handler + class FormatHandler( object ): """Abstract class describing the handler interface @@ -12,13 +48,14 @@ which allow it to manipulate (and create) instances of the data-type it represents. """ - TYPE_REGISTRY = {} + TYPE_REGISTRY = HandlerRegistry(plugins.FormatHandler.match) LAZY_TYPE_REGISTRY = {} # more registrations HANDLER_REGISTRY = {} baseType = None typeConstant = None HANDLED_TYPES = () preferredOutput = None + isOutput = False GENERIC_OUTPUT_PREFERENCES = ['numpy','numeric','ctypesarrays'] ALL_OUTPUT_HANDLERS = [] def loadAll( cls ): @@ -34,8 +71,6 @@ } """ for entrypoint in plugins.FormatHandler.all(): -# if not entrypoint.check: -# # load automatically... cls.loadPlugin( entrypoint ) @classmethod def loadPlugin( cls, entrypoint ): @@ -44,9 +79,13 @@ try: plugin_class = entrypoint.load() except ImportError, err: - from OpenGL import logs + from OpenGL import logs,WARN_ON_FORMAT_UNAVAILABLE log = logs.getLog( 'OpenGL.formathandler' ) - log.info( + if WARN_ON_FORMAT_UNAVAILABLE: + logFunc = log.warn + else: + logFunc = log.info + logFunc( 'Unable to load registered array format handler %s:\n%s', entrypoint.name, log.getException( err ) ) @@ -54,7 +93,7 @@ handler = plugin_class() handler.register( handler.HANDLED_TYPES ) cls.HANDLER_REGISTRY[ entrypoint.name ] = handler - if hasattr( handler, 'zeros' ): + if handler.isOutput: cls.ALL_OUTPUT_HANDLERS.append( handler ) entrypoint.loaded = True @classmethod @@ -70,10 +109,15 @@ return cls.TYPE_REGISTRY[ type ] raise KeyError( """Unable to find data-format handler for %s"""%( type,)) loadAll = classmethod( loadAll ) + @classmethod def chooseOutput( cls, preferred=None ): + """Initialize and setup our output type""" + cls.loadAll() + cls.chooseOutput = cls.chooseOutput_final + return cls.chooseOutput( preferred ) + @classmethod + def chooseOutput_final( cls, preferred=None ): """Choose our output-capable plugin""" - if not cls.TYPE_REGISTRY: - cls.loadAll() if preferred is not None: cls.preferredOutput = preferred handler = None @@ -93,7 +137,6 @@ ) handler.registerReturn() return handler - chooseOutput = classmethod( chooseOutput ) def register( self, types=None ): """Register this class as handler for given set of types""" @@ -107,7 +150,7 @@ def registerEquivalent( self, typ, base ): """Register a sub-class for handling as the base-type""" - def from_param( self, value ): + def from_param( self, value, typeCode=None ): """Convert to a ctypes pointer value""" def dataPointer( self, value ): """return long for pointer value""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/lists.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/lists.py --- pyopengl-3.0.0~b6/OpenGL/arrays/lists.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/lists.py 2009-01-03 22:06:28.000000000 +0000 @@ -11,13 +11,13 @@ from OpenGL import constants, constant from OpenGL.arrays import formathandler -try: - from OpenGL.arrays import numpymodule -except ImportError, err: - # we are required... - HANDLED_TYPES = (list,tuple) -else: - HANDLED_TYPES = () +#try: +# from OpenGL.arrays import numpymodule +#except ImportError, err: +# # we are required... +HANDLED_TYPES = (list,tuple) +#else: +# HANDLED_TYPES = () import operator class ListHandler( formathandler.FormatHandler ): @@ -34,9 +34,17 @@ arrays, not Python lists, this is done for convenience in coding the implementation, mostly. """ - from_param = staticmethod( ctypes.byref ) + def from_param( self, instance, typeCode=None ): + try: + return ctypes.byref( instance ) + except TypeError, err: + array = self.asArray( instance, typeCode ) + pp = ctypes.c_void_p( ctypes.addressof( array ) ) + pp._temporary_array_ = (array,) + return pp dataPointer = staticmethod( ctypes.addressof ) HANDLED_TYPES = HANDLED_TYPES + isOutput = True def voidDataPointer( cls, value ): """Given value in a known data-pointer type, return void_p for pointer""" return ctypes.byref( value ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/nones.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/nones.py --- pyopengl-3.0.0~b6/OpenGL/arrays/nones.py 2006-11-19 06:29:49.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/arrays/nones.py 2008-12-20 16:01:54.000000000 +0000 @@ -6,7 +6,7 @@ class NoneHandler( formathandler.FormatHandler ): """Numpy-specific data-type handler for OpenGL""" HANDLED_TYPES = (type(None), ) - def from_param( self, value ): + def from_param( self, value, typeCode=None ): """Convert to a ctypes pointer value""" return None def dataPointer( self, value ): diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/numarrays.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/numarrays.py --- pyopengl-3.0.0~b6/OpenGL/arrays/numarrays.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/numarrays.py 2008-12-20 16:01:54.000000000 +0000 @@ -22,9 +22,12 @@ class NumarrayHandler( formathandler.FormatHandler ): """Numarray-specific data-type handler for OpenGL""" - from_param = staticmethod( dataPointer ) + @classmethod + def from_param( cls, value, typeCode=None ): + return dataPointer( value ) dataPointer = staticmethod( dataPointer ) HANDLED_TYPES = (numarray.ArrayType, ) + isOutput = True def voidDataPointer( cls, value ): """Given value in a known data-pointer type, return void_p for pointer""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/numbers.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/numbers.py --- pyopengl-3.0.0~b6/OpenGL/arrays/numbers.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/numbers.py 2008-12-20 16:01:54.000000000 +0000 @@ -18,10 +18,10 @@ constants.GLclampf, constants.GLclampd, ) - def from_param( self, value ): + def from_param( self, value, typeCode=None ): """If it's a ctypes value, pass on, otherwise do asArray""" - if not isinstance( value, TARGET_TYPE_TUPLE ): - return self.asArray( value ) + if not value.__class__ in TARGET_TYPES: + return self.asArray( value, typeCode=typeCode ) return ctypes.byref(value) dataPointer = from_param def zeros( self, dims, typeCode=None ): @@ -32,10 +32,10 @@ raise NotImplemented( """Number data-type not allowed as an output array format""" ) def arrayToGLType( self, value ): """Given a value, guess OpenGL type of the corresponding pointer""" - if isinstance( value, TARGET_TYPE_TUPLE ): - return TARGET_TYPES[ type(value) ] + if value.__class__ in TARGET_TYPES: + return TARGET_TYPES[ value.__class__ ] else: - guess = DEFAULT_TYPES.get( type(value)) + guess = DEFAULT_TYPES.get( value.__class__ ) if guess is not None: return guess[1] raise TypeError( """Can't guess array data-type for %r types"""%(type(value))) @@ -44,7 +44,7 @@ return 1 def asArray( self, value, typeCode=None ): """Convert given value to an array value of given typeCode""" - if isinstance( value, TARGET_TYPE_TUPLE ): + if value.__class__ in TARGET_TYPES: return value targetType = CONSTANT_TO_TYPE.get( typeCode ) if targetType is not None: @@ -86,4 +86,6 @@ ( c, ctypes.sizeof( getattr( constants, n) ) ) for (n,c) in constants.ARRAY_TYPE_TO_CONSTANT ]) + del n,c + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/numeric.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/numeric.py --- pyopengl-3.0.0~b6/OpenGL/arrays/numeric.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/numeric.py 2008-12-20 16:01:54.000000000 +0000 @@ -24,7 +24,10 @@ class NumericHandler( formathandler.FormatHandler ): """Numeric-specific data-type handler for OpenGL""" HANDLED_TYPES = (Numeric.ArrayType, ) - from_param = staticmethod( dataPointer ) + isOutput = True + @classmethod + def from_param( cls, value, typeCode=None ): + return dataPointer( value ) dataPointer = staticmethod( dataPointer ) def voidDataPointer( cls, value ): """Given value in a known data-pointer type, return void_p for pointer""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/numpymodule.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/numpymodule.py --- pyopengl-3.0.0~b6/OpenGL/arrays/numpymodule.py 2008-09-13 15:56:46.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/numpymodule.py 2009-01-03 20:00:19.000000000 +0000 @@ -13,55 +13,55 @@ import OpenGL import ctypes -# numpy's array interface has changed over time :( -testArray = numpy.array( [1,2,3,4],'i' ) -if hasattr( testArray, 'ctypes' ): - if hasattr( testArray.ctypes.data, 'value' ): - def dataPointer( self, instance ): - """Use newer numpy's proper ctypes interface""" +try: + from OpenGL_accelerate.numpy_accel import dataPointer +except ImportError, err: + # numpy's array interface has changed over time :( + testArray = numpy.array( [1,2,3,4],'i' ) + # Numpy's "ctypes" interface actually creates a new ctypes object + # in python for every access of the .ctypes attribute... which can take + # ridiculously large periods when you multiply it by millions of iterations +# if hasattr( testArray, 'ctypes' ): +# if hasattr( testArray.ctypes.data, 'value' ): +# def dataPointer( cls, instance ): +# """Use newer numpy's proper ctypes interface""" +# try: +# return instance.ctypes.data.value +# except AttributeError, err: +# instance = cls.asArray( instance ) +# return instance.ctypes.data.value +# else: +# def dataPointer( cls, instance ): +# """Use newer numpy's proper ctypes interface""" +# try: +# return instance.ctypes.data +# except AttributeError, err: +# instance = cls.asArray( instance ) +# return instance.ctypes.data + if hasattr(testArray,'__array_interface__'): + def dataPointer( cls, instance ): + """Convert given instance to a data-pointer value (integer)""" try: - return instance.ctypes.data.value + return long(instance.__array_interface__['data'][0]) except AttributeError, err: - instance = self.asArray( instance ) - return instance.ctypes.data.value + instance = cls.asArray( instance ) + try: + return long(instance.__array_interface__['data'][0]) + except AttributeError, err: + return long(instance.__array_data__[0],0) else: - def dataPointer( self, instance ): - """Use newer numpy's proper ctypes interface""" - try: - return instance.ctypes.data - except AttributeError, err: - instance = self.asArray( instance ) - return instance.ctypes.data -# def voidDataPointer( self, instance ): -# """Get a void data pointer for the instance""" -# try: -# return instance.ctypes.data_as( ctypes.c_void_p ) -# except AttributeError, err: -# instance = self.asArray( instance ) -# return instance.ctypes.data_as( ctypes.c_void_p ) -elif hasattr(testArray,'__array_data__'): - def dataPointer( self, instance ): - """Convert given instance to a data-pointer value (integer)""" - try: - return long(instance.__array_data__[0],0) - except AttributeError, err: - instance = self.asArray( instance ) + def dataPointer( cls, instance ): + """Convert given instance to a data-pointer value (integer)""" try: - return long(instance.__array_interface__['data'][0]) - except AttributeError, err: return long(instance.__array_data__[0],0) -else: - def dataPointer( self, instance ): - """Convert given instance to a data-pointer value (integer)""" - try: - return long(instance.__array_interface__['data'][0]) - except AttributeError, err: - instance = self.asArray( instance ) - try: - return long(instance.__array_interface__['data'][0]) except AttributeError, err: - return long(instance.__array_data__[0],0) -del testArray + instance = cls.asArray( instance ) + try: + return long(instance.__array_interface__['data'][0]) + except AttributeError, err: + return long(instance.__array_data__[0],0) + del testArray + dataPointer = classmethod( dataPointer ) from OpenGL import constants, constant from OpenGL.arrays import formathandler @@ -75,15 +75,16 @@ if we have to copy an array object in order to produce a contiguous array of the correct type. """ - HANDLED_TYPES = (numpy.ndarray, list, tuple ) + HANDLED_TYPES = (numpy.ndarray,)# list, tuple ) dataPointer = dataPointer - def from_param( self, instance ): - return ctypes.c_void_p( self.dataPointer( instance )) + isOutput = True ERROR_ON_COPY = OpenGL.ERROR_ON_COPY - def zeros( self, dims, typeCode ): + @classmethod + def zeros( cls, dims, typeCode ): """Return Numpy array of zeros in given size""" return numpy.zeros( dims, GL_TYPE_TO_ARRAY_MAPPING.get(typeCode) or typeCode ) - def arrayToGLType( self, value ): + @classmethod + def arrayToGLType( cls, value ): """Given a value, guess OpenGL type of the corresponding pointer""" typeCode = value.dtype.char constant = ARRAY_TO_GL_TYPE_MAPPING.get( typeCode ) @@ -94,34 +95,38 @@ ) ) return constant - def arraySize( self, value, typeCode = None ): + @classmethod + def arraySize( cls, value, typeCode = None ): """Given a data-value, calculate dimensions for the array""" try: dimValue = value.shape except AttributeError, err: # XXX it's a list or a tuple, how do we determine dimensions there??? # for now we'll just punt and convert to an array first... - value = self.asArray( value, typeCode ) + value = cls.asArray( value, typeCode ) dimValue = value.shape dims = 1 for dim in dimValue: dims *= dim return dims - def arrayByteCount( self, value, typeCode = None ): + @classmethod + def arrayByteCount( cls, value, typeCode = None ): """Given a data-value, calculate number of bytes required to represent""" try: - return self.arraySize( value, typeCode ) * value.itemsize + return cls.arraySize( value, typeCode ) * value.itemsize except AttributeError, err: - value = self.asArray( value, typeCode ) - return self.arraySize( value, typeCode ) * value.itemsize - def asArray( self, value, typeCode=None ): + value = cls.asArray( value, typeCode ) + return cls.arraySize( value, typeCode ) * value.itemsize + @classmethod + def asArray( cls, value, typeCode=None ): """Convert given value to an array value of given typeCode""" if value is None: return value else: - return self.contiguous( value, typeCode ) + return cls.contiguous( value, typeCode ) - def contiguous( self, source, typeCode=None ): + @classmethod + def contiguous( cls, source, typeCode=None ): """Get contiguous array from source source -- numpy Python array (or compatible object) @@ -137,10 +142,17 @@ down rendering. """ typeCode = GL_TYPE_TO_ARRAY_MAPPING.get( typeCode ) - if isinstance( source, numpy.ndarray): - if source.flags.contiguous and (typeCode is None or typeCode==source.dtype.char): + try: + contiguous = source.flags.contiguous + except AttributeError, err: + if typeCode: + return numpy.ascontiguousarray( source, typeCode ) + else: + return numpy.ascontiguousarray( source ) + else: + if contiguous and (typeCode is None or typeCode==source.dtype.char): return source - elif (source.flags.contiguous and self.ERROR_ON_COPY): + elif (contiguous and cls.ERROR_ON_COPY): from OpenGL import error raise error.CopyError( """Array of type %r passed, required array of type %r""", @@ -152,7 +164,7 @@ # XXX Guard against wacky conversion types like uint to float, where # we really don't want to have the C-level conversion occur. # XXX ascontiguousarray is apparently now available in numpy! - if self.ERROR_ON_COPY: + if cls.ERROR_ON_COPY: from OpenGL import error raise error.CopyError( """Non-contiguous array passed""", @@ -161,16 +173,32 @@ if typeCode is None: typeCode = source.dtype.char return numpy.ascontiguousarray( source.astype( typeCode ), typeCode ) - elif typeCode: - return numpy.ascontiguousarray( source, typeCode ) - else: - return numpy.ascontiguousarray( source ) - def unitSize( self, value, typeCode=None ): + @classmethod + def unitSize( cls, value, typeCode=None ): """Determine unit size of an array (if possible)""" return value.shape[-1] - def dimensions( self, value, typeCode=None ): + @classmethod + def dimensions( cls, value, typeCode=None ): """Determine dimensions of the passed array value (if possible)""" return value.shape +try: + raise ImportError( 'As of Jan 3, 2009, the FromParam module is causing a weird deallocation failure when the ctypes pointer object tries to clean up the numpy array object (sigh)' ) + from OpenGL_accelerate.numpy_formathandler import FromParam + from_param = FromParam( NumpyHandler.dataPointer, NumpyHandler.asArray ) + #raise ImportError( """Currently some diff between the Cython and python version causes core dumps""" ) +except ImportError, err: + @classmethod + def from_param( cls, instance, typeCode=None ): + try: + pointer = cls.dataPointer( instance ) + except TypeError, err: + array = cls.asArray( instance, typeCode ) + pp = cls.dataPointer( array ) + pp._temporary_array_ = (array,) + return pp + else: + return ctypes.c_void_p( pointer ) +NumpyHandler.from_param = from_param try: numpy.array( [1], 's' ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/strings.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/strings.py --- pyopengl-3.0.0~b6/OpenGL/arrays/strings.py 2008-06-15 22:44:21.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/strings.py 2009-03-30 17:28:04.000000000 +0100 @@ -1,15 +1,27 @@ """String-array-handling code for PyOpenGL """ -from OpenGL.arrays._strings import dataPointer +#from OpenGL.arrays._strings import dataPointer as old from OpenGL import constants from OpenGL.arrays import formathandler import ctypes +psas = ctypes.pythonapi.PyString_AsString +# it's a c_char_p, but if we use that then the code will +# attempt to use null-terminated versus arbitrarily sized +psas.restype = ctypes.c_size_t +#psas.restype = ctypes.c_char_p + +def dataPointer( value, typeCode=None ): + new = psas( ctypes.py_object(value) ) + return new + class StringHandler( formathandler.FormatHandler ): """String-specific data-type handler for OpenGL""" HANDLED_TYPES = (str, ) - from_param = staticmethod( dataPointer ) - dataPointer = staticmethod( dataPointer ) +# @classmethod +# def from_param( cls, value, typeCode=None ): +# return dataPointer( value ) + dataPointer = from_param = staticmethod( dataPointer ) def zeros( self, dims, typeCode=None ): """Currently don't allow strings as output types!""" raise NotImplemented( """Don't currently support strings as output arrays""" ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/arrays/vbo.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/arrays/vbo.py --- pyopengl-3.0.0~b6/OpenGL/arrays/vbo.py 2008-09-13 15:56:46.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/arrays/vbo.py 2009-03-04 07:35:16.000000000 +0000 @@ -136,6 +136,8 @@ """Create the internal buffer(s)""" assert not self.buffers, """Already created the buffer""" self.buffers = [ long(self.implementation.glGenBuffers(1)) ] + self.target = self.resolve( self.target ) + self.usage = self.resolve( self.usage ) self._DELETERS_[ id(self) ] = weakref.ref( self, deleter( self.buffers, id(self), self.implementation )) return self.buffers def copy_data( self ): @@ -146,12 +148,12 @@ while self._copy_segments: start,size,data = self._copy_segments.pop(0) dataptr = ArrayDatatype.voidDataPointer( data ) - self.implementation.glBufferSubData(self.resolve(self.target), start, size, dataptr) + self.implementation.glBufferSubData(self.target, start, size, dataptr) else: self.implementation.glBufferData( - self.resolve(self.target), + self.target, self.data, - self.resolve(self.usage) + self.usage, ) self.copied = True def delete( self ): @@ -166,11 +168,31 @@ """Bind this buffer for use in vertex calls""" if not self.buffers: buffers = self.create_buffers() - self.implementation.glBindBuffer( self.resolve(self.target), self.buffers[0]) + self.implementation.glBindBuffer( self.target, self.buffers[0]) self.copy_data() def unbind( self ): """Unbind the buffer (make normal array operations active)""" - self.implementation.glBindBuffer( self.resolve(self.target),0 ) + self.implementation.glBindBuffer( self.target,0 ) + + def __add__( self, other ): + """Add an integer to this VBO (offset)""" + if hasattr( other, 'offset' ): + other = other.offset + assert isinstance( other, int ), """Only know how to add integer offsets""" + return VBOOffset( self, other ) + +class VBOOffset( object ): + def __init__( self, vbo, offset ): + self.vbo = vbo + self.offset = offset + def __getattr__( self, key ): + if key != 'vbo': + return getattr( self.vbo, key ) + raise AttributeError( 'No %r key in VBOOffset'%(key,)) + def __add__( self, other ): + if hasattr( other, 'offset' ): + other = other.offset + return VBOOffset( self.vbo, self.offset + other ) def deleter( buffers, key, implementation ): """Produce a deleter callback to delete the given buffer""" @@ -194,7 +216,7 @@ Is always NULL, to indicate use of the bound pointer """ return 0 - def from_param( self, instance ): + def from_param( self, instance, typeCode=None ): return ctypes.c_void_p( 0 ) def zeros( self, dims, typeCode ): """Not implemented""" @@ -216,6 +238,19 @@ """Determine dimensions of the passed array value (if possible)""" return ArrayDatatype.dimensions( value.data ) +class VBOOffsetHandler( VBOHandler ): + def dataPointer( self, instance ): + """Retrieve data-pointer from the instance's data + + Is always NULL, to indicate use of the bound pointer + """ + return instance.offset + def from_param( self, instance, typeCode=None ): + return ctypes.c_void_p( instance.offset ) + HANDLER = VBOHandler() HANDLER.loadAll() # otherwise just the VBO would get loaded :) HANDLER.register( [ VBO ] ) + +HANDLER = VBOOffsetHandler() +HANDLER.register( [ VBOOffset ] ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/constants.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/constants.py --- pyopengl-3.0.0~b6/OpenGL/constants.py 2008-01-07 18:11:28.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/constants.py 2008-12-20 16:01:54.000000000 +0000 @@ -20,7 +20,7 @@ import OpenGL if OpenGL.ALLOW_NUMPY_SCALARS: original = baseType.from_param - def from_param( x ): + def from_param( x, typeCode=None ): try: return original( x ) except TypeError, err: diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/converters.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/converters.py --- pyopengl-3.0.0~b6/OpenGL/converters.py 2006-09-16 22:05:02.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/converters.py 2008-12-08 03:25:35.000000000 +0000 @@ -103,40 +103,40 @@ )) # Now the concrete classes... -class CallFuncPyConverter( PyConverter ): - """PyConverter that takes a callable and calls it on incoming""" - def __init__( self, function ): - """Store the function""" - self.function = function - def __call__( self, incoming, function, argument ): - """Call our function on incoming""" - return self.function( incoming ) -class DefaultCConverter( CConverter ): - """NULL or Default CConverter, returns same-named Python argument - - Used primarily to allow for specifying a converter that explicitly - says "use the default behaviour". This is *not* a finalise-ing - converter, it is passed in the index explicitly and just retrieves - that index from pyArgs when called. - - Raises informative errors if the index cannot be resolved in pyArgs - """ - def __init__( self, index ): - """Just store index for future access""" - self.index = index - def __call__( self, pyArgs, index, wrapper ): - """Return pyArgs[self.index] or raise a ValueError""" - try: - return pyArgs[ self.index ] - except IndexError, err: - raise ValueError( - """%s expected parameter %r at index %r (%s), but pyArgs only length %s"""%( - self.wrappedOperation.__name__, - argName, - pyIndex, - ", ".join( self.pyConverterNames ), - len(pyArgs ) - )) +try: + from OpenGL_accelerate.wrapper import CallFuncPyConverter, DefaultCConverter +except ImportError, err: + class CallFuncPyConverter( PyConverter ): + """PyConverter that takes a callable and calls it on incoming""" + def __init__( self, function ): + """Store the function""" + self.function = function + def __call__( self, incoming, function, argument ): + """Call our function on incoming""" + return self.function( incoming ) + class DefaultCConverter( CConverter ): + """NULL or Default CConverter, returns same-named Python argument + + Used primarily to allow for specifying a converter that explicitly + says "use the default behaviour". This is *not* a finalise-ing + converter, it is passed in the index explicitly and just retrieves + that index from pyArgs when called. + + Raises informative errors if the index cannot be resolved in pyArgs + """ + def __init__( self, index ): + """Just store index for future access""" + self.index = index + def __call__( self, pyArgs, index, wrapper ): + """Return pyArgs[self.index] or raise a ValueError""" + try: + return pyArgs[ self.index ] + except IndexError, err: + raise ValueError( + """Expected parameter index %r, but pyArgs only length %s"""%( + self.index, + len(pyArgs ) + )) class returnCArgument( ReturnValues ): """ReturnValues returning the named cArgs value""" Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/gle32.dll and /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/gle32.dll differ diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/gle_AUTHORS /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/gle_AUTHORS --- pyopengl-3.0.0~b6/OpenGL/DLLS/gle_AUTHORS 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/DLLS/gle_AUTHORS 2003-03-18 06:04:00.000000000 +0000 @@ -0,0 +1,9 @@ + +Original Author & Maintainer: +Linas Vepstas wrote virtually all of this + +Contributors: +Mark Kilgard formatted the man pages +Jonas Lindemann MS Visual C project files +John A. Boyd Jr. fix to gle.spec + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/gle_COPYING /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/gle_COPYING --- pyopengl-3.0.0~b6/OpenGL/DLLS/gle_COPYING 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/DLLS/gle_COPYING 2001-11-21 07:15:40.000000000 +0000 @@ -0,0 +1,368 @@ + +The different parts of this distribution have two different software +licenses that govern thier use. Both licenses pass the common definition +of 'open source license' as commonly defined (e.g. at http://www.opensource.org). +The licenses, although different, are compatible with each other. + +The applicable licenses are: + +examples, man pages, documentation: Artistic License + A copy of this license is in COPYING.artistic + +source code: IBM standard example source code license (free use, + free distribution, free modification, disclaimer of + warrenty) A copy of this license is in COPYING.src + The file CERTOR.script ('certificate of originality') + documents the provenance of this code. + +-------------------------------------------------------------------- +Alternately, at your choosing, you may choose to accept the source +code and the man pages/documentation under the GPL: the GNU General +Public License version 2, as given below. + +If you use this code, you must accept either the licenses above, or +the GPL. +-------------------------------------------------------------------- + + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/gle_COPYING.src /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/gle_COPYING.src --- pyopengl-3.0.0~b6/OpenGL/DLLS/gle_COPYING.src 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/DLLS/gle_COPYING.src 2009-02-15 01:02:41.000000000 +0000 @@ -0,0 +1,68 @@ +The following agreement applies to the source code in this directory +only! It does *NOT* apply to the HTML documentation or to the demo +programs, or to other items distributed with this package! +--------------------------------------------------------------------- + + + +SOFTWARE AGREEMENT + +PLEASE READ THIS AGREEMENT CAREFULLY BEFORE INSTALLING OR USING THIS +SOFTWARE. IF YOU INSTALL OR USE THIS SOFTWARE, YOU AGREE TO THESE +TERMS. + +This software is owned by International Business Machines Corporation +("IBM"), or its subsidiaries or IBM's suppliers, and is copyrighted and +licensed, not sold. IBM retains title to the software, and grants you a +nonexclusive license for the software. + +Under this license, you may: + +1) use the software on one or more machines at a time; +2) make copies of the software for use or backup purposes within your + enterprise; +3) modify this software and merge it with another program; and +4) make copies of the original file you downloaded and distribute it, + provided that you transfer a copy of this license to the other party. + The other party agrees to these terms by its first use of this software. + +You must reproduce the copyright notice and any other legend of +ownership on each copy or partial copy of the software. + +This software, as provided by IBM, is only intended to assist in the +development of a working software program. The software may not function +as written: additional code is required. In addition, the software may +not compile and/or bind successfully as written. + +IBM PROVIDES THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK +AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD +ANY PART OF THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT, UNLESS +REQUIRED BY APPLICABLE LAW, SHALL IBM BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT +NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES +SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO +OPERATE WITH ANY OTHER PROGRAMS), EVEN IF IBM HAS BEEN ADVISED IN +ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. + +IBM does not warrant that the contents of the software will meet your +requirements, that the software is error-free or that the software does +not infringe on any intellectual property rights of any third party. + +IBM may make improvements and/or changes in the software at any time. + +Changes may or may not be made periodically to the information in the +software; these changes may be reported, for the software included +herein, in new editions. + +References, if any, in the software to IBM products, programs, or +services do not imply that IBM intends to make these available in all +countries in which IBM operates. Any reference to an IBM licensed +program in the software is not intended to state or imply that only +IBM's licensed program may be used. Any functionally equivalent program +may be used. + +The laws of New York State govern this agreement. diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/GLE_WIN32_README.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/GLE_WIN32_README.txt --- pyopengl-3.0.0~b6/OpenGL/DLLS/GLE_WIN32_README.txt 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/DLLS/GLE_WIN32_README.txt 2007-07-01 17:18:52.000000000 +0100 @@ -0,0 +1,6 @@ +This is a Win32 version of the GLE library +compiled as a shared library (DLL) for use with +e.g. Python's ctypes foreign-function interface. + +To install, copy the file gle32.dll to your system32 +directory. \ No newline at end of file Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/glut32.dll and /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/glut32.dll differ diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/DLLS/glut_README.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/DLLS/glut_README.txt --- pyopengl-3.0.0~b6/OpenGL/DLLS/glut_README.txt 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/DLLS/glut_README.txt 2001-11-08 09:41:59.000000000 +0000 @@ -0,0 +1,613 @@ + + + GLUT for Win32 README + --------------------- + + +VERSION/INFO: + + This is GLUT for Win32 version 3.7.6 as of Nov 8th 2001. + See the COPYRIGHT section for distribution and copyright notices. + Send all bug reports and questions for this version of GLUT to + Nate Robins [nate@pobox.com]. + + For more information about GLUT for Win32, see the web page: + www.pobox.com/~nate/glut.html or subscribe to the GLUT for Win32 + mailing list by sending e-mail to majordomo@perp.com with + "subscribe glut" in the body of the message. + + For general information about GLUT, see the GLUT web page: + http://reality.sgi.com/opengl/glut3/glut3.html and be sure to + check the GLUT FAQ first for any questions that you may have: + http://reality.sgi.com/opengl/glut3/glut-faq.html + + +COMPILING/INSTALLATION: + + o Precompiled versions of the DLL and import library can be + found on the GLUT for Win32 web page mentioned above. + + o Microsoft Developer Studio 6 workspace and project files have + been included in the source code distribution. + + To build the glut dll: + First, open Microsoft Developer Studio. + Then, select File -> Open Workspace and find the glut.dsw file + in the file dialog and double-click on it. + Finally, select Build -> Build glut32.dll. + When the build is finished, it will copy: + glut32.dll to %WinDir%\System, + glut32.lib to $(MSDevDir)\..\..\VC98\lib, and + glut.h to $(MSDevDir)\..\..\VC98\include\GL. + + Additional workspace files have been included in the progs, test + and lib directories to build the progs, tests and libs respectively. + + +BORLAND NOTES: + + From what I understand, Borland supplies a utility that + converts Microsoft Visual C++ .libs into Borland compatible + files. Therefore, the best method for Borland users is + probably to get the precompiled versions of the library and + convert the library. To create an import library for Borland + from the DLLs, use the following command (from a command prompt): + IMPLIB glut32.lib glut32.dll + If IMPLIB crashes when called this way, try + IMPLIB glut32.lib glut32.def + using the glut32.def file in this distribution. + + +FORTRAN NOTES: + + Bill Mitchell [william.mitchell@nist.gov] has put considerable + effort into getting GLUT to work with different compilers for + Fortran 90. He indicates that you should copy the f90glut.h + file to your $(MSDevDir)\..\..\VC98\include\GL directory. + Then, just build GLUT as usual. The Fortran 90 interface, f90gl, + can be obtained at http://math.nist.gov/f90gl and contains + installation instructions and usage examples. + + +MISC NOTES: + + o Overlay support is not implemented, nor are there any plans to + implement it in the near future. + + o To customize the windows icon, you can use the resource name + GLUT_ICON. For example, create an icon named "glut.ico", and + create a file called glut.rc that contains the following: + GLUT_ICON ICON glut.ico + then compile the glut.rc file with the following: + rc /r glut + and link the resulting glut.res file into your executable + (just like you would an object file). + Alternatively, you can simply add the glut.rc file to your + project if you are using Microsoft Developer Studio. + + +IMPLEMENTATION DEPENDENT DIFFERENCES: + + There are a few differences between the Win32 version of GLUT + and the X11 version of GLUT. Those are outlined here. Note + that MOST of these differences are allowed by the GLUT + specification. Bugs and unsupported features are outlined in + the UNSUPPORTED/BUGS section. + + o glutInit: + The following command line options have no meaning (and are + ignored) in GLUT for Win32: + -display, -indirect, -direct, -sync. + + o glutInitWindowPosition, glutPositionWindow: + Win32 has two different coordinate systems for windows. + One is in terms of client space and the other is the whole + window space (including the decorations). If you + glutPositionWindow(0, 0), GLUT for Win32 will place the + window CLIENT area at 0, 0. This will cause the window + decorations (title bar and left edge) to be OFF-SCREEN, but + it gives the user the most flexibility in positioning. + HOWEVER, if the user specifies glutInitWindowPosition(0, 0), + the window is placed relative to window space at 0, 0. + This will cause the window to be opened in the upper left + corner with all the decorations showing. This behaviour is + acceptable under the current GLUT specification. + + o glutSetIconTitle, glutSetWindowTitle: + There is no separation between Icon title and Window title + in Win32. Therefore, setting an icon title in Win32 has + no effect. + + o glutSetCursor: + As indicated in the GLUT specification, cursors may be + different on different platforms. This is the case in GLUT + for Win32. For the most part, the cursors will match the + meaning, but not necessarily the shape. Notable exceptions + are the GLUT_CURSOR_INFO & GLUT_CURSOR_SPRAY which use the + crosshair cursor and the GLUT_CURSOR_CYCLE which uses the + 'no' or 'destroy' cursor in Win32. + + o glutVisibilityFunc: + Win32 seems to be unable to determine if a window is fully + obscured. Therefore, the visibility of a GLUT window is + only reflected by its Iconic, Hidden or Shown state. That + is, even if a window is fully obscured, in GLUT for Win32, + it is still "visible". + + o glutEntryFunc: + Window Focus is handled differently in Win32 and X. + Specifically, the "window manager" in Win32 uses a "click to + focus" policy. That is, in order for a window to receive + focus, a mouse button must be clicked in it. Likewise, in + order for a window to loose focus, a mouse button must be + clicked outside the window (or in another window). + Therefore, the Enter and Leave notification provided by GLUT + may behave differently in the Win32 and in X11 versions. + There is a viable workaround for this. A program called + "Tweak UI" is provided by Microsoft which can be used to + change the focus policy in Win32 to "focus follows mouse". + It is available from the Microsoft Web Pages: + http://www.microsoft.com/windows/software/PowerToy.htm + + o glutCopyColormap: + GLUT for Win32 always copies the colormap. There is never + any sharing of colormaps. This is probably okay, since + Win32 merges the logical palette and the physical palette + anyway, so even if there are two windows with totally + different colors in their colormaps, Win32 will find a + (hopefully) good match between them. + + o glutIdleFunc + menus: + The glut idle function will NOT be called when a menu is + active. This causes all animation to stop when a menu is + active (in general, this is probably okay). Timer + functions will still fire, however. If the timer callback + draws into the rendering context, the drawing will not show + up until after the menu has finished, though. + + +UNSUPPORTED/BUGS: + + o glutAttachMenu: + Win32 only likes to work with left and right mouse buttons. + Especially so with popup menus. Therefore, when attaching + the menu to the middle mouse button, the LEFT mouse button + must be used to select from the menu. + + o glutSpaceball*, glutButtonBox*, glutTablet*, glutDials*: + None of the special input devices are supported at this + time. + + o When resizing or moving a GLUT for Win32 window, no updating + is performed. This causes the window to leave "tracks" on + the screen when getting bigger or when previously obscured + parts are being revealed. I put in a bit of a kludgy + workaround for those that absolutely can't have the weird + lines. The reshape callback is called multiple times for + reshapes. Therefore, in the reshape callback, some drawing + can be done. It should probably be limited to a color buffer + clear. + + o The video resizing capabilities of GLUT 3.3+ for X11 is + currently unimplemented (this is probably ok, since it + really isn't part of the spec until 4.0). I doubt that + this will ever be part of GLUT for Win32, since there is no + hardware to support it. A hack could simply change the + resolution of the desktop. + + +CHANGES/FIXES: + + (Nov 8, '01) + x Released 3.7.6 + + (Nov 8, '01) + x Changed fullscreen mode from TOPMOST back to simply TOP, since + (it turns out) many people use windows atop a GLUT window. + + (Nov 8, '01) + x Added code to prevent CPU spiking when no idle function is + registered. Otherwise, if an idle function is registered, spike + CPU so that the idle function gets all the attention it needs and + if this is a problem on the program side, the user can stick a + sleep() in their idle function. I believe that this strikes the + best balance betweeen GLUT being fast, and also being "nice" to + other processes. Thanks to James Wright for reporting this bug. + + (Nov 8, '01) + x Fixed bug in motion callback handler which wasn't setting the + current window, so multiple window apps (e.g., any GLUI app) + wouldn't get the callback correctly. + + (Oct 4, '01) + x Fixed bug in glutEnterGameMode() that caused new windows to not + be in "fullscreen" mode, so they got window decorations. + + (Oct 4, '01) + x Fixed bug in glutEnterGameMode() that caused new windows to not + be in "fullscreen" mode, so they got window decorations. + + (Oct 3, '01) + x Fixed bug in getVisualInfoFromString(): visuals not reloaded on + display mode change. Reload visuals each time they are queried. + This fixes a problem with Win32 because the list of availabe Visuals + (Pixelformats) changes after a change in displaymode. The problem + occurs when switching to gamemode and back. Thanks to Michael + Wimmer for pointing this out & providing the fix. + + (Oct 3, '01) + x Fixed bug in XGetVisualInfo(): pixelformats enumerated incorrectly. + Passing 0 as a pixelformat index to DescribePixelFormat gives + unpredictible results (e.g., this fails on the Voodoo opengl32.dll + and always reports 0 as the last available pixelformat index). + Thanks to Michael Wimmer for pointing this out & providing the fix. + + (Oct 3, '01) + x Fixed bug in glXGetConfig(): pixelformats enumerated incorrectly. The + test was OpenGL support OR draw to window, but should be AND. Thanks + to Michael Wimmer for pointing this out & providing the fix. + + (Sep 28, '01) + x Fixed glutChangeToSubMenu()/glutChangeToMenuEntry() bug where if you + went back and forth between a submenu and a plain entry, the submenu + wouldn't be updated properly. + + (Sep 28, '01) + x glutSetIconTitle() is now a nop. + + (Sep 28, '01) + x glutFullScreen() now sets the window as TOPMOST, therefore, the + window will always be on top (this essentially disables alt-tabbing). + + (Sep 28, '01) + x The key repeat ignore flag is now honored correctly. + + (Sep 28, '01) + x Key presses are now reported more accurately and fully, in + particular, modified up events (i.e., SHIFT-2) are now reported + correctly. + + (Sep 28, '01) + x Subwindows nested arbitrarily deep get their keyboard callbacks + correctly now. + + (Sep 28, '01) + x Major rewrite of the window procedure code to clean it up and make + way for other bug fixes. + + (Sep 23, '01) + x Fixed noof example program to use RAND_MAX instead of assumed + max of 2147483647.0. (Now it looks _much_ better!) + + (Sep 22, '01) + x Fixed sunlight example program. globe.raw data file was corrupt, + added a new one. + + (Sep 22, '01) + x Fixed zcomposite example program to print message if overlay + support is not found (instead of crashing). + + (Jan 22, '01) + x Fixed malloc(0) bug in Win32 version of XGetVisualInfo. Thanks + to Kekoa Proudfoot for bringing this to my attention. + + (Dec 12, '00) + x Added data files for the advanced & advanced97 programs. + + (Dec 12, '00) + x Added Developer Studio 6 project and workspace files for pretty + much everything (the stuff left out was usually unix specific). + + (Dec 7, '00) + x Fixed several compilation problems & corrupt files. Thanks to + Alexander Stohr for bringing these to my attention and providing + detailed fixes. + + (Dec 6, '00) + x Fixed compiler support for lcc. Thanks to Gordon for bringing + this to my attention and debugging fixes. + + (Nov 8, '00) + x Fixed submenu problem (sometimes the menu callback was not + called for valid items). Thanks to Michael Keeley. + + (Oct 16, '00) + x Corrected corrupt duck.iv file. Thanks to Jon Willeke for finding + this problem. + + (Sept 27, '00) + x Fixed bug in processWorkList that could cause a hang. Thanks to + Bill Volz & Daniel Azuma. + + (Sept 26, '00) + x Added mui DLL project file (thanks to DMWeldy@ugsolutions.com). + + (Sept 9, '00) + x Fixed Delete key bug (crash when no keyboard callback was + registered, but a special key callback was). Thanks to + Kent Bowling (kent_bowling@hotmail.com) for finding this bug. + + (May 18, '00) + x Fixed subwindow keyboard callbacks. + + (May 22, '97) + o Menus don't work under Windows 95 + x Fixed! Added a unique identifier to each menu item, and a + search function to grab a menu item given the unique identifier. + + (May 21, '97) + o A few minor bug fixes here and there. + x Thanks to Bruce Silberman and Chris Vale for their help with + this. We now have a DLL! + + (Apr 25, '97) + o DLL version of the library is coming (as soon as I figure out + how to do it -- if you know, let me know). + x Thanks to Bruce Silberman and Chris Vale for their help with + this. We now have a DLL! + + (Apr 24, '97) + x Added returns to KEY_DOWN etc messages so that the F10 key + doesn't toggle the system menu anymore. + + (Apr 7, '97) + o Palette is incorrect for modes other than TrueColor. + x Fixed this by forcing a default palette in modes that aren't + Truecolor in order to 'simulate' it. The applications + program shouldn't have to do this IMHO, but I guess we + can't argue with Microsoft (well, we can, but what good + will it do?). + + (Apr 2, '97) + x Added glut.ide file for Borland users. + + (Apr 2, '97) + x Fixed a bug in the WM_QUERYNEWPALETTE message. Wasn't + checking for a null colormap, then de-ref'd it. Oops. + + (Mar 13, '97) + o glutTimerFunc: + Currently, GLUT for Win32 programs busy waits when there is + an outstanding timer event (i.e., there is no select() + call). I haven't found this to be a problem, but I plan to + fix it just because I can't bear the thought of a busy wait. + x Added a timer event and a wait in the main loop. This fixes + the CPU spike. + + (Mar 11, '97) + x Fixed subwindow visibility. The visibility callback of + subwindows wasn't being called, now it is. + + (Mar 11, '97) + o glutGetHDC, glutGetHWND: + In order to support additional dialog boxes, wgl fonts, and + a host of other Win32 dependent structures, two functions + have been added that operate on the current window in GLUT. + The first (glutGetHDC) returns a handle to the current + windows device context. The second (glutGetHWND) returns + handle to the current window. + x Took these out to preserve GLUT portability. + + (Mar 11, '97) + x Fixed the glutWarpPointer() coordinates. Were relative to + the screen, now relative to window (client area) origin + (which is what they're supposed to be). + + (Mar 11, '97) + o glutCreateMenu, glutIdleFunc: + Menu's are modal in Win32. That is, they don't allow any + messages to be processed while they are up. Therefore, if + an idle function exists, it will not be called while + processing a menu. + x Fixed! I've put in a timer function that fires every + millisecond while a menu is up. The timer function handles + idle and timer events only (which should be the only + functions that are firing when a menu is up anyway). + + (Mar 7 '97) + x Fixed minor bugs tracked down by the example programs. + + (Mar 6, '97) + x Merged 3.3 GLUT for X11 into 3.2 GLUT for Win32. New code + structure allows for EASY merging! + + o In Win32, the parent gets the right to set the cursor of + any of its children. Therefore, a child windows cursor + will 'blink' between its cursor and its parent. + x Fixed this by checking whether the cursor is in a child + window or not. + + (Feb 28 '97) + o On initial bringup apps are getting 2 display callbacks. + x Fixed by the Fev 28 re-write. + + o Some multiple window (not subwindow) functionality is messed up. + See the sphere.exe program. + x Fixed by the Feb 28 re-write. + + o GLUT for Win32 supports color index mode ONLY in a paletted + display mode (i.e., 256 or 16 color mode). + x Fixed this in the re-write. If you can get a color index + visual (pixel format) you can use color index mode. + + (Feb 28 '97) + o Quite a few bugs (and incompatibilities) were being caused + by the structure that I used in the previous port of GLUT. + Therefore I decided that it would be best to "get back to + the roots". I re-implemented most of glut trying to stick + with the structure layed out by Mark. The result is a much + more stable version that passes ALL (!) (except overlay) + the tests provided by Mark. In addition, this new + structure will allow future enhancements by Mark to be + integrated much more quickly into the Win32 version. Also, + I'm now ordering the bugs in reverse, so that the most + recently fixed appear at the top of the list. + + (9/8/96) + o Changed the glutGetModifiers code to produce an error if not + called in the core input callbacks. + + (9/11/96) + o If the alt key is pressed with more than one other modifier key + it acts as if it is stuck -- it stays selected until pressed + and released again. + x Fixed. + + (9/12/96) + o When a submenu is attached to a menu, sometimes a GPF occurs. + Fixed. Needed to set the submenu before referencing it's members. + + o Kenny: Also, one little problem, I attached the menu to the + right-button, but when the left-button is pressed I detach + it to give the right-button new meaning; if I pop-up the menu and I + don't want to select anything, like most users, I click off of the + menu to make it disappear. When I do this, I get a GLUT error and + the program terminates because I am altering the menu attachment + from within the button press while the menu is active. + x Fixed. Needed to finish the menu when the user presses the button, + not just when a button is released. + + o GLUT for Win32 emulates a middle mouse button by checking if + both mouse buttons are down. This causes a lot of problems with + the menu and other multiple mouse button things. + x Fixed. No more middle mouse button emulation. Perhaps it would + be a good idea to emulate the middle mouse button (if not present) + with a key? + + (9/15/96) + o Added code to accept a user defined icon. If no icon is provided, + a default icon is loaded. + + (9/19/96) + o Shane: Command line options seem to be screwed up. (9/13) + x Fixed. The geometry command line was broken, and so was the + gldebug command line. + + o Fixed a bug in the default glut reshape. It was looking for the + parent of the current window and GPF'ing if there wasn't a parent. + Put in a check for a parent, and if none is there, use the + child. + + o Idle function sucks up all processor cycles. (9/8/96) + x I don't know if this is avoidable. If you have a tight rendering + loop, it may be that the processor time is going to be sucked up + no matter what. You can add a sleep() to the end of your render + loop if you would like to yeild to other processes and you don't + care too much about the speed of your rendering loop. If you have + Hardware that supports OpenGL (like a 3Dpro card, or GLint card) + then this should be less of a problem, since it won't be rendering + in software. (9/11/96) + + o If a window is fully obscured by another window, the visibility + callback is NOT called. As far as I can tell, this is a limitation + of the Win32 api, but a workaround is being searched for. (9/8/96) + x Limitation of the Win32 API + + o Fixed the entry functions. They only work if the keyboard focus + changes. Therefore, in most Win32 systems, the mouse must be + pressed outside of the window to get a GLUT_LEFT message and + then pressed inside the window for a GLUT_ENTERED message. + + o Alt modifier key doesn't work with keyboard callback. (9/8/96) + x Probably okay, because the glut spec says that these keys can + be intercepted by the system (which the alt key is...) (9/11/96) + + (11/17/96) + o glutRemoveMenuItem() not working properly. + x Thanks to Gary (grc@maple.civeng.rutgers.edu) for the fix to + this one. + + o Timer functions are messed up. + x Thanks to Joseph Galbraith for the fix to this one. + + (12/9/96) + o One (minor) difference came up between the X version of glut + and the nt one which you should know about. It is not a new + problem, and it concerns co-ords returned to the pointer + callbacks. (glutMotionFunc, glutMouseFunc) + Under X, you get co-ords in the range 0 +/- 2^15, under NT + you get 0..2^16. This is only really a problem when moving + above or to the left of the window. + eg dragging one pixel ABOVE the window will give :- + under x11 : y = -1 + under nt : y = 2^16 -1 + x Put in fix provided by Shane Clauson. + + (12/17/96) + o Idle functions not working properly for multiple windows. + x Fixed this by posting an idle message to every window in the + window list when idle. + + (12/18/96) + o glutSetCursor() was misbehaving (lthomas@cco.caltech.edu). + x Win32 requires that the hCursor member of the window class + be set to NULL when the class is registered or whenever the + mouse is moved, the original cursor is replaced (go + figure!). Now sets the cursor whenever a WM_MOUSEMOVE message + is received, because the WM_SETCURSOR event resets the cursor + even when in the decoration area. + + o Geometry is not being handled quite right. The numbers don't + take into account the window decorations. That is, if I say + make a window 100x100, then the WHOLE window (not just the + client area) is 100x100. Therefore, the client (opengl) area + is smaller than 100x100. (9/8/96) + x Fixed. Added code to subtract the decoration size on glutGet() + and add the decoration size on glutReshapeWindow(). + + o Multiple glutPostRedisplay() calls are NOT being combined. + To get round the "coalesce" problem on glutPostRedisplay, + the easiest solution is to roll-your-own coalesce by + keeping a global "dirty" flag in the app (eg replace all + calls to glutPostRedisplay with image_dirty=TRUE;), and to + handle image_dirty with a single glutPostRedisplay in the + idle callback when required. (erk - but increases + performance for my particular app (a rendering engine on + the end of a pipleine with a stream of graphics updates) by + a couple of orders of magnitude ! ) (9/8/96) + x Added code to coalesce redisplays. Every idle cycle, a + check is made to see which windows need redisplay, if they + need it, a redisplay is posted. The glutPostRedisplay() + call is just a stub that sets a flag. + + +THANKS: + + Special thanks to the following people for extensive testing, + suggestions, fixes and help: + + Alexander Stohr + Shane Clauson + Kenny Hoff + Richard Readings + Paul McQuesten + Philip Winston + JaeWoo Ahn + Joseph Galbraith + Paula Higgins + Sam Fortin + Chris Vale + Bill Mitchell + + and of course, the original author of GLUT: + Mark Kilgard. + + and many others... + + +COPYRIGHT: + +The OpenGL Utility Toolkit distribution for Win32 (Windows NT & +Windows 95) contains source code modified from the original source +code for GLUT version 3.3 which was developed by Mark J. Kilgard. The +original source code for GLUT is Copyright 1997 by Mark J. Kilgard. +GLUT for Win32 is Copyright 1997 by Nate Robins and is not in the +public domain, but it is freely distributable without licensing fees. +It is provided without guarantee or warrantee expressed or implied. +It was ported with the permission of Mark J. Kilgard by Nate Robins. + +THIS SOURCE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OR MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + +OpenGL (R) is a registered trademark of Silicon Graphics, Inc. diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/error.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/error.py --- pyopengl-3.0.0~b6/OpenGL/error.py 2008-09-07 15:36:23.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/error.py 2008-12-08 03:25:35.000000000 +0000 @@ -186,7 +186,7 @@ should call onBegin and onEnd appropriately. """ err = self._currentChecker() - if err is not None and err != 0: # GL_NO_ERROR's guaranteed value + if err: # GL_NO_ERROR's guaranteed value is 0 raise GLError( err, result, diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/extensions.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/extensions.py --- pyopengl-3.0.0~b6/OpenGL/extensions.py 2008-09-13 21:57:49.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/extensions.py 2009-03-04 07:27:32.000000000 +0000 @@ -50,12 +50,14 @@ def __nonzero__( self ): for alternate in self._alternatives: if alternate: + self.__class__.implementation = alternate return True return False def __call__( self, *args, **named ): """Call, doing a late lookup and bind to find an implementation""" for alternate in self._alternatives: if alternate: + self.__class__.implementation = alternate self.__class__.__call__ = alternate.__call__ return self( *args, **named ) from OpenGL import error @@ -66,5 +68,11 @@ ) ) def alternate( name, *functions ): - """Construct a callable that functions as the first implementation found of given set of alternatives""" + """Construct a callable that functions as the first implementation found of given set of alternatives + + if name is a function then its name will be used.... + """ + if not isinstance( name, (str,unicode)): + functions = (name,)+functions + name = name.__name__ return type( name, (_Alternate,), {} )( name, *functions ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/ARB/shader_objects_new.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/ARB/shader_objects_new.py --- pyopengl-3.0.0~b6/OpenGL/GL/ARB/shader_objects_new.py 2006-08-27 04:18:25.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/ARB/shader_objects_new.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,390 +0,0 @@ -'''OpenGL extension ARB.shader_objects - -The official definition of this extension is available here: - http://oss.sgi.com/projects/ogl-sample/registry/ARB/shader_objects.txt -''' -### AUTOGENERATED DO NOT EDIT -from OpenGL import platform, constants, constant, arrays -from OpenGL import extensions, finalisewrappers, wrapper -import ctypes -GL_PROGRAM_OBJECT_ARB = constant.Constant( 'GL_PROGRAM_OBJECT_ARB', 0x8B40 ) -GL_SHADER_OBJECT_ARB = constant.Constant( 'GL_SHADER_OBJECT_ARB', 0x8B48 ) -GL_OBJECT_TYPE_ARB = constant.Constant( 'GL_OBJECT_TYPE_ARB', 0x8B4E ) -GL_OBJECT_SUBTYPE_ARB = constant.Constant( 'GL_OBJECT_SUBTYPE_ARB', 0x8B4F ) -GL_FLOAT_VEC2_ARB = constant.Constant( 'GL_FLOAT_VEC2_ARB', 0x8B50 ) -GL_FLOAT_VEC3_ARB = constant.Constant( 'GL_FLOAT_VEC3_ARB', 0x8B51 ) -GL_FLOAT_VEC4_ARB = constant.Constant( 'GL_FLOAT_VEC4_ARB', 0x8B52 ) -GL_INT_VEC2_ARB = constant.Constant( 'GL_INT_VEC2_ARB', 0x8B53 ) -GL_INT_VEC3_ARB = constant.Constant( 'GL_INT_VEC3_ARB', 0x8B54 ) -GL_INT_VEC4_ARB = constant.Constant( 'GL_INT_VEC4_ARB', 0x8B55 ) -GL_BOOL_ARB = constant.Constant( 'GL_BOOL_ARB', 0x8B56 ) -GL_BOOL_VEC2_ARB = constant.Constant( 'GL_BOOL_VEC2_ARB', 0x8B57 ) -GL_BOOL_VEC3_ARB = constant.Constant( 'GL_BOOL_VEC3_ARB', 0x8B58 ) -GL_BOOL_VEC4_ARB = constant.Constant( 'GL_BOOL_VEC4_ARB', 0x8B59 ) -GL_FLOAT_MAT2_ARB = constant.Constant( 'GL_FLOAT_MAT2_ARB', 0x8B5A ) -GL_FLOAT_MAT3_ARB = constant.Constant( 'GL_FLOAT_MAT3_ARB', 0x8B5B ) -GL_FLOAT_MAT4_ARB = constant.Constant( 'GL_FLOAT_MAT4_ARB', 0x8B5C ) -GL_SAMPLER_1D_ARB = constant.Constant( 'GL_SAMPLER_1D_ARB', 0x8B5D ) -GL_SAMPLER_2D_ARB = constant.Constant( 'GL_SAMPLER_2D_ARB', 0x8B5E ) -GL_SAMPLER_3D_ARB = constant.Constant( 'GL_SAMPLER_3D_ARB', 0x8B5F ) -GL_SAMPLER_CUBE_ARB = constant.Constant( 'GL_SAMPLER_CUBE_ARB', 0x8B60 ) -GL_SAMPLER_1D_SHADOW_ARB = constant.Constant( 'GL_SAMPLER_1D_SHADOW_ARB', 0x8B61 ) -GL_SAMPLER_2D_SHADOW_ARB = constant.Constant( 'GL_SAMPLER_2D_SHADOW_ARB', 0x8B62 ) -GL_SAMPLER_2D_RECT_ARB = constant.Constant( 'GL_SAMPLER_2D_RECT_ARB', 0x8B63 ) -GL_SAMPLER_2D_RECT_SHADOW_ARB = constant.Constant( 'GL_SAMPLER_2D_RECT_SHADOW_ARB', 0x8B64 ) -GL_OBJECT_DELETE_STATUS_ARB = constant.Constant( 'GL_OBJECT_DELETE_STATUS_ARB', 0x8B80 ) -GL_OBJECT_COMPILE_STATUS_ARB = constant.Constant( 'GL_OBJECT_COMPILE_STATUS_ARB', 0x8B81 ) -GL_OBJECT_LINK_STATUS_ARB = constant.Constant( 'GL_OBJECT_LINK_STATUS_ARB', 0x8B82 ) -GL_OBJECT_VALIDATE_STATUS_ARB = constant.Constant( 'GL_OBJECT_VALIDATE_STATUS_ARB', 0x8B83 ) -GL_OBJECT_INFO_LOG_LENGTH_ARB = constant.Constant( 'GL_OBJECT_INFO_LOG_LENGTH_ARB', 0x8B84 ) -GL_OBJECT_ATTACHED_OBJECTS_ARB = constant.Constant( 'GL_OBJECT_ATTACHED_OBJECTS_ARB', 0x8B85 ) -GL_OBJECT_ACTIVE_UNIFORMS_ARB = constant.Constant( 'GL_OBJECT_ACTIVE_UNIFORMS_ARB', 0x8B86 ) -GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = constant.Constant( 'GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB', 0x8B87 ) -GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = constant.Constant( 'GL_OBJECT_SHADER_SOURCE_LENGTH_ARB', 0x8B88 ) -glDeleteObjectARB = platform.createExtensionFunction( - 'glDeleteObjectARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB,), - doc = 'glDeleteObjectARB( GLhandleARB(obj) ) -> None', - argNames = ('obj',), -) - -glGetHandleARB = platform.createExtensionFunction( - 'glGetHandleARB', dll=platform.GL, - resultType=constants.GLhandleARB, - argTypes=(constants.GLenum,), - doc = 'glGetHandleARB( GLenum(pname) ) -> constants.GLhandleARB', - argNames = ('pname',), -) - -glDetachObjectARB = platform.createExtensionFunction( - 'glDetachObjectARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLhandleARB,), - doc = 'glDetachObjectARB( GLhandleARB(containerObj), GLhandleARB(attachedObj) ) -> None', - argNames = ('containerObj', 'attachedObj',), -) - -glCreateShaderObjectARB = platform.createExtensionFunction( - 'glCreateShaderObjectARB', dll=platform.GL, - resultType=constants.GLhandleARB, - argTypes=(constants.GLenum,), - doc = 'glCreateShaderObjectARB( GLenum(shaderType) ) -> constants.GLhandleARB', - argNames = ('shaderType',), -) - -glShaderSourceARB = platform.createExtensionFunction( - 'glShaderSourceARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLsizei, ctypes.POINTER(arrays.GLcharARBArray), arrays.GLintArray,), - doc = 'glShaderSourceARB( GLhandleARB(shaderObj), GLsizei(count), POINTER(arrays.GLcharARBArray)(string), GLintArray(length) ) -> None', - argNames = ('shaderObj', 'count', 'string', 'length',), -) - -glCompileShaderARB = platform.createExtensionFunction( - 'glCompileShaderARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB,), - doc = 'glCompileShaderARB( GLhandleARB(shaderObj) ) -> None', - argNames = ('shaderObj',), -) - -glCreateProgramObjectARB = platform.createExtensionFunction( - 'glCreateProgramObjectARB', dll=platform.GL, - resultType=constants.GLhandleARB, - argTypes=(), - doc = 'glCreateProgramObjectARB( ) -> constants.GLhandleARB', - argNames = (), -) - -glAttachObjectARB = platform.createExtensionFunction( - 'glAttachObjectARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLhandleARB,), - doc = 'glAttachObjectARB( GLhandleARB(containerObj), GLhandleARB(obj) ) -> None', - argNames = ('containerObj', 'obj',), -) - -glLinkProgramARB = platform.createExtensionFunction( - 'glLinkProgramARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB,), - doc = 'glLinkProgramARB( GLhandleARB(programObj) ) -> None', - argNames = ('programObj',), -) - -glUseProgramObjectARB = platform.createExtensionFunction( - 'glUseProgramObjectARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB,), - doc = 'glUseProgramObjectARB( GLhandleARB(programObj) ) -> None', - argNames = ('programObj',), -) - -glValidateProgramARB = platform.createExtensionFunction( - 'glValidateProgramARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB,), - doc = 'glValidateProgramARB( GLhandleARB(programObj) ) -> None', - argNames = ('programObj',), -) - -glUniform1fARB = platform.createExtensionFunction( - 'glUniform1fARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLfloat,), - doc = 'glUniform1fARB( GLint(location), GLfloat(v0) ) -> None', - argNames = ('location', 'v0',), -) - -glUniform2fARB = platform.createExtensionFunction( - 'glUniform2fARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLfloat, constants.GLfloat,), - doc = 'glUniform2fARB( GLint(location), GLfloat(v0), GLfloat(v1) ) -> None', - argNames = ('location', 'v0', 'v1',), -) - -glUniform3fARB = platform.createExtensionFunction( - 'glUniform3fARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLfloat, constants.GLfloat, constants.GLfloat,), - doc = 'glUniform3fARB( GLint(location), GLfloat(v0), GLfloat(v1), GLfloat(v2) ) -> None', - argNames = ('location', 'v0', 'v1', 'v2',), -) - -glUniform4fARB = platform.createExtensionFunction( - 'glUniform4fARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLfloat, constants.GLfloat, constants.GLfloat, constants.GLfloat,), - doc = 'glUniform4fARB( GLint(location), GLfloat(v0), GLfloat(v1), GLfloat(v2), GLfloat(v3) ) -> None', - argNames = ('location', 'v0', 'v1', 'v2', 'v3',), -) - -glUniform1iARB = platform.createExtensionFunction( - 'glUniform1iARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLint,), - doc = 'glUniform1iARB( GLint(location), GLint(v0) ) -> None', - argNames = ('location', 'v0',), -) - -glUniform2iARB = platform.createExtensionFunction( - 'glUniform2iARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLint, constants.GLint,), - doc = 'glUniform2iARB( GLint(location), GLint(v0), GLint(v1) ) -> None', - argNames = ('location', 'v0', 'v1',), -) - -glUniform3iARB = platform.createExtensionFunction( - 'glUniform3iARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLint, constants.GLint, constants.GLint,), - doc = 'glUniform3iARB( GLint(location), GLint(v0), GLint(v1), GLint(v2) ) -> None', - argNames = ('location', 'v0', 'v1', 'v2',), -) - -glUniform4iARB = platform.createExtensionFunction( - 'glUniform4iARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint,), - doc = 'glUniform4iARB( GLint(location), GLint(v0), GLint(v1), GLint(v2), GLint(v3) ) -> None', - argNames = ('location', 'v0', 'v1', 'v2', 'v3',), -) - -glUniform1fvARB = platform.createExtensionFunction( - 'glUniform1fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLfloatArray,), - doc = 'glUniform1fvARB( GLint(location), GLsizei(count), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform2fvARB = platform.createExtensionFunction( - 'glUniform2fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLfloatArray,), - doc = 'glUniform2fvARB( GLint(location), GLsizei(count), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform3fvARB = platform.createExtensionFunction( - 'glUniform3fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLfloatArray,), - doc = 'glUniform3fvARB( GLint(location), GLsizei(count), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform4fvARB = platform.createExtensionFunction( - 'glUniform4fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLfloatArray,), - doc = 'glUniform4fvARB( GLint(location), GLsizei(count), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform1ivARB = platform.createExtensionFunction( - 'glUniform1ivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLintArray,), - doc = 'glUniform1ivARB( GLint(location), GLsizei(count), GLintArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform2ivARB = platform.createExtensionFunction( - 'glUniform2ivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLintArray,), - doc = 'glUniform2ivARB( GLint(location), GLsizei(count), GLintArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform3ivARB = platform.createExtensionFunction( - 'glUniform3ivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLintArray,), - doc = 'glUniform3ivARB( GLint(location), GLsizei(count), GLintArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniform4ivARB = platform.createExtensionFunction( - 'glUniform4ivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, arrays.GLintArray,), - doc = 'glUniform4ivARB( GLint(location), GLsizei(count), GLintArray(value) ) -> None', - argNames = ('location', 'count', 'value',), -) - -glUniformMatrix2fvARB = platform.createExtensionFunction( - 'glUniformMatrix2fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, constants.GLboolean, arrays.GLfloatArray,), - doc = 'glUniformMatrix2fvARB( GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'transpose', 'value',), -) - -glUniformMatrix3fvARB = platform.createExtensionFunction( - 'glUniformMatrix3fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, constants.GLboolean, arrays.GLfloatArray,), - doc = 'glUniformMatrix3fvARB( GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'transpose', 'value',), -) - -glUniformMatrix4fvARB = platform.createExtensionFunction( - 'glUniformMatrix4fvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLint, constants.GLsizei, constants.GLboolean, arrays.GLfloatArray,), - doc = 'glUniformMatrix4fvARB( GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value) ) -> None', - argNames = ('location', 'count', 'transpose', 'value',), -) - -glGetObjectParameterfvARB = platform.createExtensionFunction( - 'glGetObjectParameterfvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLenum, arrays.GLfloatArray,), - doc = 'glGetObjectParameterfvARB( GLhandleARB(obj), GLenum(pname), GLfloatArray(params) ) -> None', - argNames = ('obj', 'pname', 'params',), -) - -glGetObjectParameterivARB = platform.createExtensionFunction( - 'glGetObjectParameterivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLenum, arrays.GLintArray,), - doc = 'glGetObjectParameterivARB( GLhandleARB(obj), GLenum(pname), GLintArray(params) ) -> None', - argNames = ('obj', 'pname', 'params',), -) - -glGetInfoLogARB = platform.createExtensionFunction( - 'glGetInfoLogARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLsizei, arrays.GLsizeiArray, arrays.GLcharARBArray,), - doc = 'glGetInfoLogARB( GLhandleARB(obj), GLsizei(maxLength), GLsizeiArray(length), GLcharARBArray(infoLog) ) -> None', - argNames = ('obj', 'maxLength', 'length', 'infoLog',), -) - -glGetAttachedObjectsARB = platform.createExtensionFunction( - 'glGetAttachedObjectsARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLsizei, arrays.GLsizeiArray, arrays.GLuintArray,), - doc = 'glGetAttachedObjectsARB( GLhandleARB(containerObj), GLsizei(maxCount), GLsizeiArray(count), GLuintArray(obj) ) -> None', - argNames = ('containerObj', 'maxCount', 'count', 'obj',), -) - -glGetUniformLocationARB = platform.createExtensionFunction( - 'glGetUniformLocationARB', dll=platform.GL, - resultType=constants.GLint, - argTypes=(constants.GLhandleARB, arrays.GLcharARBArray,), - doc = 'glGetUniformLocationARB( GLhandleARB(programObj), GLcharARBArray(name) ) -> constants.GLint', - argNames = ('programObj', 'name',), -) - -glGetActiveUniformARB = platform.createExtensionFunction( - 'glGetActiveUniformARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLuint, constants.GLsizei, arrays.GLsizeiArray, arrays.GLintArray, arrays.GLuintArray, arrays.GLcharARBArray,), - doc = 'glGetActiveUniformARB( GLhandleARB(programObj), GLuint(index), GLsizei(maxLength), GLsizeiArray(length), GLintArray(size), GLuintArray(type), GLcharARBArray(name) ) -> None', - argNames = ('programObj', 'index', 'maxLength', 'length', 'size', 'type', 'name',), -) - -glGetUniformfvARB = platform.createExtensionFunction( - 'glGetUniformfvARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLint, arrays.GLfloatArray,), - doc = 'glGetUniformfvARB( GLhandleARB(programObj), GLint(location), GLfloatArray(params) ) -> None', - argNames = ('programObj', 'location', 'params',), -) - -glGetUniformivARB = platform.createExtensionFunction( - 'glGetUniformivARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLint, arrays.GLintArray,), - doc = 'glGetUniformivARB( GLhandleARB(programObj), GLint(location), GLintArray(params) ) -> None', - argNames = ('programObj', 'location', 'params',), -) - -glGetShaderSourceARB = platform.createExtensionFunction( - 'glGetShaderSourceARB', dll=platform.GL, - resultType=None, - argTypes=(constants.GLhandleARB, constants.GLsizei, arrays.GLsizeiArray, arrays.GLcharARBArray,), - doc = 'glGetShaderSourceARB( GLhandleARB(obj), GLsizei(maxLength), GLsizeiArray(length), GLcharARBArray(source) ) -> None', - argNames = ('obj', 'maxLength', 'length', 'source',), -) - - -def glInitShaderObjectsARB(): - '''Return boolean indicating whether this module is available''' - finalisewrappers.finalise( globals() ) - return extensions.hasGLExtension( 'GL_ARB_shader_objects' ) -### END AUTOGENERATED SECTION -GL_INFO_LOG_LENGTH_ARB = constant.Constant( 'GL_INFO_LOG_LENGTH', 0x8B84 ) - -##glShaderSourceARB.argtypes = [c_int, c_int, POINTER(c_char_p), POINTER(c_int)] -##glGetObjectParameterivARB.argtypes = [c_int, c_int, POINTER(c_int)] -##glGetInfoLogARB.argtypes = [c_int, c_int, POINTER(c_int), c_char_p] - -base_glShaderSourceARB = glShaderSourceARB -def glShaderSourceARB( shader, source ): - """Python-specific version of the shader call - - shader -- shader object as created by glCreateShaderObjectARB - source -- Python source-code string or sequence of strings - - Note: we hack this somewhat to make it easier to deal with - from Python. We allow for lists-of-strings, but we just - join them into a single string before passing them in... - """ - if not isinstance( source, str ): - source = '\n'.join( source ) - # simple case... - data = ctypes.c_char_p( source ) - arraySize = len(source) - length = ctypes.c_int(arraySize) - return base_glShaderSourceARB( - shader, 1, - ctypes.cast( ctypes.POINTER( constants.GLcharARB ), data, ), - ctypes.byref( length) - ) - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/ARB/shader_objects.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/ARB/shader_objects.py --- pyopengl-3.0.0~b6/OpenGL/GL/ARB/shader_objects.py 2008-09-13 15:56:44.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/ARB/shader_objects.py 2009-03-13 21:58:22.000000000 +0000 @@ -12,6 +12,7 @@ ### END AUTOGENERATED SECTION EXTENSION_NAME = 'GL_ARB_shader_objects' import OpenGL +from OpenGL.lazywrapper import lazy from OpenGL import converters, error GL_INFO_LOG_LENGTH_ARB = constant.Constant( 'GL_INFO_LOG_LENGTH_ARB', 0x8B84 ) @@ -20,7 +21,7 @@ resultType=None, argTypes=(constants.GLhandleARB, constants.GLsizei, ctypes.POINTER(ctypes.c_char_p), arrays.GLintArray,), doc = 'glShaderSourceARB( GLhandleARB(shaderObj), str( string) ) -> None', - argNames = ('shaderObj', 'count', 'string', 'length',), + argNames = ('shaderObj', 'count', 'string', 'length',), extension = EXTENSION_NAME, ) conv = converters.StringLengths( name='string' ) @@ -49,33 +50,31 @@ name = 'glUniform%(size)s%(format)svARB'%globals() globals()[name] = arrays.setInputArraySizeType( globals()[name], - size, + None, # don't want to enforce size... arrayType, 'value', ) del format, arrayType del size -base_glGetObjectParameterivARB = glGetObjectParameterivARB -def glGetObjectParameterivARB( shader, pname ): +@lazy( glGetObjectParameterivARB ) +def glGetObjectParameterivARB( baseOperation, shader, pname ): """Retrieve the integer parameter for the given shader""" status = arrays.GLintArray.zeros( (1,)) status[0] = 1 - base_glGetObjectParameterivARB( + baseOperation( shader, pname, status ) return status[0] -glGetObjectParameterivARB.wrappedOperation = base_glGetObjectParameterivARB -base_glGetObjectParameterfvARB = glGetObjectParameterfvARB -def glGetObjectParameterfvARB( shader, pname ): + +@lazy( glGetObjectParameterfvARB ) +def glGetObjectParameterfvARB( baseOperation, shader, pname ): """Retrieve the float parameter for the given shader""" status = arrays.GLfloatArray.zeros( (1,)) status[0] = 1.0 - base_glGetObjectParameterfvARB( - shader, pname,status - ) + baseOperation(shader, pname,status) return status[0] -glGetObjectParameterfvARB.wrappedOperation = base_glGetObjectParameterfvARB + def _afterCheck( key ): """Generate an error-checking function for compilation operations""" def GLSLCheckError( @@ -106,8 +105,8 @@ ##if glValidateProgramARB and OpenGL.ERROR_CHECKING: ## glValidateProgramARB.errcheck = _afterCheck( GL_OBJECT_VALIDATE_STATUS_ARB ) -base_glGetInfoLogARB = glGetInfoLogARB -def glGetInfoLogARB( obj ): +@lazy( glGetInfoLogARB ) +def glGetInfoLogARB( baseOperation, obj ): """Retrieve the program/shader's error messages as a Python string returns string which is '' if no message @@ -115,24 +114,22 @@ length = int(glGetObjectParameterivARB(obj, GL_INFO_LOG_LENGTH_ARB)) if length > 0: log = ctypes.create_string_buffer(length) - base_glGetInfoLogARB(obj, length, None, log) + baseOperation(obj, length, None, log) return log.value.strip('\000') # null-termination return '' -glGetInfoLogARB.wrappedOperation = base_glGetInfoLogARB -base_glGetAttachedObjectsARB = glGetAttachedObjectsARB -def glGetAttachedObjectsARB( obj ): +@lazy( glGetAttachedObjectsARB ) +def glGetAttachedObjectsARB( baseOperation, obj ): """Retrieve the attached objects as an array of GLhandleARB instances""" length= glGetObjectParameterivARB( obj, GL_OBJECT_ATTACHED_OBJECTS_ARB ) if length > 0: storage = arrays.GLuintArray.zeros( (length,)) - base_glGetAttachedObjectsARB( obj, length, None, storage ) + baseOperation( obj, length, None, storage ) return storage return arrays.GLuintArray.zeros( (0,)) -glGetAttachedObjectsARB.wrappedOperation = base_glGetAttachedObjectsARB -base_glGetShaderSourceARB = glGetShaderSourceARB -def glGetShaderSourceARB( obj ): +@lazy( glGetShaderSourceARB ) +def glGetShaderSourceARB( baseOperation, obj ): """Retrieve the program/shader's source code as a Python string returns string which is '' if no source code @@ -140,21 +137,30 @@ length = int(glGetObjectParameterivARB(obj, GL_OBJECT_SHADER_SOURCE_LENGTH_ARB)) if length > 0: source = ctypes.create_string_buffer(length) - base_glGetShaderSourceARB(obj, length, None, source) + baseOperation(obj, length, None, source) return source.value.strip('\000') # null-termination return '' -glGetShaderSourceARB.wrappedOperation = base_glGetShaderSourceARB -base_glGetActiveUniformARB = glGetActiveUniformARB -def glGetActiveUniformARB(program, index): +@lazy( glGetActiveUniformARB ) +def glGetActiveUniformARB(baseOperation, program, index): """Retrieve the name, size and type of the uniform of the index in the program""" max_index = int(glGetObjectParameterivARB( program, GL_OBJECT_ACTIVE_UNIFORMS_ARB )) length = int(glGetObjectParameterivARB( program, GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB)) - if index < max_index and index >= 0 and length > 0: - name = ctypes.create_string_buffer(length) - size = arrays.GLintArray.zeros( (1,)) - gl_type = arrays.GLuintArray.zeros( (1,)) - base_glGetActiveUniformARB(program, index, length, None, size, gl_type, name) - return name.value, size[0], gl_type[0] + if index < max_index and index >= 0: + if length > 0: + name = ctypes.create_string_buffer(length) + size = arrays.GLintArray.zeros( (1,)) + gl_type = arrays.GLuintArray.zeros( (1,)) + baseOperation(program, index, length, None, size, gl_type, name) + return name.value, size[0], gl_type[0] + raise ValueError( """No currently specified uniform names""" ) raise IndexError, 'Index %s out of range 0 to %i' % (index, max_index - 1, ) -glGetActiveUniformARB.wrappedOperation = base_glGetActiveUniformARB + +@lazy( glGetUniformLocationARB ) +def glGetUniformLocationARB( baseOperation, program, name ): + """Check that name is a string with a null byte at the end of it""" + if not name: + raise ValueError( """Non-null name required""" ) + elif name[-1] != '\000': + name = name + '\000' + return baseOperation( program, name ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/ARB/vertex_program.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/ARB/vertex_program.py --- pyopengl-3.0.0~b6/OpenGL/GL/ARB/vertex_program.py 2006-11-14 04:58:43.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/GL/ARB/vertex_program.py 2009-03-09 00:59:39.000000000 +0000 @@ -10,6 +10,10 @@ import ctypes from OpenGL.raw.GL.ARB.vertex_program import * ### END AUTOGENERATED SECTION +from OpenGL.lazywrapper import lazy + +from OpenGL import converters, error, contextdata +from OpenGL.arrays.arraydatatype import ArrayDatatype # Note: sizes here are == the only documented sizes I could find, # may need a lookup table some day... glGetProgramivARB = wrapper.wrapper(glGetProgramivARB).setOutput( @@ -50,3 +54,37 @@ ## pointer = arrays.GLdoubleArray.voidDataPointer( output ) ## _base_glGetVertexAttribPointervARB( index, pname, pointer ) ## return output + +@lazy( glVertexAttribPointerARB ) +def glVertexAttribPointerARB( + baseOperation, index, size, type, + normalized, stride, pointer, +): + """Set an attribute pointer for a given shader (index) + + index -- the index of the generic vertex to bind, see + glGetAttribLocation for retrieval of the value, + note that index is a global variable, not per-shader + size -- number of basic elements per record, 1,2,3, or 4 + type -- enum constant for data-type + normalized -- whether to perform int to float + normalization on integer-type values + stride -- stride in machine units (bytes) between + consecutive records, normally used to create + "interleaved" arrays + pointer -- data-pointer which provides the data-values, + normally a vertex-buffer-object or offset into the + same. + + This implementation stores a copy of the data-pointer + in the contextdata structure in order to prevent null- + reference errors in the renderer. + """ + array = ArrayDatatype.asArray( pointer ) + key = ('vertex-attrib',index) + contextdata.setValue( key, array ) + return baseOperation( + index, size, type, + normalized, stride, + ArrayDatatype.voidDataPointer( array ) + ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/ARB/vertex_shader.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/ARB/vertex_shader.py --- pyopengl-3.0.0~b6/OpenGL/GL/ARB/vertex_shader.py 2008-04-25 23:28:49.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/ARB/vertex_shader.py 2009-03-09 00:59:38.000000000 +0000 @@ -10,7 +10,7 @@ import ctypes from OpenGL.raw.GL.ARB.vertex_shader import * ### END AUTOGENERATED SECTION - +from OpenGL.lazywrapper import lazy from shader_objects import glGetObjectParameterivARB base_glGetActiveAttribARB = glGetActiveAttribARB @@ -26,3 +26,13 @@ return name.value, size[0], gl_type[0] raise IndexError, 'index out of range from zero to %i' % (max_index - 1, ) glGetActiveAttribARB.wrappedOperation = base_glGetActiveAttribARB + +@lazy( glGetAttribLocationARB ) +def glGetAttribLocationARB( baseOperation, program, name ): + """Check that name is a string with a null byte at the end of it""" + if not name: + raise ValueError( """Non-null name required""" ) + elif name[-1] != '\000': + name = name + '\000' + return baseOperation( program, name ) + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/exceptional.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/exceptional.py --- pyopengl-3.0.0~b6/OpenGL/GL/exceptional.py 2008-09-07 15:36:23.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/exceptional.py 2008-12-08 03:25:35.000000000 +0000 @@ -1,7 +1,7 @@ """Exceptional cases that need some extra wrapping""" from OpenGL.platform import GL,GLU,createBaseFunction from OpenGL import arrays, error, wrapper -from OpenGL.arrays.arraydatatype import GLfloatArray +from OpenGL.arrays.arraydatatype import GLfloatArray, GLdoubleArray from OpenGL import constants as data_types from OpenGL.lazywrapper import lazy from OpenGL.raw import GL as simple @@ -118,7 +118,8 @@ if len(args) == 1: # v form... args = args[0] - return glRasterPosDispatch[ len(args) ]( args ) + value = GLdoubleArray.asArray( args, constants.GL_DOUBLE ) + return glRasterPosDispatch[ len(args) ]( value ) glVertexDispatch = { 2: simple.glVertex2dv, @@ -130,7 +131,8 @@ if len(args) == 1: # v form... args = args[0] - return glVertexDispatch[ len(args) ]( args ) + value = GLdoubleArray.asArray( args, constants.GL_DOUBLE ) + return glVertexDispatch[ len(args) ]( value ) @lazy( simple.glCallLists ) def glCallLists( baseFunction, lists ): @@ -160,7 +162,8 @@ elif isinstance( parameter, int ): return simple.glTexParameteri( target, pname, parameter ) else: - return simple.glTexParameterfv( target, pname, parameter ) + value = GLfloatArray.asArray( parameter, constants.GL_FLOAT ) + return simple.glTexParameterfv( target, pname, value ) @lazy( simple.glGenTextures ) def glGenTextures( baseFunction, count, textures=None ): diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/EXT/multi_draw_arrays.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/EXT/multi_draw_arrays.py --- pyopengl-3.0.0~b6/OpenGL/GL/EXT/multi_draw_arrays.py 2006-11-14 04:58:49.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/GL/EXT/multi_draw_arrays.py 2009-03-04 07:40:24.000000000 +0000 @@ -9,4 +9,45 @@ from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.EXT.multi_draw_arrays import * -### END AUTOGENERATED SECTION \ No newline at end of file +### END AUTOGENERATED SECTION +from OpenGL.lazywrapper import lazy +from OpenGL.GL.pointers import glDrawElements + +@lazy( glMultiDrawElementsEXT ) +def glMultiDrawElementsEXT(baseOperation, primtype, counts, typ, indices, primcount=None): + """Currently glMultiDrawElementsEXT is not working in the wrapper + + We are replacing the code with a sequence of glDrawElements calls + as per the spec for the function. Basically we'd spend more effort + making an array of array pointers than we would creating a simple + iteration in Python. + """ + if primcount is not None: + for i in xrange( primcount ): + glDrawElements( primtype, counts[i], typ, indices[i] ) + else: + for c,i in zip( counts, indices ): + glDrawElements( primtype, c, typ, i ) + +#def convertIndices( arg, wrappedOperation, args ): +# """Convert indices to an array of arrays""" +# return [ +# arrays.ArrayDatatype.asArray( element, args[2] ) +# for element in arg +# ] +#def resolveIndices( value ): +# pointers = [] +# for v in value: +# pointers.append( arrays.ArrayDatatype.voidDataPointer( v ) ) +# typ = ctypes.POINTER(None) * len(value) +# return typ( *pointers ) +# +#glMultiDrawElementsEXT = wrapper.wrapper( glMultiDrawElementsEXT ).setPyConverter( +# 'indices', convertIndices, +#).setCResolver( +# 'indices', resolveIndices, +#).setPyConverter( +# 'count', arrays.AsArrayTyped( 'count', arrays.GLsizeiArray ), +#).setCResolver( +# 'count', arrays.ArrayDatatype.voidDataPointer , +#) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/images.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/images.py --- pyopengl-3.0.0~b6/OpenGL/GL/images.py 2008-09-07 15:36:23.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/images.py 2009-03-29 21:43:25.000000000 +0100 @@ -524,6 +524,8 @@ def typedImageFunction( suffix, arrayConstant, baseFunction ): """Produce a typed version of the given image function""" + functionName = baseFunction.__name__ + functionName = '%(functionName)s%(suffix)s'%locals() if baseFunction: arrayType = arrays.GL_CONSTANT_TO_ARRAY_TYPE[ arrayConstant ] function = setDimensionsAsInts( @@ -533,11 +535,9 @@ typeName = arrayConstant, ) ) - functionName = baseFunction.__name__ - functionName = '%(functionName)s%(suffix)s'%locals() return functionName, function else: - return baseFunction.__name__, baseFunction + return functionName, baseFunction def _setDataSize( baseFunction, argument='imageSize' ): """Set the data-size value to come from the data field""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_1_4.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/VERSION/GL_1_4.py --- pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_1_4.py 2006-11-19 03:16:30.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/GL/VERSION/GL_1_4.py 2009-03-04 07:41:29.000000000 +0000 @@ -9,4 +9,31 @@ from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.VERSION.GL_1_4 import * -### END AUTOGENERATED SECTION \ No newline at end of file +### END AUTOGENERATED SECTION +from OpenGL.lazywrapper import lazy +from OpenGL.GL.pointers import glDrawElements +#glMultiDrawElements = wrapper.wrapper( glMultiDrawElements ).setPyConverter( +# 'indices', arrays.AsArrayOfType( 'indices', 'type' ), +#).setCResolver( +# 'indices', arrays.ArrayDatatype.voidDataPointer , +#).setPyConverter( +# 'count', arrays.AsArrayTyped( 'count', arrays.GLsizeiArray ), +#).setCResolver( +# 'count', arrays.ArrayDatatype.voidDataPointer , +#) + +@lazy( glMultiDrawElements ) +def glMultiDrawElements(baseOperation, primtype, counts, typ, indices, primcount=None): + """Currently glMultiDrawElements is not working in the wrapper + + We are replacing the code with a sequence of glDrawElements calls + as per the spec for the function. Basically we'd spend more effort + making an array of array pointers than we would creating a simple + iteration in Python. + """ + if primcount is not None: + for i in xrange( primcount ): + glDrawElements( primtype, counts[i], typ, indices[i] ) + else: + for c,i in zip( counts, indices ): + glDrawElements( primtype, c, typ, i ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_1_5.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/VERSION/GL_1_5.py --- pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_1_5.py 2008-06-22 05:53:12.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/VERSION/GL_1_5.py 2008-12-08 03:25:35.000000000 +0000 @@ -10,6 +10,7 @@ import ctypes from OpenGL.raw.GL.VERSION.GL_1_5 import * ### END AUTOGENERATED SECTION +from OpenGL.lazywrapper import lazy glDeleteBuffers = arrays.setInputArraySizeType( glDeleteBuffers, @@ -46,3 +47,37 @@ ).setReturnValues( wrapper.returnPyArgument( 'data' ) ) + +glGetBufferParameteriv = wrapper.wrapper(glGetBufferParameteriv).setOutput( + "params",(1,), +) +@lazy( glGetBufferPointerv ) +def glGetBufferPointerv( baseOperation, target, pname, params=None ): + """Retrieve a ctypes pointer to buffer's data""" + if params is None: + size = glGetBufferParameteriv( target, GL_BUFFER_SIZE ) + data = arrays.ArrayDatatype.zeros( (size,), GL_UNSIGNED_BYTE ) + result = baseOperation( target, pname, ctypes.byref( data ) ) + return data + else: + return baseOperation( target, pname, params ) + +for func in ('glGenQueries','glDeleteQueries'): + globals()[func] = wrapper.wrapper( + globals()[func], + ).setPyConverter('n').setCConverter( + 'n', arrays.AsArrayTypedSize( 'ids', arrays.GLuintArray ), + ).setCConverter( + 'ids', arrays.asArrayType(arrays.GLuintArray), + ).setReturnValues( + wrapper.returnPyArgument( 'ids' ) + ) + +for func in ( + 'glGetQueryiv','glGetQueryObjectiv','glGetQueryObjectuiv', +): + globals()[func] = wrapper.wrapper(globals()[func]).setOutput( + "params", (1,) + ) +del func, glget + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_2_0.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GL/VERSION/GL_2_0.py --- pyopengl-3.0.0~b6/OpenGL/GL/VERSION/GL_2_0.py 2008-09-13 15:56:45.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GL/VERSION/GL_2_0.py 2009-03-28 22:20:26.000000000 +0000 @@ -14,8 +14,10 @@ from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_COMPILE_STATUS_ARB as GL_OBJECT_COMPILE_STATUS from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_LINK_STATUS_ARB as GL_OBJECT_LINK_STATUS from OpenGL.GL.ARB.shader_objects import glGetInfoLogARB as glGetInfoLog +from OpenGL.lazywrapper import lazy -from OpenGL import converters, error +from OpenGL import converters, error, contextdata +from OpenGL.arrays.arraydatatype import ArrayDatatype GL_INFO_LOG_LENGTH = constant.Constant( 'GL_INFO_LOG_LENGTH', 0x8B84 ) glShaderSource = platform.createBaseFunction( @@ -51,13 +53,33 @@ name = 'glUniform%(size)s%(format)sv'%globals() globals()[name] = arrays.setInputArraySizeType( globals()[name], - size, + None, # don't want to enforce size... arrayType, 'value', ) del format, arrayType del size +@lazy( glGetShaderiv ) +def glGetShaderiv( baseOperation, shader, pname ): + """Retrieve the integer parameter for the given shader""" + status = arrays.GLintArray.zeros( (1,)) + status[0] = 1 + baseOperation( + shader, pname, status + ) + return status[0] +@lazy( glGetProgramiv ) +def glGetProgramiv( baseOperation, program, pname, params=None ): + """Will automatically allocate params if not provided""" + if params is None: + params = arrays.GLintArray.zeros( (1,)) + baseOperation( program, pname, params ) + return params[0] + else: + baseOperation( program,pname, params ) + return params + def _afterCheck( key ): """Generate an error-checking function for compilation operations""" if key == GL_OBJECT_COMPILE_STATUS: @@ -94,30 +116,118 @@ ##if glValidateProgram and OpenGL.ERROR_CHECKING: ## glValidateProgram.errcheck = _afterCheck( GL_OBJECT_VALIDATE_STATUS ) -base_glGetShaderSource = glGetShaderSource -def glGetShaderSource( obj ): +@lazy( glGetShaderInfoLog ) +def glGetShaderInfoLog( baseOperation, obj ): + """Retrieve the shader's error messages as a Python string + + returns string which is '' if no message + """ + length = int(glGetShaderiv(obj, GL_INFO_LOG_LENGTH)) + if length > 0: + log = ctypes.create_string_buffer(length) + baseOperation(obj, length, None, log) + return log.value.strip('\000') # null-termination + return '' +@lazy( glGetProgramInfoLog ) +def glGetProgramInfoLog( baseOperation, obj ): + """Retrieve the shader program's error messages as a Python string + + returns string which is '' if no message + """ + length = int(glGetProgramiv(obj, GL_INFO_LOG_LENGTH)) + if length > 0: + log = ctypes.create_string_buffer(length) + baseOperation(obj, length, None, log) + return log.value.strip('\000') # null-termination + return '' + +@lazy( glGetAttachedShaders ) +def glGetAttachedShaders( baseOperation, obj ): + """Retrieve the attached objects as an array of GLhandle instances""" + length= glGetProgramiv( obj, GL_ATTACHED_SHADERS ) + if length > 0: + storage = arrays.GLuintArray.zeros( (length,)) + baseOperation( obj, length, None, storage ) + return storage + return arrays.GLuintArray.zeros( (0,)) + + +@lazy( glGetShaderSource ) +def glGetShaderSource( baseOperation, obj ): """Retrieve the program/shader's source code as a Python string returns string which is '' if no source code """ - length = int(glGetObjectParameteriv(obj, GL_OBJECT_SHADER_SOURCE_LENGTH)) + length = int(glGetShaderiv(obj, GL_OBJECT_SHADER_SOURCE_LENGTH)) if length > 0: source = ctypes.create_string_buffer(length) - base_glGetShaderSource(obj, length, None, source) + baseOperation(obj, length, None, source) return source.value.strip('\000') # null-termination return '' -glGetShaderSource.wrappedOperation = base_glGetShaderSource -base_glGetActiveUniform = glGetActiveUniform -def glGetActiveUniform(program, index): +@lazy( glGetActiveUniform ) +def glGetActiveUniform(baseOperation,program, index): """Retrieve the name, size and type of the uniform of the index in the program""" - max_index = int(glGetObjectParameteriv( program, GL_OBJECT_ACTIVE_UNIFORMS )) - length = int(glGetObjectParameteriv( program, GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH)) - if index < max_index and index >= 0 and length > 0: - name = ctypes.create_string_buffer(length) - size = arrays.GLintArray.zeros( (1,)) - gl_type = arrays.GLuintArray.zeros( (1,)) - base_glGetActiveUniform(program, index, length, None, size, gl_type, name) - return name.value, size[0], gl_type[0] + max_index = int(glGetShaderiv( program, GL_OBJECT_ACTIVE_UNIFORMS )) + length = int(glGetShaderiv( program, GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH)) + if index < max_index and index >= 0: + if length > 0: + name = ctypes.create_string_buffer(length) + size = arrays.GLintArray.zeros( (1,)) + gl_type = arrays.GLuintArray.zeros( (1,)) + baseOperation(program, index, length, None, size, gl_type, name) + return name.value[:int(size[0])], size[0], gl_type[0] + raise ValueError( """No currently specified uniform names""" ) raise IndexError, 'Index %s out of range 0 to %i' % (index, max_index - 1, ) -glGetActiveUniform.wrappedOperation = base_glGetActiveUniform + +@lazy( glGetUniformLocation ) +def glGetUniformLocation( baseOperation, program, name ): + """Check that name is a string with a null byte at the end of it""" + if not name: + raise ValueError( """Non-null name required""" ) + elif name[-1] != '\000': + name = name + '\000' + return baseOperation( program, name ) +@lazy( glGetAttribLocation ) +def glGetAttribLocation( baseOperation, program, name ): + """Check that name is a string with a null byte at the end of it""" + if not name: + raise ValueError( """Non-null name required""" ) + elif name[-1] != '\000': + name = name + '\000' + return baseOperation( program, name ) + +@lazy( glVertexAttribPointer ) +def glVertexAttribPointer( + baseOperation, index, size, type, + normalized, stride, pointer, +): + """Set an attribute pointer for a given shader (index) + + index -- the index of the generic vertex to bind, see + glGetAttribLocation for retrieval of the value, + note that index is a global variable, not per-shader + size -- number of basic elements per record, 1,2,3, or 4 + type -- enum constant for data-type + normalized -- whether to perform int to float + normalization on integer-type values + stride -- stride in machine units (bytes) between + consecutive records, normally used to create + "interleaved" arrays + pointer -- data-pointer which provides the data-values, + normally a vertex-buffer-object or offset into the + same. + + This implementation stores a copy of the data-pointer + in the contextdata structure in order to prevent null- + reference errors in the renderer. + """ + array = ArrayDatatype.asArray( pointer ) + key = ('vertex-attrib',index) + contextdata.setValue( key, array ) + return baseOperation( + index, size, type, + normalized, stride, + ArrayDatatype.voidDataPointer( array ) + ) + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/GLUT/special.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/GLUT/special.py --- pyopengl-3.0.0~b6/OpenGL/GLUT/special.py 2008-09-13 15:56:46.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/GLUT/special.py 2008-12-08 03:25:35.000000000 +0000 @@ -25,7 +25,7 @@ from OpenGL.raw import GLUT as simple import ctypes, os, sys, traceback PLATFORM = platform.PLATFORM -FUNCTION_TYPE = simple.CALLBACK_FUNCTION_TYPE +FUNCTION_TYPE = simple.CALLBACK_FUNCTION_TYPE log = logs.getLog( 'OpenGL.GLUT.special' ) @@ -146,15 +146,15 @@ try: function( value ) finally: - try: - callbacks.remove( deregister ) - except ValueError, err: - pass - else: - if not callbacks: - contextdata.delValue( self.CONTEXT_DATA_KEY ) + for item in callbacks: + if item.function is deregister: + callbacks.remove( item ) + item.function = None + break + if not callbacks: + contextdata.delValue( self.CONTEXT_DATA_KEY ) cCallback = self.callbackType( deregister ) - #cCallback.function = deregister + cCallback.function = deregister callbacks.append( cCallback ) self.wrappedOperation( milliseconds, cCallback, value ) return cCallback diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/__init__.py --- pyopengl-3.0.0~b6/OpenGL/__init__.py 2008-09-08 02:22:17.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/__init__.py 2009-03-29 15:30:08.000000000 +0100 @@ -61,6 +61,10 @@ Default: False + WARN_ON_FORMAT_UNAVAILABLE -- If True, generates + logging-module warn-level events when a FormatHandler + plugin is not loadable (with traceback). + FULL_LOGGING -- If True, then wrap functions with logging operations which reports each call along with its arguments to the OpenGL.calltrace logger at the INFO @@ -88,14 +92,21 @@ UNSIGNED_BYTE_IMAGES_AS_STRING -- if True, we will return GL_UNSIGNED_BYTE image-data as strings, istead of arrays for glReadPixels and glGetTexImage + + FORWARD_COMPATIBLE_ONLY -- only include OpenGL 3.1 compatible + entry points. Note that this will generally break most + PyOpenGL code that hasn't been explicitly made "legacy free" + via a significant rewrite. """ from OpenGL.version import __version__ ERROR_CHECKING = True ERROR_LOGGING = False ERROR_ON_COPY = False +WARN_ON_FORMAT_UNAVAILABLE = False +FORWARD_COMPATIBLE_ONLY = False -FULL_LOGGING = False +FULL_LOGGING = False ALLOW_NUMPY_SCALARS = False UNSIGNED_BYTE_IMAGES_AS_STRING = True @@ -108,11 +119,11 @@ FormatHandler( 'none', 'OpenGL.arrays.nones.NoneHandler' ) FormatHandler( 'str', 'OpenGL.arrays.strings.StringHandler' ) -FormatHandler( 'list', 'OpenGL.arrays.lists.ListHandler' ) +FormatHandler( 'list', 'OpenGL.arrays.lists.ListHandler', ['__builtin__.list','__builtin__.tuple'] ) FormatHandler( 'numbers', 'OpenGL.arrays.numbers.NumberHandler' ) FormatHandler( 'ctypesarray', 'OpenGL.arrays.ctypesarrays.CtypesArrayHandler' ) FormatHandler( 'ctypesparameter', 'OpenGL.arrays.ctypesparameters.CtypesParameterHandler' ) FormatHandler( 'ctypespointer', 'OpenGL.arrays.ctypespointers.CtypesPointerHandler' ) FormatHandler( 'numpy', 'OpenGL.arrays.numpymodule.NumpyHandler', ['numpy.ndarray'] ) #FormatHandler( 'numarray', 'OpenGL.arrays.numarrays.NumarrayHandler' ) -#FormatHandler( 'numeric', 'OpenGL.arrays.numeric.NumericHandler', ) +FormatHandler( 'numeric', 'OpenGL.arrays.numeric.NumericHandler', ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/lazywrapper.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/lazywrapper.py --- pyopengl-3.0.0~b6/OpenGL/lazywrapper.py 2008-08-25 04:38:41.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/lazywrapper.py 2008-12-08 03:25:35.000000000 +0000 @@ -1,26 +1,3 @@ -#class LazyWrapper( object ): -# """Object which holds a lazy-loading function and a wrapper object -# -# Applies the wrapper to the baseFunction when the baseFunction is -# defined, otherwise just calls the base function. -# """ -# def __init__( self, baseFunction, wrapperFunction ): -# """Initialize the lazy wrapper -# -# baseFunction -- the base platform function object -# wrapperFunction -- the wrapper function, must take -# the baseFunction as its first argument, then the arguments -# for the Pythonic API for the function -# """ -# self.baseFunction = baseFunction -# self.wrapperFunction = wrapperFunction -# def __call__( self, *args, **named ): -# if self.baseFunction: -# return self.wrapperFunction( self.baseFunction, *args, **named ) -# else: -# return self.baseFunction( *args, **named ) -# def __nonzero__( self ): -# return bool( self.baseFunction ) def lazy( baseFunction ): """Produce a lazy-binding decorator that uses baseFunction diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/platform/baseplatform.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/platform/baseplatform.py --- pyopengl-3.0.0~b6/OpenGL/platform/baseplatform.py 2008-09-13 16:39:00.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/platform/baseplatform.py 2009-03-29 15:09:51.000000000 +0100 @@ -6,6 +6,10 @@ import OpenGL as top_level_module from OpenGL import logs +if top_level_module.FORWARD_COMPATIBLE_ONLY: + from OpenGL.platform import entrypoint31 + + class BasePlatform( object ): """Base class for per-platform implementations @@ -91,7 +95,7 @@ pointer ) else: - AttributeError( """Extension %r available, but no pointer for function %r"""%(extension,functionName)) + raise AttributeError( """Extension %r available, but no pointer for function %r"""%(extension,functionName)) else: raise AttributeError( """No extension %r"""%(extension,)) else: @@ -127,6 +131,16 @@ """ from OpenGL import wrapper try: + if top_level_module.FORWARD_COMPATIBLE_ONLY and dll is self.GL: + if entrypoint31.deprecated( functionName ): + return self.nullFunction( + functionName, dll=dll, + resultType=resultType, + argTypes=argTypes, + doc = doc, argNames = argNames, + extension = extension, + deprecated = True, + ) return self.constructFunction( functionName, dll, resultType=resultType, argTypes=argTypes, @@ -189,7 +203,7 @@ original.__name__, original.DLL, resultType=original.restype, argTypes=original.argtypes, doc = original.__doc__, argNames = original.argNames, - extension = original.argNames, + extension = original.extension, ) def nullFunction( self, @@ -198,9 +212,14 @@ argTypes=(), doc = None, argNames = (), extension = None, + deprecated = False, ): """Construct a "null" function pointer""" - cls = type( functionName, (_NullFunctionPointer,), { + if deprecated: + base = _DeprecatedFunctionPointer + else: + base = _NullFunctionPointer + cls = type( functionName, (base,), { '__doc__': doc, } ) return cls( @@ -280,3 +299,12 @@ self.__name__, self.__name__, ) ) + +class _DeprecatedFunctionPointer( _NullFunctionPointer ): + def __call__( self, *args, **named ): + from OpenGL import error + raise error.NullFunctionError( + """Attempt to call a deprecated function %s while OpenGL in FORWARD_COMPATIBLE_ONLY mode. Set OpenGL.FORWARD_COMPATIBLE_ONLY to True to use legacy entry points"""%( + self.__name__, + ) + ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/platform/ctypesloader.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/platform/ctypesloader.py --- pyopengl-3.0.0~b6/OpenGL/platform/ctypesloader.py 2007-12-16 19:21:40.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/platform/ctypesloader.py 2009-02-15 01:19:36.000000000 +0000 @@ -3,13 +3,17 @@ We keep rewriting functions as the main entry points change, so let's just localise the changes here... """ -import ctypes, logging +import ctypes, logging, os log = logging.getLogger( 'OpenGL.ctypes' ) log.setLevel( logging.DEBUG ) ctypes_version = [ int(x) for x in ctypes.__version__.split('.') ] from ctypes import util +import OpenGL + +DLL_DIRECTORY = os.path.join( os.path.dirname( OpenGL.__file__ ), 'DLLS' ) + def loadLibrary( dllType, name, mode = ctypes.RTLD_GLOBAL ): @@ -34,6 +38,8 @@ fullName = util.find_library( name ) if fullName is not None: name = fullName + elif os.path.isfile( os.path.join( DLL_DIRECTORY, name + '.dll' )): + name = os.path.join( DLL_DIRECTORY, name + '.dll' ) except Exception, err: log.info( '''Failed on util.find_library( %r ): %s''', name, err ) # Should the call fail, we just try to load the base filename... diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/platform/darwin.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/platform/darwin.py --- pyopengl-3.0.0~b6/OpenGL/platform/darwin.py 2007-12-29 23:55:30.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/platform/darwin.py 2009-02-09 18:30:51.000000000 +0000 @@ -43,7 +43,7 @@ # the same assumption GLUT does... GLUT = ctypesloader.loadLibrary( ctypes.cdll, - 'glut', + 'GLUT', mode=ctypes.RTLD_GLOBAL ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLEXT/__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLEXT/__init__.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLEXT/__init__.py 2007-05-20 22:34:30.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/GLEXT/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -"""OpenGL Extensions""" \ No newline at end of file diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLEXT/TYPES_DEFINED.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLEXT/TYPES_DEFINED.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLEXT/TYPES_DEFINED.py 2007-05-20 22:34:30.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/GLEXT/TYPES_DEFINED.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,17 +0,0 @@ -'''OpenGL extension .TYPES_DEFINED - -The official definition of this extension is available here: - http://oss.sgi.com/projects/ogl-sample/registry//TYPES_DEFINED.txt - -Automatically generated by the get_gl_extensions script, do not edit! -''' -from OpenGL import platform, constants, constant, arrays -from OpenGL import extensions -from OpenGL.GL import glget -import ctypes - - - -def glInitTypesDefined(): - '''Return boolean indicating whether this extension is available''' - return extensions.hasGLExtension( 'GLEXT__TYPES_DEFINED' ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/gl.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/gl.py --- pyopengl-3.0.0~b6/OpenGL/raw/gl.py 2008-08-29 16:21:20.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/gl.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,2772 +0,0 @@ -# BEGIN GENERATED CONTENT (do not edit below this line) - -# This content is generated by gengl.py. -# Wrapper for /usr/include/GL/gl.h -from OpenGL import platform -from OpenGL.constants import * -from OpenGL.constant import Constant -from OpenGL.arrays.arraydatatype import * -from ctypes import * -c_void = None - - -GL_VERSION_1_1=Constant( 'GL_VERSION_1_1', 1 ) -GL_CURRENT_BIT=Constant( 'GL_CURRENT_BIT', 1 ) -GL_POINT_BIT=Constant( 'GL_POINT_BIT', 2 ) -GL_LINE_BIT=Constant( 'GL_LINE_BIT', 4 ) -GL_POLYGON_BIT=Constant( 'GL_POLYGON_BIT', 8 ) -GL_POLYGON_STIPPLE_BIT=Constant( 'GL_POLYGON_STIPPLE_BIT', 16 ) -GL_PIXEL_MODE_BIT=Constant( 'GL_PIXEL_MODE_BIT', 32 ) -GL_LIGHTING_BIT=Constant( 'GL_LIGHTING_BIT', 64 ) -GL_FOG_BIT=Constant( 'GL_FOG_BIT', 128 ) -GL_DEPTH_BUFFER_BIT=Constant( 'GL_DEPTH_BUFFER_BIT', 256 ) -GL_ACCUM_BUFFER_BIT=Constant( 'GL_ACCUM_BUFFER_BIT', 512 ) -GL_STENCIL_BUFFER_BIT=Constant( 'GL_STENCIL_BUFFER_BIT', 1024 ) -GL_VIEWPORT_BIT=Constant( 'GL_VIEWPORT_BIT', 2048 ) -GL_TRANSFORM_BIT=Constant( 'GL_TRANSFORM_BIT', 4096 ) -GL_ENABLE_BIT=Constant( 'GL_ENABLE_BIT', 8192 ) -GL_COLOR_BUFFER_BIT=Constant( 'GL_COLOR_BUFFER_BIT', 16384 ) -GL_HINT_BIT=Constant( 'GL_HINT_BIT', 32768 ) -GL_EVAL_BIT=Constant( 'GL_EVAL_BIT', 65536 ) -GL_LIST_BIT=Constant( 'GL_LIST_BIT', 131072 ) -GL_TEXTURE_BIT=Constant( 'GL_TEXTURE_BIT', 262144 ) -GL_SCISSOR_BIT=Constant( 'GL_SCISSOR_BIT', 524288 ) -GL_ALL_ATTRIB_BITS=Constant( 'GL_ALL_ATTRIB_BITS', 4294967295 ) -GL_CLIENT_PIXEL_STORE_BIT=Constant( 'GL_CLIENT_PIXEL_STORE_BIT', 1 ) -GL_CLIENT_VERTEX_ARRAY_BIT=Constant( 'GL_CLIENT_VERTEX_ARRAY_BIT', 2 ) -GL_CLIENT_ALL_ATTRIB_BITS=Constant( 'GL_CLIENT_ALL_ATTRIB_BITS', 4294967295 ) -GL_FALSE=Constant( 'GL_FALSE', 0 ) -GL_TRUE=Constant( 'GL_TRUE', 1 ) -GL_POINTS=Constant( 'GL_POINTS', 0 ) -GL_LINES=Constant( 'GL_LINES', 1 ) -GL_LINE_LOOP=Constant( 'GL_LINE_LOOP', 2 ) -GL_LINE_STRIP=Constant( 'GL_LINE_STRIP', 3 ) -GL_TRIANGLES=Constant( 'GL_TRIANGLES', 4 ) -GL_TRIANGLE_STRIP=Constant( 'GL_TRIANGLE_STRIP', 5 ) -GL_TRIANGLE_FAN=Constant( 'GL_TRIANGLE_FAN', 6 ) -GL_QUADS=Constant( 'GL_QUADS', 7 ) -GL_QUAD_STRIP=Constant( 'GL_QUAD_STRIP', 8 ) -GL_POLYGON=Constant( 'GL_POLYGON', 9 ) -GL_ACCUM=Constant( 'GL_ACCUM', 256 ) -GL_LOAD=Constant( 'GL_LOAD', 257 ) -GL_RETURN=Constant( 'GL_RETURN', 258 ) -GL_MULT=Constant( 'GL_MULT', 259 ) -GL_ADD=Constant( 'GL_ADD', 260 ) -GL_NEVER=Constant( 'GL_NEVER', 512 ) -GL_LESS=Constant( 'GL_LESS', 513 ) -GL_EQUAL=Constant( 'GL_EQUAL', 514 ) -GL_LEQUAL=Constant( 'GL_LEQUAL', 515 ) -GL_GREATER=Constant( 'GL_GREATER', 516 ) -GL_NOTEQUAL=Constant( 'GL_NOTEQUAL', 517 ) -GL_GEQUAL=Constant( 'GL_GEQUAL', 518 ) -GL_ALWAYS=Constant( 'GL_ALWAYS', 519 ) -GL_ZERO=Constant( 'GL_ZERO', 0 ) -GL_ONE=Constant( 'GL_ONE', 1 ) -GL_SRC_COLOR=Constant( 'GL_SRC_COLOR', 768 ) -GL_ONE_MINUS_SRC_COLOR=Constant( 'GL_ONE_MINUS_SRC_COLOR', 769 ) -GL_SRC_ALPHA=Constant( 'GL_SRC_ALPHA', 770 ) -GL_ONE_MINUS_SRC_ALPHA=Constant( 'GL_ONE_MINUS_SRC_ALPHA', 771 ) -GL_DST_ALPHA=Constant( 'GL_DST_ALPHA', 772 ) -GL_ONE_MINUS_DST_ALPHA=Constant( 'GL_ONE_MINUS_DST_ALPHA', 773 ) -GL_DST_COLOR=Constant( 'GL_DST_COLOR', 774 ) -GL_ONE_MINUS_DST_COLOR=Constant( 'GL_ONE_MINUS_DST_COLOR', 775 ) -GL_SRC_ALPHA_SATURATE=Constant( 'GL_SRC_ALPHA_SATURATE', 776 ) -GL_NONE=Constant( 'GL_NONE', 0 ) -GL_FRONT_LEFT=Constant( 'GL_FRONT_LEFT', 1024 ) -GL_FRONT_RIGHT=Constant( 'GL_FRONT_RIGHT', 1025 ) -GL_BACK_LEFT=Constant( 'GL_BACK_LEFT', 1026 ) -GL_BACK_RIGHT=Constant( 'GL_BACK_RIGHT', 1027 ) -GL_FRONT=Constant( 'GL_FRONT', 1028 ) -GL_BACK=Constant( 'GL_BACK', 1029 ) -GL_LEFT=Constant( 'GL_LEFT', 1030 ) -GL_RIGHT=Constant( 'GL_RIGHT', 1031 ) -GL_FRONT_AND_BACK=Constant( 'GL_FRONT_AND_BACK', 1032 ) -GL_AUX0=Constant( 'GL_AUX0', 1033 ) -GL_AUX1=Constant( 'GL_AUX1', 1034 ) -GL_AUX2=Constant( 'GL_AUX2', 1035 ) -GL_AUX3=Constant( 'GL_AUX3', 1036 ) -GL_NO_ERROR=Constant( 'GL_NO_ERROR', 0 ) -GL_INVALID_ENUM=Constant( 'GL_INVALID_ENUM', 1280 ) -GL_INVALID_VALUE=Constant( 'GL_INVALID_VALUE', 1281 ) -GL_INVALID_OPERATION=Constant( 'GL_INVALID_OPERATION', 1282 ) -GL_STACK_OVERFLOW=Constant( 'GL_STACK_OVERFLOW', 1283 ) -GL_STACK_UNDERFLOW=Constant( 'GL_STACK_UNDERFLOW', 1284 ) -GL_OUT_OF_MEMORY=Constant( 'GL_OUT_OF_MEMORY', 1285 ) -GL_TABLE_TOO_LARGE=Constant( 'GL_TABLE_TOO_LARGE', 32817 ) -GL_2D=Constant( 'GL_2D', 1536 ) -GL_3D=Constant( 'GL_3D', 1537 ) -GL_3D_COLOR=Constant( 'GL_3D_COLOR', 1538 ) -GL_3D_COLOR_TEXTURE=Constant( 'GL_3D_COLOR_TEXTURE', 1539 ) -GL_4D_COLOR_TEXTURE=Constant( 'GL_4D_COLOR_TEXTURE', 1540 ) -GL_PASS_THROUGH_TOKEN=Constant( 'GL_PASS_THROUGH_TOKEN', 1792 ) -GL_POINT_TOKEN=Constant( 'GL_POINT_TOKEN', 1793 ) -GL_LINE_TOKEN=Constant( 'GL_LINE_TOKEN', 1794 ) -GL_POLYGON_TOKEN=Constant( 'GL_POLYGON_TOKEN', 1795 ) -GL_BITMAP_TOKEN=Constant( 'GL_BITMAP_TOKEN', 1796 ) -GL_DRAW_PIXEL_TOKEN=Constant( 'GL_DRAW_PIXEL_TOKEN', 1797 ) -GL_COPY_PIXEL_TOKEN=Constant( 'GL_COPY_PIXEL_TOKEN', 1798 ) -GL_LINE_RESET_TOKEN=Constant( 'GL_LINE_RESET_TOKEN', 1799 ) -GL_EXP=Constant( 'GL_EXP', 2048 ) -GL_EXP2=Constant( 'GL_EXP2', 2049 ) -GL_CW=Constant( 'GL_CW', 2304 ) -GL_CCW=Constant( 'GL_CCW', 2305 ) -GL_COEFF=Constant( 'GL_COEFF', 2560 ) -GL_ORDER=Constant( 'GL_ORDER', 2561 ) -GL_DOMAIN=Constant( 'GL_DOMAIN', 2562 ) -GL_PIXEL_MAP_I_TO_I=Constant( 'GL_PIXEL_MAP_I_TO_I', 3184 ) -GL_PIXEL_MAP_S_TO_S=Constant( 'GL_PIXEL_MAP_S_TO_S', 3185 ) -GL_PIXEL_MAP_I_TO_R=Constant( 'GL_PIXEL_MAP_I_TO_R', 3186 ) -GL_PIXEL_MAP_I_TO_G=Constant( 'GL_PIXEL_MAP_I_TO_G', 3187 ) -GL_PIXEL_MAP_I_TO_B=Constant( 'GL_PIXEL_MAP_I_TO_B', 3188 ) -GL_PIXEL_MAP_I_TO_A=Constant( 'GL_PIXEL_MAP_I_TO_A', 3189 ) -GL_PIXEL_MAP_R_TO_R=Constant( 'GL_PIXEL_MAP_R_TO_R', 3190 ) -GL_PIXEL_MAP_G_TO_G=Constant( 'GL_PIXEL_MAP_G_TO_G', 3191 ) -GL_PIXEL_MAP_B_TO_B=Constant( 'GL_PIXEL_MAP_B_TO_B', 3192 ) -GL_PIXEL_MAP_A_TO_A=Constant( 'GL_PIXEL_MAP_A_TO_A', 3193 ) -GL_VERTEX_ARRAY_POINTER=Constant( 'GL_VERTEX_ARRAY_POINTER', 32910 ) -GL_NORMAL_ARRAY_POINTER=Constant( 'GL_NORMAL_ARRAY_POINTER', 32911 ) -GL_COLOR_ARRAY_POINTER=Constant( 'GL_COLOR_ARRAY_POINTER', 32912 ) -GL_INDEX_ARRAY_POINTER=Constant( 'GL_INDEX_ARRAY_POINTER', 32913 ) -GL_TEXTURE_COORD_ARRAY_POINTER=Constant( 'GL_TEXTURE_COORD_ARRAY_POINTER', 32914 ) -GL_EDGE_FLAG_ARRAY_POINTER=Constant( 'GL_EDGE_FLAG_ARRAY_POINTER', 32915 ) -GL_CURRENT_COLOR=Constant( 'GL_CURRENT_COLOR', 2816 ) -GL_CURRENT_INDEX=Constant( 'GL_CURRENT_INDEX', 2817 ) -GL_CURRENT_NORMAL=Constant( 'GL_CURRENT_NORMAL', 2818 ) -GL_CURRENT_TEXTURE_COORDS=Constant( 'GL_CURRENT_TEXTURE_COORDS', 2819 ) -GL_CURRENT_RASTER_COLOR=Constant( 'GL_CURRENT_RASTER_COLOR', 2820 ) -GL_CURRENT_RASTER_INDEX=Constant( 'GL_CURRENT_RASTER_INDEX', 2821 ) -GL_CURRENT_RASTER_TEXTURE_COORDS=Constant( 'GL_CURRENT_RASTER_TEXTURE_COORDS', 2822 ) -GL_CURRENT_RASTER_POSITION=Constant( 'GL_CURRENT_RASTER_POSITION', 2823 ) -GL_CURRENT_RASTER_POSITION_VALID=Constant( 'GL_CURRENT_RASTER_POSITION_VALID', 2824 ) -GL_CURRENT_RASTER_DISTANCE=Constant( 'GL_CURRENT_RASTER_DISTANCE', 2825 ) -GL_POINT_SMOOTH=Constant( 'GL_POINT_SMOOTH', 2832 ) -GL_POINT_SIZE=Constant( 'GL_POINT_SIZE', 2833 ) -GL_SMOOTH_POINT_SIZE_RANGE=Constant( 'GL_SMOOTH_POINT_SIZE_RANGE', 2834 ) -GL_SMOOTH_POINT_SIZE_GRANULARITY=Constant( 'GL_SMOOTH_POINT_SIZE_GRANULARITY', 2835 ) -GL_POINT_SIZE_RANGE=Constant( 'GL_POINT_SIZE_RANGE', 2834 ) -GL_POINT_SIZE_GRANULARITY=Constant( 'GL_POINT_SIZE_GRANULARITY', 2835 ) -GL_LINE_SMOOTH=Constant( 'GL_LINE_SMOOTH', 2848 ) -GL_LINE_WIDTH=Constant( 'GL_LINE_WIDTH', 2849 ) -GL_SMOOTH_LINE_WIDTH_RANGE=Constant( 'GL_SMOOTH_LINE_WIDTH_RANGE', 2850 ) -GL_SMOOTH_LINE_WIDTH_GRANULARITY=Constant( 'GL_SMOOTH_LINE_WIDTH_GRANULARITY', 2851 ) -GL_LINE_WIDTH_RANGE=Constant( 'GL_LINE_WIDTH_RANGE', 2850 ) -GL_LINE_WIDTH_GRANULARITY=Constant( 'GL_LINE_WIDTH_GRANULARITY', 2851 ) -GL_LINE_STIPPLE=Constant( 'GL_LINE_STIPPLE', 2852 ) -GL_LINE_STIPPLE_PATTERN=Constant( 'GL_LINE_STIPPLE_PATTERN', 2853 ) -GL_LINE_STIPPLE_REPEAT=Constant( 'GL_LINE_STIPPLE_REPEAT', 2854 ) -GL_LIST_MODE=Constant( 'GL_LIST_MODE', 2864 ) -GL_MAX_LIST_NESTING=Constant( 'GL_MAX_LIST_NESTING', 2865 ) -GL_LIST_BASE=Constant( 'GL_LIST_BASE', 2866 ) -GL_LIST_INDEX=Constant( 'GL_LIST_INDEX', 2867 ) -GL_POLYGON_MODE=Constant( 'GL_POLYGON_MODE', 2880 ) -GL_POLYGON_SMOOTH=Constant( 'GL_POLYGON_SMOOTH', 2881 ) -GL_POLYGON_STIPPLE=Constant( 'GL_POLYGON_STIPPLE', 2882 ) -GL_EDGE_FLAG=Constant( 'GL_EDGE_FLAG', 2883 ) -GL_CULL_FACE=Constant( 'GL_CULL_FACE', 2884 ) -GL_CULL_FACE_MODE=Constant( 'GL_CULL_FACE_MODE', 2885 ) -GL_FRONT_FACE=Constant( 'GL_FRONT_FACE', 2886 ) -GL_LIGHTING=Constant( 'GL_LIGHTING', 2896 ) -GL_LIGHT_MODEL_LOCAL_VIEWER=Constant( 'GL_LIGHT_MODEL_LOCAL_VIEWER', 2897 ) -GL_LIGHT_MODEL_TWO_SIDE=Constant( 'GL_LIGHT_MODEL_TWO_SIDE', 2898 ) -GL_LIGHT_MODEL_AMBIENT=Constant( 'GL_LIGHT_MODEL_AMBIENT', 2899 ) -GL_SHADE_MODEL=Constant( 'GL_SHADE_MODEL', 2900 ) -GL_COLOR_MATERIAL_FACE=Constant( 'GL_COLOR_MATERIAL_FACE', 2901 ) -GL_COLOR_MATERIAL_PARAMETER=Constant( 'GL_COLOR_MATERIAL_PARAMETER', 2902 ) -GL_COLOR_MATERIAL=Constant( 'GL_COLOR_MATERIAL', 2903 ) -GL_FOG=Constant( 'GL_FOG', 2912 ) -GL_FOG_INDEX=Constant( 'GL_FOG_INDEX', 2913 ) -GL_FOG_DENSITY=Constant( 'GL_FOG_DENSITY', 2914 ) -GL_FOG_START=Constant( 'GL_FOG_START', 2915 ) -GL_FOG_END=Constant( 'GL_FOG_END', 2916 ) -GL_FOG_MODE=Constant( 'GL_FOG_MODE', 2917 ) -GL_FOG_COLOR=Constant( 'GL_FOG_COLOR', 2918 ) -GL_DEPTH_RANGE=Constant( 'GL_DEPTH_RANGE', 2928 ) -GL_DEPTH_TEST=Constant( 'GL_DEPTH_TEST', 2929 ) -GL_DEPTH_WRITEMASK=Constant( 'GL_DEPTH_WRITEMASK', 2930 ) -GL_DEPTH_CLEAR_VALUE=Constant( 'GL_DEPTH_CLEAR_VALUE', 2931 ) -GL_DEPTH_FUNC=Constant( 'GL_DEPTH_FUNC', 2932 ) -GL_ACCUM_CLEAR_VALUE=Constant( 'GL_ACCUM_CLEAR_VALUE', 2944 ) -GL_STENCIL_TEST=Constant( 'GL_STENCIL_TEST', 2960 ) -GL_STENCIL_CLEAR_VALUE=Constant( 'GL_STENCIL_CLEAR_VALUE', 2961 ) -GL_STENCIL_FUNC=Constant( 'GL_STENCIL_FUNC', 2962 ) -GL_STENCIL_VALUE_MASK=Constant( 'GL_STENCIL_VALUE_MASK', 2963 ) -GL_STENCIL_FAIL=Constant( 'GL_STENCIL_FAIL', 2964 ) -GL_STENCIL_PASS_DEPTH_FAIL=Constant( 'GL_STENCIL_PASS_DEPTH_FAIL', 2965 ) -GL_STENCIL_PASS_DEPTH_PASS=Constant( 'GL_STENCIL_PASS_DEPTH_PASS', 2966 ) -GL_STENCIL_REF=Constant( 'GL_STENCIL_REF', 2967 ) -GL_STENCIL_WRITEMASK=Constant( 'GL_STENCIL_WRITEMASK', 2968 ) -GL_MATRIX_MODE=Constant( 'GL_MATRIX_MODE', 2976 ) -GL_NORMALIZE=Constant( 'GL_NORMALIZE', 2977 ) -GL_VIEWPORT=Constant( 'GL_VIEWPORT', 2978 ) -GL_MODELVIEW_STACK_DEPTH=Constant( 'GL_MODELVIEW_STACK_DEPTH', 2979 ) -GL_PROJECTION_STACK_DEPTH=Constant( 'GL_PROJECTION_STACK_DEPTH', 2980 ) -GL_TEXTURE_STACK_DEPTH=Constant( 'GL_TEXTURE_STACK_DEPTH', 2981 ) -GL_MODELVIEW_MATRIX=Constant( 'GL_MODELVIEW_MATRIX', 2982 ) -GL_PROJECTION_MATRIX=Constant( 'GL_PROJECTION_MATRIX', 2983 ) -GL_TEXTURE_MATRIX=Constant( 'GL_TEXTURE_MATRIX', 2984 ) -GL_ATTRIB_STACK_DEPTH=Constant( 'GL_ATTRIB_STACK_DEPTH', 2992 ) -GL_CLIENT_ATTRIB_STACK_DEPTH=Constant( 'GL_CLIENT_ATTRIB_STACK_DEPTH', 2993 ) -GL_ALPHA_TEST=Constant( 'GL_ALPHA_TEST', 3008 ) -GL_ALPHA_TEST_FUNC=Constant( 'GL_ALPHA_TEST_FUNC', 3009 ) -GL_ALPHA_TEST_REF=Constant( 'GL_ALPHA_TEST_REF', 3010 ) -GL_DITHER=Constant( 'GL_DITHER', 3024 ) -GL_BLEND_DST=Constant( 'GL_BLEND_DST', 3040 ) -GL_BLEND_SRC=Constant( 'GL_BLEND_SRC', 3041 ) -GL_BLEND=Constant( 'GL_BLEND', 3042 ) -GL_LOGIC_OP_MODE=Constant( 'GL_LOGIC_OP_MODE', 3056 ) -GL_INDEX_LOGIC_OP=Constant( 'GL_INDEX_LOGIC_OP', 3057 ) -GL_LOGIC_OP=Constant( 'GL_LOGIC_OP', 3057 ) -GL_COLOR_LOGIC_OP=Constant( 'GL_COLOR_LOGIC_OP', 3058 ) -GL_AUX_BUFFERS=Constant( 'GL_AUX_BUFFERS', 3072 ) -GL_DRAW_BUFFER=Constant( 'GL_DRAW_BUFFER', 3073 ) -GL_READ_BUFFER=Constant( 'GL_READ_BUFFER', 3074 ) -GL_SCISSOR_BOX=Constant( 'GL_SCISSOR_BOX', 3088 ) -GL_SCISSOR_TEST=Constant( 'GL_SCISSOR_TEST', 3089 ) -GL_INDEX_CLEAR_VALUE=Constant( 'GL_INDEX_CLEAR_VALUE', 3104 ) -GL_INDEX_WRITEMASK=Constant( 'GL_INDEX_WRITEMASK', 3105 ) -GL_COLOR_CLEAR_VALUE=Constant( 'GL_COLOR_CLEAR_VALUE', 3106 ) -GL_COLOR_WRITEMASK=Constant( 'GL_COLOR_WRITEMASK', 3107 ) -GL_INDEX_MODE=Constant( 'GL_INDEX_MODE', 3120 ) -GL_RGBA_MODE=Constant( 'GL_RGBA_MODE', 3121 ) -GL_DOUBLEBUFFER=Constant( 'GL_DOUBLEBUFFER', 3122 ) -GL_STEREO=Constant( 'GL_STEREO', 3123 ) -GL_RENDER_MODE=Constant( 'GL_RENDER_MODE', 3136 ) -GL_PERSPECTIVE_CORRECTION_HINT=Constant( 'GL_PERSPECTIVE_CORRECTION_HINT', 3152 ) -GL_POINT_SMOOTH_HINT=Constant( 'GL_POINT_SMOOTH_HINT', 3153 ) -GL_LINE_SMOOTH_HINT=Constant( 'GL_LINE_SMOOTH_HINT', 3154 ) -GL_POLYGON_SMOOTH_HINT=Constant( 'GL_POLYGON_SMOOTH_HINT', 3155 ) -GL_FOG_HINT=Constant( 'GL_FOG_HINT', 3156 ) -GL_TEXTURE_GEN_S=Constant( 'GL_TEXTURE_GEN_S', 3168 ) -GL_TEXTURE_GEN_T=Constant( 'GL_TEXTURE_GEN_T', 3169 ) -GL_TEXTURE_GEN_R=Constant( 'GL_TEXTURE_GEN_R', 3170 ) -GL_TEXTURE_GEN_Q=Constant( 'GL_TEXTURE_GEN_Q', 3171 ) -GL_PIXEL_MAP_I_TO_I_SIZE=Constant( 'GL_PIXEL_MAP_I_TO_I_SIZE', 3248 ) -GL_PIXEL_MAP_S_TO_S_SIZE=Constant( 'GL_PIXEL_MAP_S_TO_S_SIZE', 3249 ) -GL_PIXEL_MAP_I_TO_R_SIZE=Constant( 'GL_PIXEL_MAP_I_TO_R_SIZE', 3250 ) -GL_PIXEL_MAP_I_TO_G_SIZE=Constant( 'GL_PIXEL_MAP_I_TO_G_SIZE', 3251 ) -GL_PIXEL_MAP_I_TO_B_SIZE=Constant( 'GL_PIXEL_MAP_I_TO_B_SIZE', 3252 ) -GL_PIXEL_MAP_I_TO_A_SIZE=Constant( 'GL_PIXEL_MAP_I_TO_A_SIZE', 3253 ) -GL_PIXEL_MAP_R_TO_R_SIZE=Constant( 'GL_PIXEL_MAP_R_TO_R_SIZE', 3254 ) -GL_PIXEL_MAP_G_TO_G_SIZE=Constant( 'GL_PIXEL_MAP_G_TO_G_SIZE', 3255 ) -GL_PIXEL_MAP_B_TO_B_SIZE=Constant( 'GL_PIXEL_MAP_B_TO_B_SIZE', 3256 ) -GL_PIXEL_MAP_A_TO_A_SIZE=Constant( 'GL_PIXEL_MAP_A_TO_A_SIZE', 3257 ) -GL_UNPACK_SWAP_BYTES=Constant( 'GL_UNPACK_SWAP_BYTES', 3312 ) -GL_UNPACK_LSB_FIRST=Constant( 'GL_UNPACK_LSB_FIRST', 3313 ) -GL_UNPACK_ROW_LENGTH=Constant( 'GL_UNPACK_ROW_LENGTH', 3314 ) -GL_UNPACK_SKIP_ROWS=Constant( 'GL_UNPACK_SKIP_ROWS', 3315 ) -GL_UNPACK_SKIP_PIXELS=Constant( 'GL_UNPACK_SKIP_PIXELS', 3316 ) -GL_UNPACK_ALIGNMENT=Constant( 'GL_UNPACK_ALIGNMENT', 3317 ) -GL_PACK_SWAP_BYTES=Constant( 'GL_PACK_SWAP_BYTES', 3328 ) -GL_PACK_LSB_FIRST=Constant( 'GL_PACK_LSB_FIRST', 3329 ) -GL_PACK_ROW_LENGTH=Constant( 'GL_PACK_ROW_LENGTH', 3330 ) -GL_PACK_SKIP_ROWS=Constant( 'GL_PACK_SKIP_ROWS', 3331 ) -GL_PACK_SKIP_PIXELS=Constant( 'GL_PACK_SKIP_PIXELS', 3332 ) -GL_PACK_ALIGNMENT=Constant( 'GL_PACK_ALIGNMENT', 3333 ) -GL_MAP_COLOR=Constant( 'GL_MAP_COLOR', 3344 ) -GL_MAP_STENCIL=Constant( 'GL_MAP_STENCIL', 3345 ) -GL_INDEX_SHIFT=Constant( 'GL_INDEX_SHIFT', 3346 ) -GL_INDEX_OFFSET=Constant( 'GL_INDEX_OFFSET', 3347 ) -GL_RED_SCALE=Constant( 'GL_RED_SCALE', 3348 ) -GL_RED_BIAS=Constant( 'GL_RED_BIAS', 3349 ) -GL_ZOOM_X=Constant( 'GL_ZOOM_X', 3350 ) -GL_ZOOM_Y=Constant( 'GL_ZOOM_Y', 3351 ) -GL_GREEN_SCALE=Constant( 'GL_GREEN_SCALE', 3352 ) -GL_GREEN_BIAS=Constant( 'GL_GREEN_BIAS', 3353 ) -GL_BLUE_SCALE=Constant( 'GL_BLUE_SCALE', 3354 ) -GL_BLUE_BIAS=Constant( 'GL_BLUE_BIAS', 3355 ) -GL_ALPHA_SCALE=Constant( 'GL_ALPHA_SCALE', 3356 ) -GL_ALPHA_BIAS=Constant( 'GL_ALPHA_BIAS', 3357 ) -GL_DEPTH_SCALE=Constant( 'GL_DEPTH_SCALE', 3358 ) -GL_DEPTH_BIAS=Constant( 'GL_DEPTH_BIAS', 3359 ) -GL_MAX_EVAL_ORDER=Constant( 'GL_MAX_EVAL_ORDER', 3376 ) -GL_MAX_LIGHTS=Constant( 'GL_MAX_LIGHTS', 3377 ) -GL_MAX_CLIP_PLANES=Constant( 'GL_MAX_CLIP_PLANES', 3378 ) -GL_MAX_TEXTURE_SIZE=Constant( 'GL_MAX_TEXTURE_SIZE', 3379 ) -GL_MAX_PIXEL_MAP_TABLE=Constant( 'GL_MAX_PIXEL_MAP_TABLE', 3380 ) -GL_MAX_ATTRIB_STACK_DEPTH=Constant( 'GL_MAX_ATTRIB_STACK_DEPTH', 3381 ) -GL_MAX_MODELVIEW_STACK_DEPTH=Constant( 'GL_MAX_MODELVIEW_STACK_DEPTH', 3382 ) -GL_MAX_NAME_STACK_DEPTH=Constant( 'GL_MAX_NAME_STACK_DEPTH', 3383 ) -GL_MAX_PROJECTION_STACK_DEPTH=Constant( 'GL_MAX_PROJECTION_STACK_DEPTH', 3384 ) -GL_MAX_TEXTURE_STACK_DEPTH=Constant( 'GL_MAX_TEXTURE_STACK_DEPTH', 3385 ) -GL_MAX_VIEWPORT_DIMS=Constant( 'GL_MAX_VIEWPORT_DIMS', 3386 ) -GL_MAX_CLIENT_ATTRIB_STACK_DEPTH=Constant( 'GL_MAX_CLIENT_ATTRIB_STACK_DEPTH', 3387 ) -GL_SUBPIXEL_BITS=Constant( 'GL_SUBPIXEL_BITS', 3408 ) -GL_INDEX_BITS=Constant( 'GL_INDEX_BITS', 3409 ) -GL_RED_BITS=Constant( 'GL_RED_BITS', 3410 ) -GL_GREEN_BITS=Constant( 'GL_GREEN_BITS', 3411 ) -GL_BLUE_BITS=Constant( 'GL_BLUE_BITS', 3412 ) -GL_ALPHA_BITS=Constant( 'GL_ALPHA_BITS', 3413 ) -GL_DEPTH_BITS=Constant( 'GL_DEPTH_BITS', 3414 ) -GL_STENCIL_BITS=Constant( 'GL_STENCIL_BITS', 3415 ) -GL_ACCUM_RED_BITS=Constant( 'GL_ACCUM_RED_BITS', 3416 ) -GL_ACCUM_GREEN_BITS=Constant( 'GL_ACCUM_GREEN_BITS', 3417 ) -GL_ACCUM_BLUE_BITS=Constant( 'GL_ACCUM_BLUE_BITS', 3418 ) -GL_ACCUM_ALPHA_BITS=Constant( 'GL_ACCUM_ALPHA_BITS', 3419 ) -GL_NAME_STACK_DEPTH=Constant( 'GL_NAME_STACK_DEPTH', 3440 ) -GL_AUTO_NORMAL=Constant( 'GL_AUTO_NORMAL', 3456 ) -GL_MAP1_COLOR_4=Constant( 'GL_MAP1_COLOR_4', 3472 ) -GL_MAP1_INDEX=Constant( 'GL_MAP1_INDEX', 3473 ) -GL_MAP1_NORMAL=Constant( 'GL_MAP1_NORMAL', 3474 ) -GL_MAP1_TEXTURE_COORD_1=Constant( 'GL_MAP1_TEXTURE_COORD_1', 3475 ) -GL_MAP1_TEXTURE_COORD_2=Constant( 'GL_MAP1_TEXTURE_COORD_2', 3476 ) -GL_MAP1_TEXTURE_COORD_3=Constant( 'GL_MAP1_TEXTURE_COORD_3', 3477 ) -GL_MAP1_TEXTURE_COORD_4=Constant( 'GL_MAP1_TEXTURE_COORD_4', 3478 ) -GL_MAP1_VERTEX_3=Constant( 'GL_MAP1_VERTEX_3', 3479 ) -GL_MAP1_VERTEX_4=Constant( 'GL_MAP1_VERTEX_4', 3480 ) -GL_MAP2_COLOR_4=Constant( 'GL_MAP2_COLOR_4', 3504 ) -GL_MAP2_INDEX=Constant( 'GL_MAP2_INDEX', 3505 ) -GL_MAP2_NORMAL=Constant( 'GL_MAP2_NORMAL', 3506 ) -GL_MAP2_TEXTURE_COORD_1=Constant( 'GL_MAP2_TEXTURE_COORD_1', 3507 ) -GL_MAP2_TEXTURE_COORD_2=Constant( 'GL_MAP2_TEXTURE_COORD_2', 3508 ) -GL_MAP2_TEXTURE_COORD_3=Constant( 'GL_MAP2_TEXTURE_COORD_3', 3509 ) -GL_MAP2_TEXTURE_COORD_4=Constant( 'GL_MAP2_TEXTURE_COORD_4', 3510 ) -GL_MAP2_VERTEX_3=Constant( 'GL_MAP2_VERTEX_3', 3511 ) -GL_MAP2_VERTEX_4=Constant( 'GL_MAP2_VERTEX_4', 3512 ) -GL_MAP1_GRID_DOMAIN=Constant( 'GL_MAP1_GRID_DOMAIN', 3536 ) -GL_MAP1_GRID_SEGMENTS=Constant( 'GL_MAP1_GRID_SEGMENTS', 3537 ) -GL_MAP2_GRID_DOMAIN=Constant( 'GL_MAP2_GRID_DOMAIN', 3538 ) -GL_MAP2_GRID_SEGMENTS=Constant( 'GL_MAP2_GRID_SEGMENTS', 3539 ) -GL_TEXTURE_1D=Constant( 'GL_TEXTURE_1D', 3552 ) -GL_TEXTURE_2D=Constant( 'GL_TEXTURE_2D', 3553 ) -GL_FEEDBACK_BUFFER_POINTER=Constant( 'GL_FEEDBACK_BUFFER_POINTER', 3568 ) -GL_FEEDBACK_BUFFER_SIZE=Constant( 'GL_FEEDBACK_BUFFER_SIZE', 3569 ) -GL_FEEDBACK_BUFFER_TYPE=Constant( 'GL_FEEDBACK_BUFFER_TYPE', 3570 ) -GL_SELECTION_BUFFER_POINTER=Constant( 'GL_SELECTION_BUFFER_POINTER', 3571 ) -GL_SELECTION_BUFFER_SIZE=Constant( 'GL_SELECTION_BUFFER_SIZE', 3572 ) -GL_POLYGON_OFFSET_UNITS=Constant( 'GL_POLYGON_OFFSET_UNITS', 10752 ) -GL_POLYGON_OFFSET_POINT=Constant( 'GL_POLYGON_OFFSET_POINT', 10753 ) -GL_POLYGON_OFFSET_LINE=Constant( 'GL_POLYGON_OFFSET_LINE', 10754 ) -GL_POLYGON_OFFSET_FILL=Constant( 'GL_POLYGON_OFFSET_FILL', 32823 ) -GL_POLYGON_OFFSET_FACTOR=Constant( 'GL_POLYGON_OFFSET_FACTOR', 32824 ) -GL_TEXTURE_BINDING_1D=Constant( 'GL_TEXTURE_BINDING_1D', 32872 ) -GL_TEXTURE_BINDING_2D=Constant( 'GL_TEXTURE_BINDING_2D', 32873 ) -GL_TEXTURE_BINDING_3D=Constant( 'GL_TEXTURE_BINDING_3D', 32874 ) -GL_VERTEX_ARRAY=Constant( 'GL_VERTEX_ARRAY', 32884 ) -GL_NORMAL_ARRAY=Constant( 'GL_NORMAL_ARRAY', 32885 ) -GL_COLOR_ARRAY=Constant( 'GL_COLOR_ARRAY', 32886 ) -GL_INDEX_ARRAY=Constant( 'GL_INDEX_ARRAY', 32887 ) -GL_TEXTURE_COORD_ARRAY=Constant( 'GL_TEXTURE_COORD_ARRAY', 32888 ) -GL_EDGE_FLAG_ARRAY=Constant( 'GL_EDGE_FLAG_ARRAY', 32889 ) -GL_VERTEX_ARRAY_SIZE=Constant( 'GL_VERTEX_ARRAY_SIZE', 32890 ) -GL_VERTEX_ARRAY_TYPE=Constant( 'GL_VERTEX_ARRAY_TYPE', 32891 ) -GL_VERTEX_ARRAY_STRIDE=Constant( 'GL_VERTEX_ARRAY_STRIDE', 32892 ) -GL_NORMAL_ARRAY_TYPE=Constant( 'GL_NORMAL_ARRAY_TYPE', 32894 ) -GL_NORMAL_ARRAY_STRIDE=Constant( 'GL_NORMAL_ARRAY_STRIDE', 32895 ) -GL_COLOR_ARRAY_SIZE=Constant( 'GL_COLOR_ARRAY_SIZE', 32897 ) -GL_COLOR_ARRAY_TYPE=Constant( 'GL_COLOR_ARRAY_TYPE', 32898 ) -GL_COLOR_ARRAY_STRIDE=Constant( 'GL_COLOR_ARRAY_STRIDE', 32899 ) -GL_INDEX_ARRAY_TYPE=Constant( 'GL_INDEX_ARRAY_TYPE', 32901 ) -GL_INDEX_ARRAY_STRIDE=Constant( 'GL_INDEX_ARRAY_STRIDE', 32902 ) -GL_TEXTURE_COORD_ARRAY_SIZE=Constant( 'GL_TEXTURE_COORD_ARRAY_SIZE', 32904 ) -GL_TEXTURE_COORD_ARRAY_TYPE=Constant( 'GL_TEXTURE_COORD_ARRAY_TYPE', 32905 ) -GL_TEXTURE_COORD_ARRAY_STRIDE=Constant( 'GL_TEXTURE_COORD_ARRAY_STRIDE', 32906 ) -GL_EDGE_FLAG_ARRAY_STRIDE=Constant( 'GL_EDGE_FLAG_ARRAY_STRIDE', 32908 ) -GL_TEXTURE_WIDTH=Constant( 'GL_TEXTURE_WIDTH', 4096 ) -GL_TEXTURE_HEIGHT=Constant( 'GL_TEXTURE_HEIGHT', 4097 ) -GL_TEXTURE_INTERNAL_FORMAT=Constant( 'GL_TEXTURE_INTERNAL_FORMAT', 4099 ) -GL_TEXTURE_COMPONENTS=Constant( 'GL_TEXTURE_COMPONENTS', 4099 ) -GL_TEXTURE_BORDER_COLOR=Constant( 'GL_TEXTURE_BORDER_COLOR', 4100 ) -GL_TEXTURE_BORDER=Constant( 'GL_TEXTURE_BORDER', 4101 ) -GL_TEXTURE_RED_SIZE=Constant( 'GL_TEXTURE_RED_SIZE', 32860 ) -GL_TEXTURE_GREEN_SIZE=Constant( 'GL_TEXTURE_GREEN_SIZE', 32861 ) -GL_TEXTURE_BLUE_SIZE=Constant( 'GL_TEXTURE_BLUE_SIZE', 32862 ) -GL_TEXTURE_ALPHA_SIZE=Constant( 'GL_TEXTURE_ALPHA_SIZE', 32863 ) -GL_TEXTURE_LUMINANCE_SIZE=Constant( 'GL_TEXTURE_LUMINANCE_SIZE', 32864 ) -GL_TEXTURE_INTENSITY_SIZE=Constant( 'GL_TEXTURE_INTENSITY_SIZE', 32865 ) -GL_TEXTURE_PRIORITY=Constant( 'GL_TEXTURE_PRIORITY', 32870 ) -GL_TEXTURE_RESIDENT=Constant( 'GL_TEXTURE_RESIDENT', 32871 ) -GL_DONT_CARE=Constant( 'GL_DONT_CARE', 4352 ) -GL_FASTEST=Constant( 'GL_FASTEST', 4353 ) -GL_NICEST=Constant( 'GL_NICEST', 4354 ) -GL_AMBIENT=Constant( 'GL_AMBIENT', 4608 ) -GL_DIFFUSE=Constant( 'GL_DIFFUSE', 4609 ) -GL_SPECULAR=Constant( 'GL_SPECULAR', 4610 ) -GL_POSITION=Constant( 'GL_POSITION', 4611 ) -GL_SPOT_DIRECTION=Constant( 'GL_SPOT_DIRECTION', 4612 ) -GL_SPOT_EXPONENT=Constant( 'GL_SPOT_EXPONENT', 4613 ) -GL_SPOT_CUTOFF=Constant( 'GL_SPOT_CUTOFF', 4614 ) -GL_CONSTANT_ATTENUATION=Constant( 'GL_CONSTANT_ATTENUATION', 4615 ) -GL_LINEAR_ATTENUATION=Constant( 'GL_LINEAR_ATTENUATION', 4616 ) -GL_QUADRATIC_ATTENUATION=Constant( 'GL_QUADRATIC_ATTENUATION', 4617 ) -GL_COMPILE=Constant( 'GL_COMPILE', 4864 ) -GL_COMPILE_AND_EXECUTE=Constant( 'GL_COMPILE_AND_EXECUTE', 4865 ) -GL_BYTE=Constant( 'GL_BYTE', 5120 ) -GL_UNSIGNED_BYTE=Constant( 'GL_UNSIGNED_BYTE', 5121 ) -GL_SHORT=Constant( 'GL_SHORT', 5122 ) -GL_UNSIGNED_SHORT=Constant( 'GL_UNSIGNED_SHORT', 5123 ) -GL_INT=Constant( 'GL_INT', 5124 ) -GL_UNSIGNED_INT=Constant( 'GL_UNSIGNED_INT', 5125 ) -GL_FLOAT=Constant( 'GL_FLOAT', 5126 ) -GL_2_BYTES=Constant( 'GL_2_BYTES', 5127 ) -GL_3_BYTES=Constant( 'GL_3_BYTES', 5128 ) -GL_4_BYTES=Constant( 'GL_4_BYTES', 5129 ) -GL_DOUBLE=Constant( 'GL_DOUBLE', 5130 ) -GL_DOUBLE_EXT=Constant( 'GL_DOUBLE_EXT', 5130 ) -GL_CLEAR=Constant( 'GL_CLEAR', 5376 ) -GL_AND=Constant( 'GL_AND', 5377 ) -GL_AND_REVERSE=Constant( 'GL_AND_REVERSE', 5378 ) -GL_COPY=Constant( 'GL_COPY', 5379 ) -GL_AND_INVERTED=Constant( 'GL_AND_INVERTED', 5380 ) -GL_NOOP=Constant( 'GL_NOOP', 5381 ) -GL_XOR=Constant( 'GL_XOR', 5382 ) -GL_OR=Constant( 'GL_OR', 5383 ) -GL_NOR=Constant( 'GL_NOR', 5384 ) -GL_EQUIV=Constant( 'GL_EQUIV', 5385 ) -GL_INVERT=Constant( 'GL_INVERT', 5386 ) -GL_OR_REVERSE=Constant( 'GL_OR_REVERSE', 5387 ) -GL_COPY_INVERTED=Constant( 'GL_COPY_INVERTED', 5388 ) -GL_OR_INVERTED=Constant( 'GL_OR_INVERTED', 5389 ) -GL_NAND=Constant( 'GL_NAND', 5390 ) -GL_SET=Constant( 'GL_SET', 5391 ) -GL_EMISSION=Constant( 'GL_EMISSION', 5632 ) -GL_SHININESS=Constant( 'GL_SHININESS', 5633 ) -GL_AMBIENT_AND_DIFFUSE=Constant( 'GL_AMBIENT_AND_DIFFUSE', 5634 ) -GL_COLOR_INDEXES=Constant( 'GL_COLOR_INDEXES', 5635 ) -GL_MODELVIEW=Constant( 'GL_MODELVIEW', 5888 ) -GL_PROJECTION=Constant( 'GL_PROJECTION', 5889 ) -GL_TEXTURE=Constant( 'GL_TEXTURE', 5890 ) -GL_COLOR=Constant( 'GL_COLOR', 6144 ) -GL_DEPTH=Constant( 'GL_DEPTH', 6145 ) -GL_STENCIL=Constant( 'GL_STENCIL', 6146 ) -GL_COLOR_INDEX=Constant( 'GL_COLOR_INDEX', 6400 ) -GL_STENCIL_INDEX=Constant( 'GL_STENCIL_INDEX', 6401 ) -GL_DEPTH_COMPONENT=Constant( 'GL_DEPTH_COMPONENT', 6402 ) -GL_RED=Constant( 'GL_RED', 6403 ) -GL_GREEN=Constant( 'GL_GREEN', 6404 ) -GL_BLUE=Constant( 'GL_BLUE', 6405 ) -GL_ALPHA=Constant( 'GL_ALPHA', 6406 ) -GL_RGB=Constant( 'GL_RGB', 6407 ) -GL_RGBA=Constant( 'GL_RGBA', 6408 ) -GL_LUMINANCE=Constant( 'GL_LUMINANCE', 6409 ) -GL_LUMINANCE_ALPHA=Constant( 'GL_LUMINANCE_ALPHA', 6410 ) -GL_BITMAP=Constant( 'GL_BITMAP', 6656 ) -GL_POINT=Constant( 'GL_POINT', 6912 ) -GL_LINE=Constant( 'GL_LINE', 6913 ) -GL_FILL=Constant( 'GL_FILL', 6914 ) -GL_RENDER=Constant( 'GL_RENDER', 7168 ) -GL_FEEDBACK=Constant( 'GL_FEEDBACK', 7169 ) -GL_SELECT=Constant( 'GL_SELECT', 7170 ) -GL_FLAT=Constant( 'GL_FLAT', 7424 ) -GL_SMOOTH=Constant( 'GL_SMOOTH', 7425 ) -GL_KEEP=Constant( 'GL_KEEP', 7680 ) -GL_REPLACE=Constant( 'GL_REPLACE', 7681 ) -GL_INCR=Constant( 'GL_INCR', 7682 ) -GL_DECR=Constant( 'GL_DECR', 7683 ) -GL_VENDOR=Constant( 'GL_VENDOR', 7936 ) -GL_RENDERER=Constant( 'GL_RENDERER', 7937 ) -GL_VERSION=Constant( 'GL_VERSION', 7938 ) -GL_EXTENSIONS=Constant( 'GL_EXTENSIONS', 7939 ) -GL_S=Constant( 'GL_S', 8192 ) -GL_T=Constant( 'GL_T', 8193 ) -GL_R=Constant( 'GL_R', 8194 ) -GL_Q=Constant( 'GL_Q', 8195 ) -GL_MODULATE=Constant( 'GL_MODULATE', 8448 ) -GL_DECAL=Constant( 'GL_DECAL', 8449 ) -GL_TEXTURE_ENV_MODE=Constant( 'GL_TEXTURE_ENV_MODE', 8704 ) -GL_TEXTURE_ENV_COLOR=Constant( 'GL_TEXTURE_ENV_COLOR', 8705 ) -GL_TEXTURE_ENV=Constant( 'GL_TEXTURE_ENV', 8960 ) -GL_EYE_LINEAR=Constant( 'GL_EYE_LINEAR', 9216 ) -GL_OBJECT_LINEAR=Constant( 'GL_OBJECT_LINEAR', 9217 ) -GL_SPHERE_MAP=Constant( 'GL_SPHERE_MAP', 9218 ) -GL_TEXTURE_GEN_MODE=Constant( 'GL_TEXTURE_GEN_MODE', 9472 ) -GL_OBJECT_PLANE=Constant( 'GL_OBJECT_PLANE', 9473 ) -GL_EYE_PLANE=Constant( 'GL_EYE_PLANE', 9474 ) -GL_NEAREST=Constant( 'GL_NEAREST', 9728 ) -GL_LINEAR=Constant( 'GL_LINEAR', 9729 ) -GL_NEAREST_MIPMAP_NEAREST=Constant( 'GL_NEAREST_MIPMAP_NEAREST', 9984 ) -GL_LINEAR_MIPMAP_NEAREST=Constant( 'GL_LINEAR_MIPMAP_NEAREST', 9985 ) -GL_NEAREST_MIPMAP_LINEAR=Constant( 'GL_NEAREST_MIPMAP_LINEAR', 9986 ) -GL_LINEAR_MIPMAP_LINEAR=Constant( 'GL_LINEAR_MIPMAP_LINEAR', 9987 ) -GL_TEXTURE_MAG_FILTER=Constant( 'GL_TEXTURE_MAG_FILTER', 10240 ) -GL_TEXTURE_MIN_FILTER=Constant( 'GL_TEXTURE_MIN_FILTER', 10241 ) -GL_TEXTURE_WRAP_S=Constant( 'GL_TEXTURE_WRAP_S', 10242 ) -GL_TEXTURE_WRAP_T=Constant( 'GL_TEXTURE_WRAP_T', 10243 ) -GL_PROXY_TEXTURE_1D=Constant( 'GL_PROXY_TEXTURE_1D', 32867 ) -GL_PROXY_TEXTURE_2D=Constant( 'GL_PROXY_TEXTURE_2D', 32868 ) -GL_CLAMP=Constant( 'GL_CLAMP', 10496 ) -GL_REPEAT=Constant( 'GL_REPEAT', 10497 ) -GL_R3_G3_B2=Constant( 'GL_R3_G3_B2', 10768 ) -GL_ALPHA4=Constant( 'GL_ALPHA4', 32827 ) -GL_ALPHA8=Constant( 'GL_ALPHA8', 32828 ) -GL_ALPHA12=Constant( 'GL_ALPHA12', 32829 ) -GL_ALPHA16=Constant( 'GL_ALPHA16', 32830 ) -GL_LUMINANCE4=Constant( 'GL_LUMINANCE4', 32831 ) -GL_LUMINANCE8=Constant( 'GL_LUMINANCE8', 32832 ) -GL_LUMINANCE12=Constant( 'GL_LUMINANCE12', 32833 ) -GL_LUMINANCE16=Constant( 'GL_LUMINANCE16', 32834 ) -GL_LUMINANCE4_ALPHA4=Constant( 'GL_LUMINANCE4_ALPHA4', 32835 ) -GL_LUMINANCE6_ALPHA2=Constant( 'GL_LUMINANCE6_ALPHA2', 32836 ) -GL_LUMINANCE8_ALPHA8=Constant( 'GL_LUMINANCE8_ALPHA8', 32837 ) -GL_LUMINANCE12_ALPHA4=Constant( 'GL_LUMINANCE12_ALPHA4', 32838 ) -GL_LUMINANCE12_ALPHA12=Constant( 'GL_LUMINANCE12_ALPHA12', 32839 ) -GL_LUMINANCE16_ALPHA16=Constant( 'GL_LUMINANCE16_ALPHA16', 32840 ) -GL_INTENSITY=Constant( 'GL_INTENSITY', 32841 ) -GL_INTENSITY4=Constant( 'GL_INTENSITY4', 32842 ) -GL_INTENSITY8=Constant( 'GL_INTENSITY8', 32843 ) -GL_INTENSITY12=Constant( 'GL_INTENSITY12', 32844 ) -GL_INTENSITY16=Constant( 'GL_INTENSITY16', 32845 ) -GL_RGB4=Constant( 'GL_RGB4', 32847 ) -GL_RGB5=Constant( 'GL_RGB5', 32848 ) -GL_RGB8=Constant( 'GL_RGB8', 32849 ) -GL_RGB10=Constant( 'GL_RGB10', 32850 ) -GL_RGB12=Constant( 'GL_RGB12', 32851 ) -GL_RGB16=Constant( 'GL_RGB16', 32852 ) -GL_RGBA2=Constant( 'GL_RGBA2', 32853 ) -GL_RGBA4=Constant( 'GL_RGBA4', 32854 ) -GL_RGB5_A1=Constant( 'GL_RGB5_A1', 32855 ) -GL_RGBA8=Constant( 'GL_RGBA8', 32856 ) -GL_RGB10_A2=Constant( 'GL_RGB10_A2', 32857 ) -GL_RGBA12=Constant( 'GL_RGBA12', 32858 ) -GL_RGBA16=Constant( 'GL_RGBA16', 32859 ) -GL_V2F=Constant( 'GL_V2F', 10784 ) -GL_V3F=Constant( 'GL_V3F', 10785 ) -GL_C4UB_V2F=Constant( 'GL_C4UB_V2F', 10786 ) -GL_C4UB_V3F=Constant( 'GL_C4UB_V3F', 10787 ) -GL_C3F_V3F=Constant( 'GL_C3F_V3F', 10788 ) -GL_N3F_V3F=Constant( 'GL_N3F_V3F', 10789 ) -GL_C4F_N3F_V3F=Constant( 'GL_C4F_N3F_V3F', 10790 ) -GL_T2F_V3F=Constant( 'GL_T2F_V3F', 10791 ) -GL_T4F_V4F=Constant( 'GL_T4F_V4F', 10792 ) -GL_T2F_C4UB_V3F=Constant( 'GL_T2F_C4UB_V3F', 10793 ) -GL_T2F_C3F_V3F=Constant( 'GL_T2F_C3F_V3F', 10794 ) -GL_T2F_N3F_V3F=Constant( 'GL_T2F_N3F_V3F', 10795 ) -GL_T2F_C4F_N3F_V3F=Constant( 'GL_T2F_C4F_N3F_V3F', 10796 ) -GL_T4F_C4F_N3F_V4F=Constant( 'GL_T4F_C4F_N3F_V4F', 10797 ) -GL_CLIP_PLANE0=Constant( 'GL_CLIP_PLANE0', 12288 ) -GL_CLIP_PLANE1=Constant( 'GL_CLIP_PLANE1', 12289 ) -GL_CLIP_PLANE2=Constant( 'GL_CLIP_PLANE2', 12290 ) -GL_CLIP_PLANE3=Constant( 'GL_CLIP_PLANE3', 12291 ) -GL_CLIP_PLANE4=Constant( 'GL_CLIP_PLANE4', 12292 ) -GL_CLIP_PLANE5=Constant( 'GL_CLIP_PLANE5', 12293 ) -GL_LIGHT0=Constant( 'GL_LIGHT0', 16384 ) -GL_LIGHT1=Constant( 'GL_LIGHT1', 16385 ) -GL_LIGHT2=Constant( 'GL_LIGHT2', 16386 ) -GL_LIGHT3=Constant( 'GL_LIGHT3', 16387 ) -GL_LIGHT4=Constant( 'GL_LIGHT4', 16388 ) -GL_LIGHT5=Constant( 'GL_LIGHT5', 16389 ) -GL_LIGHT6=Constant( 'GL_LIGHT6', 16390 ) -GL_LIGHT7=Constant( 'GL_LIGHT7', 16391 ) -GL_ABGR_EXT=Constant( 'GL_ABGR_EXT', 32768 ) -GL_FUNC_SUBTRACT_EXT=Constant( 'GL_FUNC_SUBTRACT_EXT', 32778 ) -GL_FUNC_REVERSE_SUBTRACT_EXT=Constant( 'GL_FUNC_REVERSE_SUBTRACT_EXT', 32779 ) -GL_UNSIGNED_BYTE_3_3_2_EXT=Constant( 'GL_UNSIGNED_BYTE_3_3_2_EXT', 32818 ) -GL_UNSIGNED_SHORT_4_4_4_4_EXT=Constant( 'GL_UNSIGNED_SHORT_4_4_4_4_EXT', 32819 ) -GL_UNSIGNED_SHORT_5_5_5_1_EXT=Constant( 'GL_UNSIGNED_SHORT_5_5_5_1_EXT', 32820 ) -GL_UNSIGNED_INT_8_8_8_8_EXT=Constant( 'GL_UNSIGNED_INT_8_8_8_8_EXT', 32821 ) -GL_UNSIGNED_INT_10_10_10_2_EXT=Constant( 'GL_UNSIGNED_INT_10_10_10_2_EXT', 32822 ) -GL_PACK_SKIP_IMAGES=Constant( 'GL_PACK_SKIP_IMAGES', 32875 ) -GL_PACK_IMAGE_HEIGHT=Constant( 'GL_PACK_IMAGE_HEIGHT', 32876 ) -GL_UNPACK_SKIP_IMAGES=Constant( 'GL_UNPACK_SKIP_IMAGES', 32877 ) -GL_UNPACK_IMAGE_HEIGHT=Constant( 'GL_UNPACK_IMAGE_HEIGHT', 32878 ) -GL_TEXTURE_3D=Constant( 'GL_TEXTURE_3D', 32879 ) -GL_PROXY_TEXTURE_3D=Constant( 'GL_PROXY_TEXTURE_3D', 32880 ) -GL_TEXTURE_DEPTH=Constant( 'GL_TEXTURE_DEPTH', 32881 ) -GL_TEXTURE_WRAP_R=Constant( 'GL_TEXTURE_WRAP_R', 32882 ) -GL_MAX_3D_TEXTURE_SIZE=Constant( 'GL_MAX_3D_TEXTURE_SIZE', 32883 ) -GL_BGR=Constant( 'GL_BGR', 32992 ) -GL_BGRA=Constant( 'GL_BGRA', 32993 ) -GL_UNSIGNED_BYTE_3_3_2=Constant( 'GL_UNSIGNED_BYTE_3_3_2', 32818 ) -GL_UNSIGNED_BYTE_2_3_3_REV=Constant( 'GL_UNSIGNED_BYTE_2_3_3_REV', 33634 ) -GL_UNSIGNED_SHORT_5_6_5=Constant( 'GL_UNSIGNED_SHORT_5_6_5', 33635 ) -GL_UNSIGNED_SHORT_5_6_5_REV=Constant( 'GL_UNSIGNED_SHORT_5_6_5_REV', 33636 ) -GL_UNSIGNED_SHORT_4_4_4_4=Constant( 'GL_UNSIGNED_SHORT_4_4_4_4', 32819 ) -GL_UNSIGNED_SHORT_4_4_4_4_REV=Constant( 'GL_UNSIGNED_SHORT_4_4_4_4_REV', 33637 ) -GL_UNSIGNED_SHORT_5_5_5_1=Constant( 'GL_UNSIGNED_SHORT_5_5_5_1', 32820 ) -GL_UNSIGNED_SHORT_1_5_5_5_REV=Constant( 'GL_UNSIGNED_SHORT_1_5_5_5_REV', 33638 ) -GL_UNSIGNED_INT_8_8_8_8=Constant( 'GL_UNSIGNED_INT_8_8_8_8', 32821 ) -GL_UNSIGNED_INT_8_8_8_8_REV=Constant( 'GL_UNSIGNED_INT_8_8_8_8_REV', 33639 ) -GL_UNSIGNED_INT_10_10_10_2=Constant( 'GL_UNSIGNED_INT_10_10_10_2', 32822 ) -GL_UNSIGNED_INT_2_10_10_10_REV=Constant( 'GL_UNSIGNED_INT_2_10_10_10_REV', 33640 ) -GL_RESCALE_NORMAL=Constant( 'GL_RESCALE_NORMAL', 32826 ) -GL_LIGHT_MODEL_COLOR_CONTROL=Constant( 'GL_LIGHT_MODEL_COLOR_CONTROL', 33272 ) -GL_SINGLE_COLOR=Constant( 'GL_SINGLE_COLOR', 33273 ) -GL_SEPARATE_SPECULAR_COLOR=Constant( 'GL_SEPARATE_SPECULAR_COLOR', 33274 ) -GL_CLAMP_TO_EDGE=Constant( 'GL_CLAMP_TO_EDGE', 33071 ) -GL_TEXTURE_MIN_LOD=Constant( 'GL_TEXTURE_MIN_LOD', 33082 ) -GL_TEXTURE_MAX_LOD=Constant( 'GL_TEXTURE_MAX_LOD', 33083 ) -GL_TEXTURE_BASE_LEVEL=Constant( 'GL_TEXTURE_BASE_LEVEL', 33084 ) -GL_TEXTURE_MAX_LEVEL=Constant( 'GL_TEXTURE_MAX_LEVEL', 33085 ) -GL_MAX_ELEMENTS_VERTICES=Constant( 'GL_MAX_ELEMENTS_VERTICES', 33000 ) -GL_MAX_ELEMENTS_INDICES=Constant( 'GL_MAX_ELEMENTS_INDICES', 33001 ) -GL_ALIASED_POINT_SIZE_RANGE=Constant( 'GL_ALIASED_POINT_SIZE_RANGE', 33901 ) -GL_ALIASED_LINE_WIDTH_RANGE=Constant( 'GL_ALIASED_LINE_WIDTH_RANGE', 33902 ) -GL_ACTIVE_TEXTURE=Constant( 'GL_ACTIVE_TEXTURE', 34016 ) -GL_CLIENT_ACTIVE_TEXTURE=Constant( 'GL_CLIENT_ACTIVE_TEXTURE', 34017 ) -GL_MAX_TEXTURE_UNITS=Constant( 'GL_MAX_TEXTURE_UNITS', 34018 ) -GL_TEXTURE0=Constant( 'GL_TEXTURE0', 33984 ) -GL_TEXTURE1=Constant( 'GL_TEXTURE1', 33985 ) -GL_TEXTURE2=Constant( 'GL_TEXTURE2', 33986 ) -GL_TEXTURE3=Constant( 'GL_TEXTURE3', 33987 ) -GL_TEXTURE4=Constant( 'GL_TEXTURE4', 33988 ) -GL_TEXTURE5=Constant( 'GL_TEXTURE5', 33989 ) -GL_TEXTURE6=Constant( 'GL_TEXTURE6', 33990 ) -GL_TEXTURE7=Constant( 'GL_TEXTURE7', 33991 ) -GL_TEXTURE8=Constant( 'GL_TEXTURE8', 33992 ) -GL_TEXTURE9=Constant( 'GL_TEXTURE9', 33993 ) -GL_TEXTURE10=Constant( 'GL_TEXTURE10', 33994 ) -GL_TEXTURE11=Constant( 'GL_TEXTURE11', 33995 ) -GL_TEXTURE12=Constant( 'GL_TEXTURE12', 33996 ) -GL_TEXTURE13=Constant( 'GL_TEXTURE13', 33997 ) -GL_TEXTURE14=Constant( 'GL_TEXTURE14', 33998 ) -GL_TEXTURE15=Constant( 'GL_TEXTURE15', 33999 ) -GL_TEXTURE16=Constant( 'GL_TEXTURE16', 34000 ) -GL_TEXTURE17=Constant( 'GL_TEXTURE17', 34001 ) -GL_TEXTURE18=Constant( 'GL_TEXTURE18', 34002 ) -GL_TEXTURE19=Constant( 'GL_TEXTURE19', 34003 ) -GL_TEXTURE20=Constant( 'GL_TEXTURE20', 34004 ) -GL_TEXTURE21=Constant( 'GL_TEXTURE21', 34005 ) -GL_TEXTURE22=Constant( 'GL_TEXTURE22', 34006 ) -GL_TEXTURE23=Constant( 'GL_TEXTURE23', 34007 ) -GL_TEXTURE24=Constant( 'GL_TEXTURE24', 34008 ) -GL_TEXTURE25=Constant( 'GL_TEXTURE25', 34009 ) -GL_TEXTURE26=Constant( 'GL_TEXTURE26', 34010 ) -GL_TEXTURE27=Constant( 'GL_TEXTURE27', 34011 ) -GL_TEXTURE28=Constant( 'GL_TEXTURE28', 34012 ) -GL_TEXTURE29=Constant( 'GL_TEXTURE29', 34013 ) -GL_TEXTURE30=Constant( 'GL_TEXTURE30', 34014 ) -GL_TEXTURE31=Constant( 'GL_TEXTURE31', 34015 ) -GL_NORMAL_MAP=Constant( 'GL_NORMAL_MAP', 34065 ) -GL_REFLECTION_MAP=Constant( 'GL_REFLECTION_MAP', 34066 ) -GL_TEXTURE_CUBE_MAP=Constant( 'GL_TEXTURE_CUBE_MAP', 34067 ) -GL_TEXTURE_BINDING_CUBE_MAP=Constant( 'GL_TEXTURE_BINDING_CUBE_MAP', 34068 ) -GL_TEXTURE_CUBE_MAP_POSITIVE_X=Constant( 'GL_TEXTURE_CUBE_MAP_POSITIVE_X', 34069 ) -GL_TEXTURE_CUBE_MAP_NEGATIVE_X=Constant( 'GL_TEXTURE_CUBE_MAP_NEGATIVE_X', 34070 ) -GL_TEXTURE_CUBE_MAP_POSITIVE_Y=Constant( 'GL_TEXTURE_CUBE_MAP_POSITIVE_Y', 34071 ) -GL_TEXTURE_CUBE_MAP_NEGATIVE_Y=Constant( 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', 34072 ) -GL_TEXTURE_CUBE_MAP_POSITIVE_Z=Constant( 'GL_TEXTURE_CUBE_MAP_POSITIVE_Z', 34073 ) -GL_TEXTURE_CUBE_MAP_NEGATIVE_Z=Constant( 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', 34074 ) -GL_PROXY_TEXTURE_CUBE_MAP=Constant( 'GL_PROXY_TEXTURE_CUBE_MAP', 34075 ) -GL_MAX_CUBE_MAP_TEXTURE_SIZE=Constant( 'GL_MAX_CUBE_MAP_TEXTURE_SIZE', 34076 ) -GL_COMBINE=Constant( 'GL_COMBINE', 34160 ) -GL_COMBINE_RGB=Constant( 'GL_COMBINE_RGB', 34161 ) -GL_COMBINE_ALPHA=Constant( 'GL_COMBINE_ALPHA', 34162 ) -GL_RGB_SCALE=Constant( 'GL_RGB_SCALE', 34163 ) -GL_ADD_SIGNED=Constant( 'GL_ADD_SIGNED', 34164 ) -GL_INTERPOLATE=Constant( 'GL_INTERPOLATE', 34165 ) -GL_CONSTANT=Constant( 'GL_CONSTANT', 34166 ) -GL_PRIMARY_COLOR=Constant( 'GL_PRIMARY_COLOR', 34167 ) -GL_PREVIOUS=Constant( 'GL_PREVIOUS', 34168 ) -GL_SOURCE0_RGB=Constant( 'GL_SOURCE0_RGB', 34176 ) -GL_SOURCE1_RGB=Constant( 'GL_SOURCE1_RGB', 34177 ) -GL_SOURCE2_RGB=Constant( 'GL_SOURCE2_RGB', 34178 ) -GL_SOURCE0_ALPHA=Constant( 'GL_SOURCE0_ALPHA', 34184 ) -GL_SOURCE1_ALPHA=Constant( 'GL_SOURCE1_ALPHA', 34185 ) -GL_SOURCE2_ALPHA=Constant( 'GL_SOURCE2_ALPHA', 34186 ) -GL_OPERAND0_RGB=Constant( 'GL_OPERAND0_RGB', 34192 ) -GL_OPERAND1_RGB=Constant( 'GL_OPERAND1_RGB', 34193 ) -GL_OPERAND2_RGB=Constant( 'GL_OPERAND2_RGB', 34194 ) -GL_OPERAND0_ALPHA=Constant( 'GL_OPERAND0_ALPHA', 34200 ) -GL_OPERAND1_ALPHA=Constant( 'GL_OPERAND1_ALPHA', 34201 ) -GL_OPERAND2_ALPHA=Constant( 'GL_OPERAND2_ALPHA', 34202 ) -GL_SUBTRACT=Constant( 'GL_SUBTRACT', 34023 ) -GL_TRANSPOSE_MODELVIEW_MATRIX=Constant( 'GL_TRANSPOSE_MODELVIEW_MATRIX', 34019 ) -GL_TRANSPOSE_PROJECTION_MATRIX=Constant( 'GL_TRANSPOSE_PROJECTION_MATRIX', 34020 ) -GL_TRANSPOSE_TEXTURE_MATRIX=Constant( 'GL_TRANSPOSE_TEXTURE_MATRIX', 34021 ) -GL_TRANSPOSE_COLOR_MATRIX=Constant( 'GL_TRANSPOSE_COLOR_MATRIX', 34022 ) -GL_COMPRESSED_ALPHA=Constant( 'GL_COMPRESSED_ALPHA', 34025 ) -GL_COMPRESSED_LUMINANCE=Constant( 'GL_COMPRESSED_LUMINANCE', 34026 ) -GL_COMPRESSED_LUMINANCE_ALPHA=Constant( 'GL_COMPRESSED_LUMINANCE_ALPHA', 34027 ) -GL_COMPRESSED_INTENSITY=Constant( 'GL_COMPRESSED_INTENSITY', 34028 ) -GL_COMPRESSED_RGB=Constant( 'GL_COMPRESSED_RGB', 34029 ) -GL_COMPRESSED_RGBA=Constant( 'GL_COMPRESSED_RGBA', 34030 ) -GL_TEXTURE_COMPRESSION_HINT=Constant( 'GL_TEXTURE_COMPRESSION_HINT', 34031 ) -GL_TEXTURE_COMPRESSED_IMAGE_SIZE=Constant( 'GL_TEXTURE_COMPRESSED_IMAGE_SIZE', 34464 ) -GL_TEXTURE_COMPRESSED=Constant( 'GL_TEXTURE_COMPRESSED', 34465 ) -GL_NUM_COMPRESSED_TEXTURE_FORMATS=Constant( 'GL_NUM_COMPRESSED_TEXTURE_FORMATS', 34466 ) -GL_COMPRESSED_TEXTURE_FORMATS=Constant( 'GL_COMPRESSED_TEXTURE_FORMATS', 34467 ) -GL_DOT3_RGB=Constant( 'GL_DOT3_RGB', 34478 ) -GL_DOT3_RGBA=Constant( 'GL_DOT3_RGBA', 34479 ) -GL_CLAMP_TO_BORDER=Constant( 'GL_CLAMP_TO_BORDER', 33069 ) -GL_MULTISAMPLE=Constant( 'GL_MULTISAMPLE', 32925 ) -GL_SAMPLE_ALPHA_TO_COVERAGE=Constant( 'GL_SAMPLE_ALPHA_TO_COVERAGE', 32926 ) -GL_SAMPLE_ALPHA_TO_ONE=Constant( 'GL_SAMPLE_ALPHA_TO_ONE', 32927 ) -GL_SAMPLE_COVERAGE=Constant( 'GL_SAMPLE_COVERAGE', 32928 ) -GL_SAMPLE_BUFFERS=Constant( 'GL_SAMPLE_BUFFERS', 32936 ) -GL_SAMPLES=Constant( 'GL_SAMPLES', 32937 ) -GL_SAMPLE_COVERAGE_VALUE=Constant( 'GL_SAMPLE_COVERAGE_VALUE', 32938 ) -GL_SAMPLE_COVERAGE_INVERT=Constant( 'GL_SAMPLE_COVERAGE_INVERT', 32939 ) -GL_MULTISAMPLE_BIT=Constant( 'GL_MULTISAMPLE_BIT', 536870912 ) -GL_VERTEX_ARRAY_EXT=Constant( 'GL_VERTEX_ARRAY_EXT', 32884 ) -GL_NORMAL_ARRAY_EXT=Constant( 'GL_NORMAL_ARRAY_EXT', 32885 ) -GL_COLOR_ARRAY_EXT=Constant( 'GL_COLOR_ARRAY_EXT', 32886 ) -GL_INDEX_ARRAY_EXT=Constant( 'GL_INDEX_ARRAY_EXT', 32887 ) -GL_TEXTURE_COORD_ARRAY_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_EXT', 32888 ) -GL_EDGE_FLAG_ARRAY_EXT=Constant( 'GL_EDGE_FLAG_ARRAY_EXT', 32889 ) -GL_VERTEX_ARRAY_SIZE_EXT=Constant( 'GL_VERTEX_ARRAY_SIZE_EXT', 32890 ) -GL_VERTEX_ARRAY_TYPE_EXT=Constant( 'GL_VERTEX_ARRAY_TYPE_EXT', 32891 ) -GL_VERTEX_ARRAY_STRIDE_EXT=Constant( 'GL_VERTEX_ARRAY_STRIDE_EXT', 32892 ) -GL_VERTEX_ARRAY_COUNT_EXT=Constant( 'GL_VERTEX_ARRAY_COUNT_EXT', 32893 ) -GL_NORMAL_ARRAY_TYPE_EXT=Constant( 'GL_NORMAL_ARRAY_TYPE_EXT', 32894 ) -GL_NORMAL_ARRAY_STRIDE_EXT=Constant( 'GL_NORMAL_ARRAY_STRIDE_EXT', 32895 ) -GL_NORMAL_ARRAY_COUNT_EXT=Constant( 'GL_NORMAL_ARRAY_COUNT_EXT', 32896 ) -GL_COLOR_ARRAY_SIZE_EXT=Constant( 'GL_COLOR_ARRAY_SIZE_EXT', 32897 ) -GL_COLOR_ARRAY_TYPE_EXT=Constant( 'GL_COLOR_ARRAY_TYPE_EXT', 32898 ) -GL_COLOR_ARRAY_STRIDE_EXT=Constant( 'GL_COLOR_ARRAY_STRIDE_EXT', 32899 ) -GL_COLOR_ARRAY_COUNT_EXT=Constant( 'GL_COLOR_ARRAY_COUNT_EXT', 32900 ) -GL_INDEX_ARRAY_TYPE_EXT=Constant( 'GL_INDEX_ARRAY_TYPE_EXT', 32901 ) -GL_INDEX_ARRAY_STRIDE_EXT=Constant( 'GL_INDEX_ARRAY_STRIDE_EXT', 32902 ) -GL_INDEX_ARRAY_COUNT_EXT=Constant( 'GL_INDEX_ARRAY_COUNT_EXT', 32903 ) -GL_TEXTURE_COORD_ARRAY_SIZE_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_SIZE_EXT', 32904 ) -GL_TEXTURE_COORD_ARRAY_TYPE_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_TYPE_EXT', 32905 ) -GL_TEXTURE_COORD_ARRAY_STRIDE_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_STRIDE_EXT', 32906 ) -GL_TEXTURE_COORD_ARRAY_COUNT_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_COUNT_EXT', 32907 ) -GL_EDGE_FLAG_ARRAY_STRIDE_EXT=Constant( 'GL_EDGE_FLAG_ARRAY_STRIDE_EXT', 32908 ) -GL_EDGE_FLAG_ARRAY_COUNT_EXT=Constant( 'GL_EDGE_FLAG_ARRAY_COUNT_EXT', 32909 ) -GL_VERTEX_ARRAY_POINTER_EXT=Constant( 'GL_VERTEX_ARRAY_POINTER_EXT', 32910 ) -GL_NORMAL_ARRAY_POINTER_EXT=Constant( 'GL_NORMAL_ARRAY_POINTER_EXT', 32911 ) -GL_COLOR_ARRAY_POINTER_EXT=Constant( 'GL_COLOR_ARRAY_POINTER_EXT', 32912 ) -GL_INDEX_ARRAY_POINTER_EXT=Constant( 'GL_INDEX_ARRAY_POINTER_EXT', 32913 ) -GL_TEXTURE_COORD_ARRAY_POINTER_EXT=Constant( 'GL_TEXTURE_COORD_ARRAY_POINTER_EXT', 32914 ) -GL_EDGE_FLAG_ARRAY_POINTER_EXT=Constant( 'GL_EDGE_FLAG_ARRAY_POINTER_EXT', 32915 ) -GL_TEXTURE_MIN_LOD_SGIS=Constant( 'GL_TEXTURE_MIN_LOD_SGIS', 33082 ) -GL_TEXTURE_MAX_LOD_SGIS=Constant( 'GL_TEXTURE_MAX_LOD_SGIS', 33083 ) -GL_TEXTURE_BASE_LEVEL_SGIS=Constant( 'GL_TEXTURE_BASE_LEVEL_SGIS', 33084 ) -GL_TEXTURE_MAX_LEVEL_SGIS=Constant( 'GL_TEXTURE_MAX_LEVEL_SGIS', 33085 ) -GL_SHARED_TEXTURE_PALETTE_EXT=Constant( 'GL_SHARED_TEXTURE_PALETTE_EXT', 33275 ) -GL_RESCALE_NORMAL_EXT=Constant( 'GL_RESCALE_NORMAL_EXT', 32826 ) -GL_TEXTURE_COMPARE_SGIX=Constant( 'GL_TEXTURE_COMPARE_SGIX', 33178 ) -GL_TEXTURE_COMPARE_OPERATOR_SGIX=Constant( 'GL_TEXTURE_COMPARE_OPERATOR_SGIX', 33179 ) -GL_TEXTURE_LEQUAL_R_SGIX=Constant( 'GL_TEXTURE_LEQUAL_R_SGIX', 33180 ) -GL_TEXTURE_GEQUAL_R_SGIX=Constant( 'GL_TEXTURE_GEQUAL_R_SGIX', 33181 ) -GL_DEPTH_COMPONENT16_SGIX=Constant( 'GL_DEPTH_COMPONENT16_SGIX', 33189 ) -GL_DEPTH_COMPONENT24_SGIX=Constant( 'GL_DEPTH_COMPONENT24_SGIX', 33190 ) -GL_DEPTH_COMPONENT32_SGIX=Constant( 'GL_DEPTH_COMPONENT32_SGIX', 33191 ) -GL_GENERATE_MIPMAP_SGIS=Constant( 'GL_GENERATE_MIPMAP_SGIS', 33169 ) -GL_GENERATE_MIPMAP_HINT_SGIS=Constant( 'GL_GENERATE_MIPMAP_HINT_SGIS', 33170 ) -GL_POINT_SIZE_MIN=Constant( 'GL_POINT_SIZE_MIN', 33062 ) -GL_POINT_SIZE_MAX=Constant( 'GL_POINT_SIZE_MAX', 33063 ) -GL_POINT_FADE_THRESHOLD_SIZE=Constant( 'GL_POINT_FADE_THRESHOLD_SIZE', 33064 ) -GL_POINT_DISTANCE_ATTENUATION=Constant( 'GL_POINT_DISTANCE_ATTENUATION', 33065 ) -GL_FOG_COORDINATE_SOURCE=Constant( 'GL_FOG_COORDINATE_SOURCE', 33872 ) -GL_FOG_COORDINATE=Constant( 'GL_FOG_COORDINATE', 33873 ) -GL_FRAGMENT_DEPTH=Constant( 'GL_FRAGMENT_DEPTH', 33874 ) -GL_CURRENT_FOG_COORDINATE=Constant( 'GL_CURRENT_FOG_COORDINATE', 33875 ) -GL_FOG_COORDINATE_ARRAY_TYPE=Constant( 'GL_FOG_COORDINATE_ARRAY_TYPE', 33876 ) -GL_FOG_COORDINATE_ARRAY_STRIDE=Constant( 'GL_FOG_COORDINATE_ARRAY_STRIDE', 33877 ) -GL_FOG_COORDINATE_ARRAY_POINTER=Constant( 'GL_FOG_COORDINATE_ARRAY_POINTER', 33878 ) -GL_FOG_COORDINATE_ARRAY=Constant( 'GL_FOG_COORDINATE_ARRAY', 33879 ) -GL_COLOR_SUM=Constant( 'GL_COLOR_SUM', 33880 ) -GL_CURRENT_SECONDARY_COLOR=Constant( 'GL_CURRENT_SECONDARY_COLOR', 33881 ) -GL_SECONDARY_COLOR_ARRAY_SIZE=Constant( 'GL_SECONDARY_COLOR_ARRAY_SIZE', 33882 ) -GL_SECONDARY_COLOR_ARRAY_TYPE=Constant( 'GL_SECONDARY_COLOR_ARRAY_TYPE', 33883 ) -GL_SECONDARY_COLOR_ARRAY_STRIDE=Constant( 'GL_SECONDARY_COLOR_ARRAY_STRIDE', 33884 ) -GL_SECONDARY_COLOR_ARRAY_POINTER=Constant( 'GL_SECONDARY_COLOR_ARRAY_POINTER', 33885 ) -GL_SECONDARY_COLOR_ARRAY=Constant( 'GL_SECONDARY_COLOR_ARRAY', 33886 ) -GL_INCR_WRAP=Constant( 'GL_INCR_WRAP', 34055 ) -GL_DECR_WRAP=Constant( 'GL_DECR_WRAP', 34056 ) -GL_MAX_TEXTURE_LOD_BIAS=Constant( 'GL_MAX_TEXTURE_LOD_BIAS', 34045 ) -GL_TEXTURE_FILTER_CONTROL=Constant( 'GL_TEXTURE_FILTER_CONTROL', 34048 ) -GL_TEXTURE_LOD_BIAS=Constant( 'GL_TEXTURE_LOD_BIAS', 34049 ) -GL_GENERATE_MIPMAP=Constant( 'GL_GENERATE_MIPMAP', 33169 ) -GL_GENERATE_MIPMAP_HINT=Constant( 'GL_GENERATE_MIPMAP_HINT', 33170 ) -GL_BLEND_DST_RGB=Constant( 'GL_BLEND_DST_RGB', 32968 ) -GL_BLEND_SRC_RGB=Constant( 'GL_BLEND_SRC_RGB', 32969 ) -GL_BLEND_DST_ALPHA=Constant( 'GL_BLEND_DST_ALPHA', 32970 ) -GL_BLEND_SRC_ALPHA=Constant( 'GL_BLEND_SRC_ALPHA', 32971 ) -GL_MIRRORED_REPEAT=Constant( 'GL_MIRRORED_REPEAT', 33648 ) -GL_DEPTH_COMPONENT16=Constant( 'GL_DEPTH_COMPONENT16', 33189 ) -GL_DEPTH_COMPONENT24=Constant( 'GL_DEPTH_COMPONENT24', 33190 ) -GL_DEPTH_COMPONENT32=Constant( 'GL_DEPTH_COMPONENT32', 33191 ) -GL_TEXTURE_DEPTH_SIZE=Constant( 'GL_TEXTURE_DEPTH_SIZE', 34890 ) -GL_DEPTH_TEXTURE_MODE=Constant( 'GL_DEPTH_TEXTURE_MODE', 34891 ) -GL_TEXTURE_COMPARE_MODE=Constant( 'GL_TEXTURE_COMPARE_MODE', 34892 ) -GL_TEXTURE_COMPARE_FUNC=Constant( 'GL_TEXTURE_COMPARE_FUNC', 34893 ) -GL_COMPARE_R_TO_TEXTURE=Constant( 'GL_COMPARE_R_TO_TEXTURE', 34894 ) -glAccum=platform.createBaseFunction( - 'glAccum',platform.GL,None, - [GLenum,GLfloat], - ['op', 'value'], -) -glAlphaFunc=platform.createBaseFunction( - 'glAlphaFunc',platform.GL,None, - [GLenum,GLclampf], - ['func', 'ref'], -) -glAreTexturesResident=platform.createBaseFunction( - 'glAreTexturesResident',platform.GL,GLboolean, - [GLsizei,GLuintArray,GLbooleanArray], - ['n', 'textures', 'residences'], -) -glArrayElement=platform.createBaseFunction( - 'glArrayElement',platform.GL,None, - [GLint], - ['i'], -) -glBegin=platform.createBaseFunction( - 'glBegin',platform.GL,None, - [GLenum], - ['mode'], -) -glBindTexture=platform.createBaseFunction( - 'glBindTexture',platform.GL,None, - [GLenum,GLuint], - ['target', 'texture'], -) -glBitmap=platform.createBaseFunction( - 'glBitmap',platform.GL,None, - [GLsizei,GLsizei,GLfloat,GLfloat,GLfloat,GLfloat,GLubyteArray], - ['width', 'height', 'xorig', 'yorig', 'xmove', 'ymove', 'bitmap'], -) -glBlendFunc=platform.createBaseFunction( - 'glBlendFunc',platform.GL,None, - [GLenum,GLenum], - ['sfactor', 'dfactor'], -) -glCallList=platform.createBaseFunction( - 'glCallList',platform.GL,None, - [GLuint], - ['list'], -) -glCallLists=platform.createBaseFunction( - 'glCallLists',platform.GL,None, - [GLsizei,GLenum,POINTER(GLvoid)], - ['n', 'type', 'lists'], -) -glClear=platform.createBaseFunction( - 'glClear',platform.GL,None, - [GLbitfield], - ['mask'], -) -glClearAccum=platform.createBaseFunction( - 'glClearAccum',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['red', 'green', 'blue', 'alpha'], -) -glClearColor=platform.createBaseFunction( - 'glClearColor',platform.GL,None, - [GLclampf,GLclampf,GLclampf,GLclampf], - ['red', 'green', 'blue', 'alpha'], -) -glClearDepth=platform.createBaseFunction( - 'glClearDepth',platform.GL,None, - [GLclampd], - ['depth'], -) -glClearIndex=platform.createBaseFunction( - 'glClearIndex',platform.GL,None, - [GLfloat], - ['c'], -) -glClearStencil=platform.createBaseFunction( - 'glClearStencil',platform.GL,None, - [GLint], - ['s'], -) -glClipPlane=platform.createBaseFunction( - 'glClipPlane',platform.GL,None, - [GLenum,GLdoubleArray], - ['plane', 'equation'], -) -glColor3b=platform.createBaseFunction( - 'glColor3b',platform.GL,None, - [GLbyte,GLbyte,GLbyte], - ['red', 'green', 'blue'], -) -glColor3bv=platform.createBaseFunction( - 'glColor3bv',platform.GL,None, - [GLbyteArray], - ['v'], -) -glColor3d=platform.createBaseFunction( - 'glColor3d',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['red', 'green', 'blue'], -) -glColor3dv=platform.createBaseFunction( - 'glColor3dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glColor3f=platform.createBaseFunction( - 'glColor3f',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['red', 'green', 'blue'], -) -glColor3fv=platform.createBaseFunction( - 'glColor3fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glColor3i=platform.createBaseFunction( - 'glColor3i',platform.GL,None, - [GLint,GLint,GLint], - ['red', 'green', 'blue'], -) -glColor3iv=platform.createBaseFunction( - 'glColor3iv',platform.GL,None, - [GLintArray], - ['v'], -) -glColor3s=platform.createBaseFunction( - 'glColor3s',platform.GL,None, - [GLshort,GLshort,GLshort], - ['red', 'green', 'blue'], -) -glColor3sv=platform.createBaseFunction( - 'glColor3sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glColor3ub=platform.createBaseFunction( - 'glColor3ub',platform.GL,None, - [GLubyte,GLubyte,GLubyte], - ['red', 'green', 'blue'], -) -glColor3ubv=platform.createBaseFunction( - 'glColor3ubv',platform.GL,None, - [GLubyteArray], - ['v'], -) -glColor3ui=platform.createBaseFunction( - 'glColor3ui',platform.GL,None, - [GLuint,GLuint,GLuint], - ['red', 'green', 'blue'], -) -glColor3uiv=platform.createBaseFunction( - 'glColor3uiv',platform.GL,None, - [GLuintArray], - ['v'], -) -glColor3us=platform.createBaseFunction( - 'glColor3us',platform.GL,None, - [GLushort,GLushort,GLushort], - ['red', 'green', 'blue'], -) -glColor3usv=platform.createBaseFunction( - 'glColor3usv',platform.GL,None, - [GLushortArray], - ['v'], -) -glColor4b=platform.createBaseFunction( - 'glColor4b',platform.GL,None, - [GLbyte,GLbyte,GLbyte,GLbyte], - ['red', 'green', 'blue', 'alpha'], -) -glColor4bv=platform.createBaseFunction( - 'glColor4bv',platform.GL,None, - [GLbyteArray], - ['v'], -) -glColor4d=platform.createBaseFunction( - 'glColor4d',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['red', 'green', 'blue', 'alpha'], -) -glColor4dv=platform.createBaseFunction( - 'glColor4dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glColor4f=platform.createBaseFunction( - 'glColor4f',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['red', 'green', 'blue', 'alpha'], -) -glColor4fv=platform.createBaseFunction( - 'glColor4fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glColor4i=platform.createBaseFunction( - 'glColor4i',platform.GL,None, - [GLint,GLint,GLint,GLint], - ['red', 'green', 'blue', 'alpha'], -) -glColor4iv=platform.createBaseFunction( - 'glColor4iv',platform.GL,None, - [GLintArray], - ['v'], -) -glColor4s=platform.createBaseFunction( - 'glColor4s',platform.GL,None, - [GLshort,GLshort,GLshort,GLshort], - ['red', 'green', 'blue', 'alpha'], -) -glColor4sv=platform.createBaseFunction( - 'glColor4sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glColor4ub=platform.createBaseFunction( - 'glColor4ub',platform.GL,None, - [GLubyte,GLubyte,GLubyte,GLubyte], - ['red', 'green', 'blue', 'alpha'], -) -glColor4ubv=platform.createBaseFunction( - 'glColor4ubv',platform.GL,None, - [GLubyteArray], - ['v'], -) -glColor4ui=platform.createBaseFunction( - 'glColor4ui',platform.GL,None, - [GLuint,GLuint,GLuint,GLuint], - ['red', 'green', 'blue', 'alpha'], -) -glColor4uiv=platform.createBaseFunction( - 'glColor4uiv',platform.GL,None, - [GLuintArray], - ['v'], -) -glColor4us=platform.createBaseFunction( - 'glColor4us',platform.GL,None, - [GLushort,GLushort,GLushort,GLushort], - ['red', 'green', 'blue', 'alpha'], -) -glColor4usv=platform.createBaseFunction( - 'glColor4usv',platform.GL,None, - [GLushortArray], - ['v'], -) -glColorMask=platform.createBaseFunction( - 'glColorMask',platform.GL,None, - [GLboolean,GLboolean,GLboolean,GLboolean], - ['red', 'green', 'blue', 'alpha'], -) -glColorMaterial=platform.createBaseFunction( - 'glColorMaterial',platform.GL,None, - [GLenum,GLenum], - ['face', 'mode'], -) -glColorPointer=platform.createBaseFunction( - 'glColorPointer',platform.GL,None, - [GLint,GLenum,GLsizei,POINTER(GLvoid)], - ['size', 'type', 'stride', 'pointer'], -) -glCopyPixels=platform.createBaseFunction( - 'glCopyPixels',platform.GL,None, - [GLint,GLint,GLsizei,GLsizei,GLenum], - ['x', 'y', 'width', 'height', 'type'], -) -glCopyTexImage1D=platform.createBaseFunction( - 'glCopyTexImage1D',platform.GL,None, - [GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLint], - ['target', 'level', 'internalFormat', 'x', 'y', 'width', 'border'], -) -glCopyTexImage2D=platform.createBaseFunction( - 'glCopyTexImage2D',platform.GL,None, - [GLenum,GLint,GLenum,GLint,GLint,GLsizei,GLsizei,GLint], - ['target', 'level', 'internalFormat', 'x', 'y', 'width', 'height', 'border'], -) -glCopyTexSubImage1D=platform.createBaseFunction( - 'glCopyTexSubImage1D',platform.GL,None, - [GLenum,GLint,GLint,GLint,GLint,GLsizei], - ['target', 'level', 'xoffset', 'x', 'y', 'width'], -) -glCopyTexSubImage2D=platform.createBaseFunction( - 'glCopyTexSubImage2D',platform.GL,None, - [GLenum,GLint,GLint,GLint,GLint,GLint,GLsizei,GLsizei], - ['target', 'level', 'xoffset', 'yoffset', 'x', 'y', 'width', 'height'], -) -glCullFace=platform.createBaseFunction( - 'glCullFace',platform.GL,None, - [GLenum], - ['mode'], -) -glDeleteLists=platform.createBaseFunction( - 'glDeleteLists',platform.GL,None, - [GLuint,GLsizei], - ['list', 'range'], -) -glDeleteTextures=platform.createBaseFunction( - 'glDeleteTextures',platform.GL,None, - [GLsizei,GLuintArray], - ['n', 'textures'], -) -glDepthFunc=platform.createBaseFunction( - 'glDepthFunc',platform.GL,None, - [GLenum], - ['func'], -) -glDepthMask=platform.createBaseFunction( - 'glDepthMask',platform.GL,None, - [GLboolean], - ['flag'], -) -glDepthRange=platform.createBaseFunction( - 'glDepthRange',platform.GL,None, - [GLclampd,GLclampd], - ['zNear', 'zFar'], -) -glDisable=platform.createBaseFunction( - 'glDisable',platform.GL,None, - [GLenum], - ['cap'], -) -glDisableClientState=platform.createBaseFunction( - 'glDisableClientState',platform.GL,None, - [GLenum], - ['array'], -) -glDrawArrays=platform.createBaseFunction( - 'glDrawArrays',platform.GL,None, - [GLenum,GLint,GLsizei], - ['mode', 'first', 'count'], -) -glDrawBuffer=platform.createBaseFunction( - 'glDrawBuffer',platform.GL,None, - [GLenum], - ['mode'], -) -glDrawElements=platform.createBaseFunction( - 'glDrawElements',platform.GL,None, - [GLenum,GLsizei,GLenum,POINTER(GLvoid)], - ['mode', 'count', 'type', 'indices'], -) -glDrawPixels=platform.createBaseFunction( - 'glDrawPixels',platform.GL,None, - [GLsizei,GLsizei,GLenum,GLenum,POINTER(GLvoid)], - ['width', 'height', 'format', 'type', 'pixels'], -) -glEdgeFlag=platform.createBaseFunction( - 'glEdgeFlag',platform.GL,None, - [GLboolean], - ['flag'], -) -glEdgeFlagPointer=platform.createBaseFunction( - 'glEdgeFlagPointer',platform.GL,None, - [GLsizei,POINTER(GLvoid)], - ['stride', 'pointer'], -) -glEdgeFlagv=platform.createBaseFunction( - 'glEdgeFlagv',platform.GL,None, - [GLbooleanArray], - ['flag'], -) -glEnable=platform.createBaseFunction( - 'glEnable',platform.GL,None, - [GLenum], - ['cap'], -) -glEnableClientState=platform.createBaseFunction( - 'glEnableClientState',platform.GL,None, - [GLenum], - ['array'], -) -glEnd=platform.createBaseFunction( - 'glEnd',platform.GL,None, - [], - [], -) -glEndList=platform.createBaseFunction( - 'glEndList',platform.GL,None, - [], - [], -) -glEvalCoord1d=platform.createBaseFunction( - 'glEvalCoord1d',platform.GL,None, - [GLdouble], - ['u'], -) -glEvalCoord1dv=platform.createBaseFunction( - 'glEvalCoord1dv',platform.GL,None, - [GLdoubleArray], - ['u'], -) -glEvalCoord1f=platform.createBaseFunction( - 'glEvalCoord1f',platform.GL,None, - [GLfloat], - ['u'], -) -glEvalCoord1fv=platform.createBaseFunction( - 'glEvalCoord1fv',platform.GL,None, - [GLfloatArray], - ['u'], -) -glEvalCoord2d=platform.createBaseFunction( - 'glEvalCoord2d',platform.GL,None, - [GLdouble,GLdouble], - ['u', 'v'], -) -glEvalCoord2dv=platform.createBaseFunction( - 'glEvalCoord2dv',platform.GL,None, - [GLdoubleArray], - ['u'], -) -glEvalCoord2f=platform.createBaseFunction( - 'glEvalCoord2f',platform.GL,None, - [GLfloat,GLfloat], - ['u', 'v'], -) -glEvalCoord2fv=platform.createBaseFunction( - 'glEvalCoord2fv',platform.GL,None, - [GLfloatArray], - ['u'], -) -glEvalMesh1=platform.createBaseFunction( - 'glEvalMesh1',platform.GL,None, - [GLenum,GLint,GLint], - ['mode', 'i1', 'i2'], -) -glEvalMesh2=platform.createBaseFunction( - 'glEvalMesh2',platform.GL,None, - [GLenum,GLint,GLint,GLint,GLint], - ['mode', 'i1', 'i2', 'j1', 'j2'], -) -glEvalPoint1=platform.createBaseFunction( - 'glEvalPoint1',platform.GL,None, - [GLint], - ['i'], -) -glEvalPoint2=platform.createBaseFunction( - 'glEvalPoint2',platform.GL,None, - [GLint,GLint], - ['i', 'j'], -) -glFeedbackBuffer=platform.createBaseFunction( - 'glFeedbackBuffer',platform.GL,None, - [GLsizei,GLenum,GLfloatArray], - ['size', 'type', 'buffer'], -) -glFinish=platform.createBaseFunction( - 'glFinish',platform.GL,None, - [], - [], -) -glFlush=platform.createBaseFunction( - 'glFlush',platform.GL,None, - [], - [], -) -glFogf=platform.createBaseFunction( - 'glFogf',platform.GL,None, - [GLenum,GLfloat], - ['pname', 'param'], -) -glFogfv=platform.createBaseFunction( - 'glFogfv',platform.GL,None, - [GLenum,GLfloatArray], - ['pname', 'params'], -) -glFogi=platform.createBaseFunction( - 'glFogi',platform.GL,None, - [GLenum,GLint], - ['pname', 'param'], -) -glFogiv=platform.createBaseFunction( - 'glFogiv',platform.GL,None, - [GLenum,GLintArray], - ['pname', 'params'], -) -glFrontFace=platform.createBaseFunction( - 'glFrontFace',platform.GL,None, - [GLenum], - ['mode'], -) -glFrustum=platform.createBaseFunction( - 'glFrustum',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble], - ['left', 'right', 'bottom', 'top', 'zNear', 'zFar'], -) -glGenLists=platform.createBaseFunction( - 'glGenLists',platform.GL,GLuint, - [GLsizei], - ['range'], -) -glGenTextures=platform.createBaseFunction( - 'glGenTextures',platform.GL,None, - [GLsizei,GLuintArray], - ['n', 'textures'], -) -glGetBooleanv=platform.createBaseFunction( - 'glGetBooleanv',platform.GL,None, - [GLenum,GLbooleanArray], - ['pname', 'params'], -) -glGetClipPlane=platform.createBaseFunction( - 'glGetClipPlane',platform.GL,None, - [GLenum,GLdoubleArray], - ['plane', 'equation'], -) -glGetDoublev=platform.createBaseFunction( - 'glGetDoublev',platform.GL,None, - [GLenum,GLdoubleArray], - ['pname', 'params'], -) -glGetError=platform.createBaseFunction( - 'glGetError',platform.GL,GLenum, - [], - [], -) -glGetFloatv=platform.createBaseFunction( - 'glGetFloatv',platform.GL,None, - [GLenum,GLfloatArray], - ['pname', 'params'], -) -glGetIntegerv=platform.createBaseFunction( - 'glGetIntegerv',platform.GL,None, - [GLenum,GLintArray], - ['pname', 'params'], -) -glGetLightfv=platform.createBaseFunction( - 'glGetLightfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['light', 'pname', 'params'], -) -glGetLightiv=platform.createBaseFunction( - 'glGetLightiv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['light', 'pname', 'params'], -) -glGetMapdv=platform.createBaseFunction( - 'glGetMapdv',platform.GL,None, - [GLenum,GLenum,GLdoubleArray], - ['target', 'query', 'v'], -) -glGetMapfv=platform.createBaseFunction( - 'glGetMapfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['target', 'query', 'v'], -) -glGetMapiv=platform.createBaseFunction( - 'glGetMapiv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['target', 'query', 'v'], -) -glGetMaterialfv=platform.createBaseFunction( - 'glGetMaterialfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['face', 'pname', 'params'], -) -glGetMaterialiv=platform.createBaseFunction( - 'glGetMaterialiv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['face', 'pname', 'params'], -) -glGetPixelMapfv=platform.createBaseFunction( - 'glGetPixelMapfv',platform.GL,None, - [GLenum,GLfloatArray], - ['map', 'values'], -) -glGetPixelMapuiv=platform.createBaseFunction( - 'glGetPixelMapuiv',platform.GL,None, - [GLenum,GLuintArray], - ['map', 'values'], -) -glGetPixelMapusv=platform.createBaseFunction( - 'glGetPixelMapusv',platform.GL,None, - [GLenum,GLushortArray], - ['map', 'values'], -) -glGetPointerv=platform.createBaseFunction( - 'glGetPointerv',platform.GL,None, - [GLenum,POINTER(POINTER(GLvoid))], - ['pname', 'params'], -) -glGetPolygonStipple=platform.createBaseFunction( - 'glGetPolygonStipple',platform.GL,None, - [GLubyteArray], - ['mask'], -) -glGetString=platform.createBaseFunction( - 'glGetString',platform.GL,GLubyteArray, - [GLenum], - ['name'], -) -glGetTexEnvfv=platform.createBaseFunction( - 'glGetTexEnvfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['target', 'pname', 'params'], -) -glGetTexEnviv=platform.createBaseFunction( - 'glGetTexEnviv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['target', 'pname', 'params'], -) -glGetTexGendv=platform.createBaseFunction( - 'glGetTexGendv',platform.GL,None, - [GLenum,GLenum,GLdoubleArray], - ['coord', 'pname', 'params'], -) -glGetTexGenfv=platform.createBaseFunction( - 'glGetTexGenfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['coord', 'pname', 'params'], -) -glGetTexGeniv=platform.createBaseFunction( - 'glGetTexGeniv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['coord', 'pname', 'params'], -) -glGetTexImage=platform.createBaseFunction( - 'glGetTexImage',platform.GL,None, - [GLenum,GLint,GLenum,GLenum,POINTER(GLvoid)], - ['target', 'level', 'format', 'type', 'pixels'], -) -glGetTexLevelParameterfv=platform.createBaseFunction( - 'glGetTexLevelParameterfv',platform.GL,None, - [GLenum,GLint,GLenum,GLfloatArray], - ['target', 'level', 'pname', 'params'], -) -glGetTexLevelParameteriv=platform.createBaseFunction( - 'glGetTexLevelParameteriv',platform.GL,None, - [GLenum,GLint,GLenum,GLintArray], - ['target', 'level', 'pname', 'params'], -) -glGetTexParameterfv=platform.createBaseFunction( - 'glGetTexParameterfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['target', 'pname', 'params'], -) -glGetTexParameteriv=platform.createBaseFunction( - 'glGetTexParameteriv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['target', 'pname', 'params'], -) -glHint=platform.createBaseFunction( - 'glHint',platform.GL,None, - [GLenum,GLenum], - ['target', 'mode'], -) -glIndexMask=platform.createBaseFunction( - 'glIndexMask',platform.GL,None, - [GLuint], - ['mask'], -) -glIndexPointer=platform.createBaseFunction( - 'glIndexPointer',platform.GL,None, - [GLenum,GLsizei,POINTER(GLvoid)], - ['type', 'stride', 'pointer'], -) -glIndexd=platform.createBaseFunction( - 'glIndexd',platform.GL,None, - [GLdouble], - ['c'], -) -glIndexdv=platform.createBaseFunction( - 'glIndexdv',platform.GL,None, - [GLdoubleArray], - ['c'], -) -glIndexf=platform.createBaseFunction( - 'glIndexf',platform.GL,None, - [GLfloat], - ['c'], -) -glIndexfv=platform.createBaseFunction( - 'glIndexfv',platform.GL,None, - [GLfloatArray], - ['c'], -) -glIndexi=platform.createBaseFunction( - 'glIndexi',platform.GL,None, - [GLint], - ['c'], -) -glIndexiv=platform.createBaseFunction( - 'glIndexiv',platform.GL,None, - [GLintArray], - ['c'], -) -glIndexs=platform.createBaseFunction( - 'glIndexs',platform.GL,None, - [GLshort], - ['c'], -) -glIndexsv=platform.createBaseFunction( - 'glIndexsv',platform.GL,None, - [GLshortArray], - ['c'], -) -glIndexub=platform.createBaseFunction( - 'glIndexub',platform.GL,None, - [GLubyte], - ['c'], -) -glIndexubv=platform.createBaseFunction( - 'glIndexubv',platform.GL,None, - [GLubyteArray], - ['c'], -) -glInitNames=platform.createBaseFunction( - 'glInitNames',platform.GL,None, - [], - [], -) -glInterleavedArrays=platform.createBaseFunction( - 'glInterleavedArrays',platform.GL,None, - [GLenum,GLsizei,POINTER(GLvoid)], - ['format', 'stride', 'pointer'], -) -glIsEnabled=platform.createBaseFunction( - 'glIsEnabled',platform.GL,GLboolean, - [GLenum], - ['cap'], -) -glIsList=platform.createBaseFunction( - 'glIsList',platform.GL,GLboolean, - [GLuint], - ['list'], -) -glIsTexture=platform.createBaseFunction( - 'glIsTexture',platform.GL,GLboolean, - [GLuint], - ['texture'], -) -glLightModelf=platform.createBaseFunction( - 'glLightModelf',platform.GL,None, - [GLenum,GLfloat], - ['pname', 'param'], -) -glLightModelfv=platform.createBaseFunction( - 'glLightModelfv',platform.GL,None, - [GLenum,GLfloatArray], - ['pname', 'params'], -) -glLightModeli=platform.createBaseFunction( - 'glLightModeli',platform.GL,None, - [GLenum,GLint], - ['pname', 'param'], -) -glLightModeliv=platform.createBaseFunction( - 'glLightModeliv',platform.GL,None, - [GLenum,GLintArray], - ['pname', 'params'], -) -glLightf=platform.createBaseFunction( - 'glLightf',platform.GL,None, - [GLenum,GLenum,GLfloat], - ['light', 'pname', 'param'], -) -glLightfv=platform.createBaseFunction( - 'glLightfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['light', 'pname', 'params'], -) -glLighti=platform.createBaseFunction( - 'glLighti',platform.GL,None, - [GLenum,GLenum,GLint], - ['light', 'pname', 'param'], -) -glLightiv=platform.createBaseFunction( - 'glLightiv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['light', 'pname', 'params'], -) -glLineStipple=platform.createBaseFunction( - 'glLineStipple',platform.GL,None, - [GLint,GLushort], - ['factor', 'pattern'], -) -glLineWidth=platform.createBaseFunction( - 'glLineWidth',platform.GL,None, - [GLfloat], - ['width'], -) -glListBase=platform.createBaseFunction( - 'glListBase',platform.GL,None, - [GLuint], - ['base'], -) -glLoadIdentity=platform.createBaseFunction( - 'glLoadIdentity',platform.GL,None, - [], - [], -) -glLoadMatrixd=platform.createBaseFunction( - 'glLoadMatrixd',platform.GL,None, - [GLdoubleArray], - ['m'], -) -glLoadMatrixf=platform.createBaseFunction( - 'glLoadMatrixf',platform.GL,None, - [GLfloatArray], - ['m'], -) -glLoadName=platform.createBaseFunction( - 'glLoadName',platform.GL,None, - [GLuint], - ['name'], -) -glLogicOp=platform.createBaseFunction( - 'glLogicOp',platform.GL,None, - [GLenum], - ['opcode'], -) -glMap1d=platform.createBaseFunction( - 'glMap1d',platform.GL,None, - [GLenum,GLdouble,GLdouble,GLint,GLint,GLdoubleArray], - ['target', 'u1', 'u2', 'stride', 'order', 'points'], -) -glMap1f=platform.createBaseFunction( - 'glMap1f',platform.GL,None, - [GLenum,GLfloat,GLfloat,GLint,GLint,GLfloatArray], - ['target', 'u1', 'u2', 'stride', 'order', 'points'], -) -glMap2d=platform.createBaseFunction( - 'glMap2d',platform.GL,None, - [GLenum,GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble,GLint,GLint,GLdoubleArray], - ['target', 'u1', 'u2', 'ustride', 'uorder', 'v1', 'v2', 'vstride', 'vorder', 'points'], -) -glMap2f=platform.createBaseFunction( - 'glMap2f',platform.GL,None, - [GLenum,GLfloat,GLfloat,GLint,GLint,GLfloat,GLfloat,GLint,GLint,GLfloatArray], - ['target', 'u1', 'u2', 'ustride', 'uorder', 'v1', 'v2', 'vstride', 'vorder', 'points'], -) -glMapGrid1d=platform.createBaseFunction( - 'glMapGrid1d',platform.GL,None, - [GLint,GLdouble,GLdouble], - ['un', 'u1', 'u2'], -) -glMapGrid1f=platform.createBaseFunction( - 'glMapGrid1f',platform.GL,None, - [GLint,GLfloat,GLfloat], - ['un', 'u1', 'u2'], -) -glMapGrid2d=platform.createBaseFunction( - 'glMapGrid2d',platform.GL,None, - [GLint,GLdouble,GLdouble,GLint,GLdouble,GLdouble], - ['un', 'u1', 'u2', 'vn', 'v1', 'v2'], -) -glMapGrid2f=platform.createBaseFunction( - 'glMapGrid2f',platform.GL,None, - [GLint,GLfloat,GLfloat,GLint,GLfloat,GLfloat], - ['un', 'u1', 'u2', 'vn', 'v1', 'v2'], -) -glMaterialf=platform.createBaseFunction( - 'glMaterialf',platform.GL,None, - [GLenum,GLenum,GLfloat], - ['face', 'pname', 'param'], -) -glMaterialfv=platform.createBaseFunction( - 'glMaterialfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['face', 'pname', 'params'], -) -glMateriali=platform.createBaseFunction( - 'glMateriali',platform.GL,None, - [GLenum,GLenum,GLint], - ['face', 'pname', 'param'], -) -glMaterialiv=platform.createBaseFunction( - 'glMaterialiv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['face', 'pname', 'params'], -) -glMatrixMode=platform.createBaseFunction( - 'glMatrixMode',platform.GL,None, - [GLenum], - ['mode'], -) -glMultMatrixd=platform.createBaseFunction( - 'glMultMatrixd',platform.GL,None, - [GLdoubleArray], - ['m'], -) -glMultMatrixf=platform.createBaseFunction( - 'glMultMatrixf',platform.GL,None, - [GLfloatArray], - ['m'], -) -glNewList=platform.createBaseFunction( - 'glNewList',platform.GL,None, - [GLuint,GLenum], - ['list', 'mode'], -) -glNormal3b=platform.createBaseFunction( - 'glNormal3b',platform.GL,None, - [GLbyte,GLbyte,GLbyte], - ['nx', 'ny', 'nz'], -) -glNormal3bv=platform.createBaseFunction( - 'glNormal3bv',platform.GL,None, - [GLbyteArray], - ['v'], -) -glNormal3d=platform.createBaseFunction( - 'glNormal3d',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['nx', 'ny', 'nz'], -) -glNormal3dv=platform.createBaseFunction( - 'glNormal3dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glNormal3f=platform.createBaseFunction( - 'glNormal3f',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['nx', 'ny', 'nz'], -) -glNormal3fv=platform.createBaseFunction( - 'glNormal3fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glNormal3i=platform.createBaseFunction( - 'glNormal3i',platform.GL,None, - [GLint,GLint,GLint], - ['nx', 'ny', 'nz'], -) -glNormal3iv=platform.createBaseFunction( - 'glNormal3iv',platform.GL,None, - [GLintArray], - ['v'], -) -glNormal3s=platform.createBaseFunction( - 'glNormal3s',platform.GL,None, - [GLshort,GLshort,GLshort], - ['nx', 'ny', 'nz'], -) -glNormal3sv=platform.createBaseFunction( - 'glNormal3sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glNormalPointer=platform.createBaseFunction( - 'glNormalPointer',platform.GL,None, - [GLenum,GLsizei,POINTER(GLvoid)], - ['type', 'stride', 'pointer'], -) -glOrtho=platform.createBaseFunction( - 'glOrtho',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble], - ['left', 'right', 'bottom', 'top', 'zNear', 'zFar'], -) -glPassThrough=platform.createBaseFunction( - 'glPassThrough',platform.GL,None, - [GLfloat], - ['token'], -) -glPixelMapfv=platform.createBaseFunction( - 'glPixelMapfv',platform.GL,None, - [GLenum,GLsizei,GLfloatArray], - ['map', 'mapsize', 'values'], -) -glPixelMapuiv=platform.createBaseFunction( - 'glPixelMapuiv',platform.GL,None, - [GLenum,GLsizei,GLuintArray], - ['map', 'mapsize', 'values'], -) -glPixelMapusv=platform.createBaseFunction( - 'glPixelMapusv',platform.GL,None, - [GLenum,GLsizei,GLushortArray], - ['map', 'mapsize', 'values'], -) -glPixelStoref=platform.createBaseFunction( - 'glPixelStoref',platform.GL,None, - [GLenum,GLfloat], - ['pname', 'param'], -) -glPixelStorei=platform.createBaseFunction( - 'glPixelStorei',platform.GL,None, - [GLenum,GLint], - ['pname', 'param'], -) -glPixelTransferf=platform.createBaseFunction( - 'glPixelTransferf',platform.GL,None, - [GLenum,GLfloat], - ['pname', 'param'], -) -glPixelTransferi=platform.createBaseFunction( - 'glPixelTransferi',platform.GL,None, - [GLenum,GLint], - ['pname', 'param'], -) -glPixelZoom=platform.createBaseFunction( - 'glPixelZoom',platform.GL,None, - [GLfloat,GLfloat], - ['xfactor', 'yfactor'], -) -glPointSize=platform.createBaseFunction( - 'glPointSize',platform.GL,None, - [GLfloat], - ['size'], -) -glPolygonMode=platform.createBaseFunction( - 'glPolygonMode',platform.GL,None, - [GLenum,GLenum], - ['face', 'mode'], -) -glPolygonOffset=platform.createBaseFunction( - 'glPolygonOffset',platform.GL,None, - [GLfloat,GLfloat], - ['factor', 'units'], -) -glPolygonStipple=platform.createBaseFunction( - 'glPolygonStipple',platform.GL,None, - [GLubyteArray], - ['mask'], -) -glPopAttrib=platform.createBaseFunction( - 'glPopAttrib',platform.GL,None, - [], - [], -) -glPopClientAttrib=platform.createBaseFunction( - 'glPopClientAttrib',platform.GL,None, - [], - [], -) -glPopMatrix=platform.createBaseFunction( - 'glPopMatrix',platform.GL,None, - [], - [], -) -glPopName=platform.createBaseFunction( - 'glPopName',platform.GL,None, - [], - [], -) -glPrioritizeTextures=platform.createBaseFunction( - 'glPrioritizeTextures',platform.GL,None, - [GLsizei,GLuintArray,GLclampfArray], - ['n', 'textures', 'priorities'], -) -glPushAttrib=platform.createBaseFunction( - 'glPushAttrib',platform.GL,None, - [GLbitfield], - ['mask'], -) -glPushClientAttrib=platform.createBaseFunction( - 'glPushClientAttrib',platform.GL,None, - [GLbitfield], - ['mask'], -) -glPushMatrix=platform.createBaseFunction( - 'glPushMatrix',platform.GL,None, - [], - [], -) -glPushName=platform.createBaseFunction( - 'glPushName',platform.GL,None, - [GLuint], - ['name'], -) -glRasterPos2d=platform.createBaseFunction( - 'glRasterPos2d',platform.GL,None, - [GLdouble,GLdouble], - ['x', 'y'], -) -glRasterPos2dv=platform.createBaseFunction( - 'glRasterPos2dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glRasterPos2f=platform.createBaseFunction( - 'glRasterPos2f',platform.GL,None, - [GLfloat,GLfloat], - ['x', 'y'], -) -glRasterPos2fv=platform.createBaseFunction( - 'glRasterPos2fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glRasterPos2i=platform.createBaseFunction( - 'glRasterPos2i',platform.GL,None, - [GLint,GLint], - ['x', 'y'], -) -glRasterPos2iv=platform.createBaseFunction( - 'glRasterPos2iv',platform.GL,None, - [GLintArray], - ['v'], -) -glRasterPos2s=platform.createBaseFunction( - 'glRasterPos2s',platform.GL,None, - [GLshort,GLshort], - ['x', 'y'], -) -glRasterPos2sv=platform.createBaseFunction( - 'glRasterPos2sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glRasterPos3d=platform.createBaseFunction( - 'glRasterPos3d',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z'], -) -glRasterPos3dv=platform.createBaseFunction( - 'glRasterPos3dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glRasterPos3f=platform.createBaseFunction( - 'glRasterPos3f',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z'], -) -glRasterPos3fv=platform.createBaseFunction( - 'glRasterPos3fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glRasterPos3i=platform.createBaseFunction( - 'glRasterPos3i',platform.GL,None, - [GLint,GLint,GLint], - ['x', 'y', 'z'], -) -glRasterPos3iv=platform.createBaseFunction( - 'glRasterPos3iv',platform.GL,None, - [GLintArray], - ['v'], -) -glRasterPos3s=platform.createBaseFunction( - 'glRasterPos3s',platform.GL,None, - [GLshort,GLshort,GLshort], - ['x', 'y', 'z'], -) -glRasterPos3sv=platform.createBaseFunction( - 'glRasterPos3sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glRasterPos4d=platform.createBaseFunction( - 'glRasterPos4d',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z', 'w'], -) -glRasterPos4dv=platform.createBaseFunction( - 'glRasterPos4dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glRasterPos4f=platform.createBaseFunction( - 'glRasterPos4f',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z', 'w'], -) -glRasterPos4fv=platform.createBaseFunction( - 'glRasterPos4fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glRasterPos4i=platform.createBaseFunction( - 'glRasterPos4i',platform.GL,None, - [GLint,GLint,GLint,GLint], - ['x', 'y', 'z', 'w'], -) -glRasterPos4iv=platform.createBaseFunction( - 'glRasterPos4iv',platform.GL,None, - [GLintArray], - ['v'], -) -glRasterPos4s=platform.createBaseFunction( - 'glRasterPos4s',platform.GL,None, - [GLshort,GLshort,GLshort,GLshort], - ['x', 'y', 'z', 'w'], -) -glRasterPos4sv=platform.createBaseFunction( - 'glRasterPos4sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glReadBuffer=platform.createBaseFunction( - 'glReadBuffer',platform.GL,None, - [GLenum], - ['mode'], -) -glReadPixels=platform.createBaseFunction( - 'glReadPixels',platform.GL,None, - [GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,POINTER(GLvoid)], - ['x', 'y', 'width', 'height', 'format', 'type', 'pixels'], -) -glRectd=platform.createBaseFunction( - 'glRectd',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['x1', 'y1', 'x2', 'y2'], -) -glRectdv=platform.createBaseFunction( - 'glRectdv',platform.GL,None, - [GLdoubleArray,GLdoubleArray], - ['v1', 'v2'], -) -glRectf=platform.createBaseFunction( - 'glRectf',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['x1', 'y1', 'x2', 'y2'], -) -glRectfv=platform.createBaseFunction( - 'glRectfv',platform.GL,None, - [GLfloatArray,GLfloatArray], - ['v1', 'v2'], -) -glRecti=platform.createBaseFunction( - 'glRecti',platform.GL,None, - [GLint,GLint,GLint,GLint], - ['x1', 'y1', 'x2', 'y2'], -) -glRectiv=platform.createBaseFunction( - 'glRectiv',platform.GL,None, - [GLintArray,GLintArray], - ['v1', 'v2'], -) -glRects=platform.createBaseFunction( - 'glRects',platform.GL,None, - [GLshort,GLshort,GLshort,GLshort], - ['x1', 'y1', 'x2', 'y2'], -) -glRectsv=platform.createBaseFunction( - 'glRectsv',platform.GL,None, - [GLshortArray,GLshortArray], - ['v1', 'v2'], -) -glRenderMode=platform.createBaseFunction( - 'glRenderMode',platform.GL,GLint, - [GLenum], - ['mode'], -) -glRotated=platform.createBaseFunction( - 'glRotated',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['angle', 'x', 'y', 'z'], -) -glRotatef=platform.createBaseFunction( - 'glRotatef',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['angle', 'x', 'y', 'z'], -) -glScaled=platform.createBaseFunction( - 'glScaled',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z'], -) -glScalef=platform.createBaseFunction( - 'glScalef',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z'], -) -glScissor=platform.createBaseFunction( - 'glScissor',platform.GL,None, - [GLint,GLint,GLsizei,GLsizei], - ['x', 'y', 'width', 'height'], -) -glSelectBuffer=platform.createBaseFunction( - 'glSelectBuffer',platform.GL,None, - [GLsizei,GLuintArray], - ['size', 'buffer'], -) -glShadeModel=platform.createBaseFunction( - 'glShadeModel',platform.GL,None, - [GLenum], - ['mode'], -) -glStencilFunc=platform.createBaseFunction( - 'glStencilFunc',platform.GL,None, - [GLenum,GLint,GLuint], - ['func', 'ref', 'mask'], -) -glStencilMask=platform.createBaseFunction( - 'glStencilMask',platform.GL,None, - [GLuint], - ['mask'], -) -glStencilOp=platform.createBaseFunction( - 'glStencilOp',platform.GL,None, - [GLenum,GLenum,GLenum], - ['fail', 'zfail', 'zpass'], -) -glTexCoord1d=platform.createBaseFunction( - 'glTexCoord1d',platform.GL,None, - [GLdouble], - ['s'], -) -glTexCoord1dv=platform.createBaseFunction( - 'glTexCoord1dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glTexCoord1f=platform.createBaseFunction( - 'glTexCoord1f',platform.GL,None, - [GLfloat], - ['s'], -) -glTexCoord1fv=platform.createBaseFunction( - 'glTexCoord1fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glTexCoord1i=platform.createBaseFunction( - 'glTexCoord1i',platform.GL,None, - [GLint], - ['s'], -) -glTexCoord1iv=platform.createBaseFunction( - 'glTexCoord1iv',platform.GL,None, - [GLintArray], - ['v'], -) -glTexCoord1s=platform.createBaseFunction( - 'glTexCoord1s',platform.GL,None, - [GLshort], - ['s'], -) -glTexCoord1sv=platform.createBaseFunction( - 'glTexCoord1sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glTexCoord2d=platform.createBaseFunction( - 'glTexCoord2d',platform.GL,None, - [GLdouble,GLdouble], - ['s', 't'], -) -glTexCoord2dv=platform.createBaseFunction( - 'glTexCoord2dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glTexCoord2f=platform.createBaseFunction( - 'glTexCoord2f',platform.GL,None, - [GLfloat,GLfloat], - ['s', 't'], -) -glTexCoord2fv=platform.createBaseFunction( - 'glTexCoord2fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glTexCoord2i=platform.createBaseFunction( - 'glTexCoord2i',platform.GL,None, - [GLint,GLint], - ['s', 't'], -) -glTexCoord2iv=platform.createBaseFunction( - 'glTexCoord2iv',platform.GL,None, - [GLintArray], - ['v'], -) -glTexCoord2s=platform.createBaseFunction( - 'glTexCoord2s',platform.GL,None, - [GLshort,GLshort], - ['s', 't'], -) -glTexCoord2sv=platform.createBaseFunction( - 'glTexCoord2sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glTexCoord3d=platform.createBaseFunction( - 'glTexCoord3d',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['s', 't', 'r'], -) -glTexCoord3dv=platform.createBaseFunction( - 'glTexCoord3dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glTexCoord3f=platform.createBaseFunction( - 'glTexCoord3f',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['s', 't', 'r'], -) -glTexCoord3fv=platform.createBaseFunction( - 'glTexCoord3fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glTexCoord3i=platform.createBaseFunction( - 'glTexCoord3i',platform.GL,None, - [GLint,GLint,GLint], - ['s', 't', 'r'], -) -glTexCoord3iv=platform.createBaseFunction( - 'glTexCoord3iv',platform.GL,None, - [GLintArray], - ['v'], -) -glTexCoord3s=platform.createBaseFunction( - 'glTexCoord3s',platform.GL,None, - [GLshort,GLshort,GLshort], - ['s', 't', 'r'], -) -glTexCoord3sv=platform.createBaseFunction( - 'glTexCoord3sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glTexCoord4d=platform.createBaseFunction( - 'glTexCoord4d',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['s', 't', 'r', 'q'], -) -glTexCoord4dv=platform.createBaseFunction( - 'glTexCoord4dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glTexCoord4f=platform.createBaseFunction( - 'glTexCoord4f',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['s', 't', 'r', 'q'], -) -glTexCoord4fv=platform.createBaseFunction( - 'glTexCoord4fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glTexCoord4i=platform.createBaseFunction( - 'glTexCoord4i',platform.GL,None, - [GLint,GLint,GLint,GLint], - ['s', 't', 'r', 'q'], -) -glTexCoord4iv=platform.createBaseFunction( - 'glTexCoord4iv',platform.GL,None, - [GLintArray], - ['v'], -) -glTexCoord4s=platform.createBaseFunction( - 'glTexCoord4s',platform.GL,None, - [GLshort,GLshort,GLshort,GLshort], - ['s', 't', 'r', 'q'], -) -glTexCoord4sv=platform.createBaseFunction( - 'glTexCoord4sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glTexCoordPointer=platform.createBaseFunction( - 'glTexCoordPointer',platform.GL,None, - [GLint,GLenum,GLsizei,POINTER(GLvoid)], - ['size', 'type', 'stride', 'pointer'], -) -glTexEnvf=platform.createBaseFunction( - 'glTexEnvf',platform.GL,None, - [GLenum,GLenum,GLfloat], - ['target', 'pname', 'param'], -) -glTexEnvfv=platform.createBaseFunction( - 'glTexEnvfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['target', 'pname', 'params'], -) -glTexEnvi=platform.createBaseFunction( - 'glTexEnvi',platform.GL,None, - [GLenum,GLenum,GLint], - ['target', 'pname', 'param'], -) -glTexEnviv=platform.createBaseFunction( - 'glTexEnviv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['target', 'pname', 'params'], -) -glTexGend=platform.createBaseFunction( - 'glTexGend',platform.GL,None, - [GLenum,GLenum,GLdouble], - ['coord', 'pname', 'param'], -) -glTexGendv=platform.createBaseFunction( - 'glTexGendv',platform.GL,None, - [GLenum,GLenum,GLdoubleArray], - ['coord', 'pname', 'params'], -) -glTexGenf=platform.createBaseFunction( - 'glTexGenf',platform.GL,None, - [GLenum,GLenum,GLfloat], - ['coord', 'pname', 'param'], -) -glTexGenfv=platform.createBaseFunction( - 'glTexGenfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['coord', 'pname', 'params'], -) -glTexGeni=platform.createBaseFunction( - 'glTexGeni',platform.GL,None, - [GLenum,GLenum,GLint], - ['coord', 'pname', 'param'], -) -glTexGeniv=platform.createBaseFunction( - 'glTexGeniv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['coord', 'pname', 'params'], -) -glTexImage1D=platform.createBaseFunction( - 'glTexImage1D',platform.GL,None, - [GLenum,GLint,GLint,GLsizei,GLint,GLenum,GLenum,POINTER(GLvoid)], - ['target', 'level', 'internalformat', 'width', 'border', 'format', 'type', 'pixels'], -) -glTexImage2D=platform.createBaseFunction( - 'glTexImage2D',platform.GL,None, - [GLenum,GLint,GLint,GLsizei,GLsizei,GLint,GLenum,GLenum,POINTER(GLvoid)], - ['target', 'level', 'internalformat', 'width', 'height', 'border', 'format', 'type', 'pixels'], -) -glTexParameterf=platform.createBaseFunction( - 'glTexParameterf',platform.GL,None, - [GLenum,GLenum,GLfloat], - ['target', 'pname', 'param'], -) -glTexParameterfv=platform.createBaseFunction( - 'glTexParameterfv',platform.GL,None, - [GLenum,GLenum,GLfloatArray], - ['target', 'pname', 'params'], -) -glTexParameteri=platform.createBaseFunction( - 'glTexParameteri',platform.GL,None, - [GLenum,GLenum,GLint], - ['target', 'pname', 'param'], -) -glTexParameteriv=platform.createBaseFunction( - 'glTexParameteriv',platform.GL,None, - [GLenum,GLenum,GLintArray], - ['target', 'pname', 'params'], -) -glTexSubImage1D=platform.createBaseFunction( - 'glTexSubImage1D',platform.GL,None, - [GLenum,GLint,GLint,GLsizei,GLenum,GLenum,POINTER(GLvoid)], - ['target', 'level', 'xoffset', 'width', 'format', 'type', 'pixels'], -) -glTexSubImage2D=platform.createBaseFunction( - 'glTexSubImage2D',platform.GL,None, - [GLenum,GLint,GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,POINTER(GLvoid)], - ['target', 'level', 'xoffset', 'yoffset', 'width', 'height', 'format', 'type', 'pixels'], -) -glTranslated=platform.createBaseFunction( - 'glTranslated',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z'], -) -glTranslatef=platform.createBaseFunction( - 'glTranslatef',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z'], -) -glVertex2d=platform.createBaseFunction( - 'glVertex2d',platform.GL,None, - [GLdouble,GLdouble], - ['x', 'y'], -) -glVertex2dv=platform.createBaseFunction( - 'glVertex2dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glVertex2f=platform.createBaseFunction( - 'glVertex2f',platform.GL,None, - [GLfloat,GLfloat], - ['x', 'y'], -) -glVertex2fv=platform.createBaseFunction( - 'glVertex2fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glVertex2i=platform.createBaseFunction( - 'glVertex2i',platform.GL,None, - [GLint,GLint], - ['x', 'y'], -) -glVertex2iv=platform.createBaseFunction( - 'glVertex2iv',platform.GL,None, - [GLintArray], - ['v'], -) -glVertex2s=platform.createBaseFunction( - 'glVertex2s',platform.GL,None, - [GLshort,GLshort], - ['x', 'y'], -) -glVertex2sv=platform.createBaseFunction( - 'glVertex2sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glVertex3d=platform.createBaseFunction( - 'glVertex3d',platform.GL,None, - [GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z'], -) -glVertex3dv=platform.createBaseFunction( - 'glVertex3dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glVertex3f=platform.createBaseFunction( - 'glVertex3f',platform.GL,None, - [GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z'], -) -glVertex3fv=platform.createBaseFunction( - 'glVertex3fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glVertex3i=platform.createBaseFunction( - 'glVertex3i',platform.GL,None, - [GLint,GLint,GLint], - ['x', 'y', 'z'], -) -glVertex3iv=platform.createBaseFunction( - 'glVertex3iv',platform.GL,None, - [GLintArray], - ['v'], -) -glVertex3s=platform.createBaseFunction( - 'glVertex3s',platform.GL,None, - [GLshort,GLshort,GLshort], - ['x', 'y', 'z'], -) -glVertex3sv=platform.createBaseFunction( - 'glVertex3sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glVertex4d=platform.createBaseFunction( - 'glVertex4d',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['x', 'y', 'z', 'w'], -) -glVertex4dv=platform.createBaseFunction( - 'glVertex4dv',platform.GL,None, - [GLdoubleArray], - ['v'], -) -glVertex4f=platform.createBaseFunction( - 'glVertex4f',platform.GL,None, - [GLfloat,GLfloat,GLfloat,GLfloat], - ['x', 'y', 'z', 'w'], -) -glVertex4fv=platform.createBaseFunction( - 'glVertex4fv',platform.GL,None, - [GLfloatArray], - ['v'], -) -glVertex4i=platform.createBaseFunction( - 'glVertex4i',platform.GL,None, - [GLint,GLint,GLint,GLint], - ['x', 'y', 'z', 'w'], -) -glVertex4iv=platform.createBaseFunction( - 'glVertex4iv',platform.GL,None, - [GLintArray], - ['v'], -) -glVertex4s=platform.createBaseFunction( - 'glVertex4s',platform.GL,None, - [GLshort,GLshort,GLshort,GLshort], - ['x', 'y', 'z', 'w'], -) -glVertex4sv=platform.createBaseFunction( - 'glVertex4sv',platform.GL,None, - [GLshortArray], - ['v'], -) -glVertexPointer=platform.createBaseFunction( - 'glVertexPointer',platform.GL,None, - [GLint,GLenum,GLsizei,POINTER(GLvoid)], - ['size', 'type', 'stride', 'pointer'], -) -glViewport=platform.createBaseFunction( - 'glViewport',platform.GL,None, - [GLint,GLint,GLsizei,GLsizei], - ['x', 'y', 'width', 'height'], -) - -__all__ = ['GL_VERSION_1_1', 'GL_CURRENT_BIT', 'GL_POINT_BIT', 'GL_LINE_BIT', -'GL_POLYGON_BIT', 'GL_POLYGON_STIPPLE_BIT', 'GL_PIXEL_MODE_BIT', -'GL_LIGHTING_BIT', 'GL_FOG_BIT', 'GL_DEPTH_BUFFER_BIT', 'GL_ACCUM_BUFFER_BIT', -'GL_STENCIL_BUFFER_BIT', 'GL_VIEWPORT_BIT', 'GL_TRANSFORM_BIT', -'GL_ENABLE_BIT', 'GL_COLOR_BUFFER_BIT', 'GL_HINT_BIT', 'GL_EVAL_BIT', -'GL_LIST_BIT', 'GL_TEXTURE_BIT', 'GL_SCISSOR_BIT', 'GL_ALL_ATTRIB_BITS', -'GL_CLIENT_PIXEL_STORE_BIT', 'GL_CLIENT_VERTEX_ARRAY_BIT', -'GL_CLIENT_ALL_ATTRIB_BITS', 'GL_FALSE', 'GL_TRUE', 'GL_POINTS', 'GL_LINES', -'GL_LINE_LOOP', 'GL_LINE_STRIP', 'GL_TRIANGLES', 'GL_TRIANGLE_STRIP', -'GL_TRIANGLE_FAN', 'GL_QUADS', 'GL_QUAD_STRIP', 'GL_POLYGON', 'GL_ACCUM', -'GL_LOAD', 'GL_RETURN', 'GL_MULT', 'GL_ADD', 'GL_NEVER', 'GL_LESS', -'GL_EQUAL', 'GL_LEQUAL', 'GL_GREATER', 'GL_NOTEQUAL', 'GL_GEQUAL', -'GL_ALWAYS', 'GL_ZERO', 'GL_ONE', 'GL_SRC_COLOR', 'GL_ONE_MINUS_SRC_COLOR', -'GL_SRC_ALPHA', 'GL_ONE_MINUS_SRC_ALPHA', 'GL_DST_ALPHA', -'GL_ONE_MINUS_DST_ALPHA', 'GL_DST_COLOR', 'GL_ONE_MINUS_DST_COLOR', -'GL_SRC_ALPHA_SATURATE', 'GL_NONE', 'GL_FRONT_LEFT', 'GL_FRONT_RIGHT', -'GL_BACK_LEFT', 'GL_BACK_RIGHT', 'GL_FRONT', 'GL_BACK', 'GL_LEFT', 'GL_RIGHT', -'GL_FRONT_AND_BACK', 'GL_AUX0', 'GL_AUX1', 'GL_AUX2', 'GL_AUX3', -'GL_NO_ERROR', 'GL_INVALID_ENUM', 'GL_INVALID_VALUE', 'GL_INVALID_OPERATION', -'GL_STACK_OVERFLOW', 'GL_STACK_UNDERFLOW', 'GL_OUT_OF_MEMORY', -'GL_TABLE_TOO_LARGE', 'GL_2D', 'GL_3D', 'GL_3D_COLOR', 'GL_3D_COLOR_TEXTURE', -'GL_4D_COLOR_TEXTURE', 'GL_PASS_THROUGH_TOKEN', 'GL_POINT_TOKEN', -'GL_LINE_TOKEN', 'GL_POLYGON_TOKEN', 'GL_BITMAP_TOKEN', 'GL_DRAW_PIXEL_TOKEN', -'GL_COPY_PIXEL_TOKEN', 'GL_LINE_RESET_TOKEN', 'GL_EXP', 'GL_EXP2', 'GL_CW', -'GL_CCW', 'GL_COEFF', 'GL_ORDER', 'GL_DOMAIN', 'GL_PIXEL_MAP_I_TO_I', -'GL_PIXEL_MAP_S_TO_S', 'GL_PIXEL_MAP_I_TO_R', 'GL_PIXEL_MAP_I_TO_G', -'GL_PIXEL_MAP_I_TO_B', 'GL_PIXEL_MAP_I_TO_A', 'GL_PIXEL_MAP_R_TO_R', -'GL_PIXEL_MAP_G_TO_G', 'GL_PIXEL_MAP_B_TO_B', 'GL_PIXEL_MAP_A_TO_A', -'GL_VERTEX_ARRAY_POINTER', 'GL_NORMAL_ARRAY_POINTER', -'GL_COLOR_ARRAY_POINTER', 'GL_INDEX_ARRAY_POINTER', -'GL_TEXTURE_COORD_ARRAY_POINTER', 'GL_EDGE_FLAG_ARRAY_POINTER', -'GL_CURRENT_COLOR', 'GL_CURRENT_INDEX', 'GL_CURRENT_NORMAL', -'GL_CURRENT_TEXTURE_COORDS', 'GL_CURRENT_RASTER_COLOR', -'GL_CURRENT_RASTER_INDEX', 'GL_CURRENT_RASTER_TEXTURE_COORDS', -'GL_CURRENT_RASTER_POSITION', 'GL_CURRENT_RASTER_POSITION_VALID', -'GL_CURRENT_RASTER_DISTANCE', 'GL_POINT_SMOOTH', 'GL_POINT_SIZE', -'GL_SMOOTH_POINT_SIZE_RANGE', 'GL_SMOOTH_POINT_SIZE_GRANULARITY', -'GL_POINT_SIZE_RANGE', 'GL_POINT_SIZE_GRANULARITY', 'GL_LINE_SMOOTH', -'GL_LINE_WIDTH', 'GL_SMOOTH_LINE_WIDTH_RANGE', -'GL_SMOOTH_LINE_WIDTH_GRANULARITY', 'GL_LINE_WIDTH_RANGE', -'GL_LINE_WIDTH_GRANULARITY', 'GL_LINE_STIPPLE', 'GL_LINE_STIPPLE_PATTERN', -'GL_LINE_STIPPLE_REPEAT', 'GL_LIST_MODE', 'GL_MAX_LIST_NESTING', -'GL_LIST_BASE', 'GL_LIST_INDEX', 'GL_POLYGON_MODE', 'GL_POLYGON_SMOOTH', -'GL_POLYGON_STIPPLE', 'GL_EDGE_FLAG', 'GL_CULL_FACE', 'GL_CULL_FACE_MODE', -'GL_FRONT_FACE', 'GL_LIGHTING', 'GL_LIGHT_MODEL_LOCAL_VIEWER', -'GL_LIGHT_MODEL_TWO_SIDE', 'GL_LIGHT_MODEL_AMBIENT', 'GL_SHADE_MODEL', -'GL_COLOR_MATERIAL_FACE', 'GL_COLOR_MATERIAL_PARAMETER', 'GL_COLOR_MATERIAL', -'GL_FOG', 'GL_FOG_INDEX', 'GL_FOG_DENSITY', 'GL_FOG_START', 'GL_FOG_END', -'GL_FOG_MODE', 'GL_FOG_COLOR', 'GL_DEPTH_RANGE', 'GL_DEPTH_TEST', -'GL_DEPTH_WRITEMASK', 'GL_DEPTH_CLEAR_VALUE', 'GL_DEPTH_FUNC', -'GL_ACCUM_CLEAR_VALUE', 'GL_STENCIL_TEST', 'GL_STENCIL_CLEAR_VALUE', -'GL_STENCIL_FUNC', 'GL_STENCIL_VALUE_MASK', 'GL_STENCIL_FAIL', -'GL_STENCIL_PASS_DEPTH_FAIL', 'GL_STENCIL_PASS_DEPTH_PASS', 'GL_STENCIL_REF', -'GL_STENCIL_WRITEMASK', 'GL_MATRIX_MODE', 'GL_NORMALIZE', 'GL_VIEWPORT', -'GL_MODELVIEW_STACK_DEPTH', 'GL_PROJECTION_STACK_DEPTH', -'GL_TEXTURE_STACK_DEPTH', 'GL_MODELVIEW_MATRIX', 'GL_PROJECTION_MATRIX', -'GL_TEXTURE_MATRIX', 'GL_ATTRIB_STACK_DEPTH', 'GL_CLIENT_ATTRIB_STACK_DEPTH', -'GL_ALPHA_TEST', 'GL_ALPHA_TEST_FUNC', 'GL_ALPHA_TEST_REF', 'GL_DITHER', -'GL_BLEND_DST', 'GL_BLEND_SRC', 'GL_BLEND', 'GL_LOGIC_OP_MODE', -'GL_INDEX_LOGIC_OP', 'GL_LOGIC_OP', 'GL_COLOR_LOGIC_OP', 'GL_AUX_BUFFERS', -'GL_DRAW_BUFFER', 'GL_READ_BUFFER', 'GL_SCISSOR_BOX', 'GL_SCISSOR_TEST', -'GL_INDEX_CLEAR_VALUE', 'GL_INDEX_WRITEMASK', 'GL_COLOR_CLEAR_VALUE', -'GL_COLOR_WRITEMASK', 'GL_INDEX_MODE', 'GL_RGBA_MODE', 'GL_DOUBLEBUFFER', -'GL_STEREO', 'GL_RENDER_MODE', 'GL_PERSPECTIVE_CORRECTION_HINT', -'GL_POINT_SMOOTH_HINT', 'GL_LINE_SMOOTH_HINT', 'GL_POLYGON_SMOOTH_HINT', -'GL_FOG_HINT', 'GL_TEXTURE_GEN_S', 'GL_TEXTURE_GEN_T', 'GL_TEXTURE_GEN_R', -'GL_TEXTURE_GEN_Q', 'GL_PIXEL_MAP_I_TO_I_SIZE', 'GL_PIXEL_MAP_S_TO_S_SIZE', -'GL_PIXEL_MAP_I_TO_R_SIZE', 'GL_PIXEL_MAP_I_TO_G_SIZE', -'GL_PIXEL_MAP_I_TO_B_SIZE', 'GL_PIXEL_MAP_I_TO_A_SIZE', -'GL_PIXEL_MAP_R_TO_R_SIZE', 'GL_PIXEL_MAP_G_TO_G_SIZE', -'GL_PIXEL_MAP_B_TO_B_SIZE', 'GL_PIXEL_MAP_A_TO_A_SIZE', -'GL_UNPACK_SWAP_BYTES', 'GL_UNPACK_LSB_FIRST', 'GL_UNPACK_ROW_LENGTH', -'GL_UNPACK_SKIP_ROWS', 'GL_UNPACK_SKIP_PIXELS', 'GL_UNPACK_ALIGNMENT', -'GL_PACK_SWAP_BYTES', 'GL_PACK_LSB_FIRST', 'GL_PACK_ROW_LENGTH', -'GL_PACK_SKIP_ROWS', 'GL_PACK_SKIP_PIXELS', 'GL_PACK_ALIGNMENT', -'GL_MAP_COLOR', 'GL_MAP_STENCIL', 'GL_INDEX_SHIFT', 'GL_INDEX_OFFSET', -'GL_RED_SCALE', 'GL_RED_BIAS', 'GL_ZOOM_X', 'GL_ZOOM_Y', 'GL_GREEN_SCALE', -'GL_GREEN_BIAS', 'GL_BLUE_SCALE', 'GL_BLUE_BIAS', 'GL_ALPHA_SCALE', -'GL_ALPHA_BIAS', 'GL_DEPTH_SCALE', 'GL_DEPTH_BIAS', 'GL_MAX_EVAL_ORDER', -'GL_MAX_LIGHTS', 'GL_MAX_CLIP_PLANES', 'GL_MAX_TEXTURE_SIZE', -'GL_MAX_PIXEL_MAP_TABLE', 'GL_MAX_ATTRIB_STACK_DEPTH', -'GL_MAX_MODELVIEW_STACK_DEPTH', 'GL_MAX_NAME_STACK_DEPTH', -'GL_MAX_PROJECTION_STACK_DEPTH', 'GL_MAX_TEXTURE_STACK_DEPTH', -'GL_MAX_VIEWPORT_DIMS', 'GL_MAX_CLIENT_ATTRIB_STACK_DEPTH', -'GL_SUBPIXEL_BITS', 'GL_INDEX_BITS', 'GL_RED_BITS', 'GL_GREEN_BITS', -'GL_BLUE_BITS', 'GL_ALPHA_BITS', 'GL_DEPTH_BITS', 'GL_STENCIL_BITS', -'GL_ACCUM_RED_BITS', 'GL_ACCUM_GREEN_BITS', 'GL_ACCUM_BLUE_BITS', -'GL_ACCUM_ALPHA_BITS', 'GL_NAME_STACK_DEPTH', 'GL_AUTO_NORMAL', -'GL_MAP1_COLOR_4', 'GL_MAP1_INDEX', 'GL_MAP1_NORMAL', -'GL_MAP1_TEXTURE_COORD_1', 'GL_MAP1_TEXTURE_COORD_2', -'GL_MAP1_TEXTURE_COORD_3', 'GL_MAP1_TEXTURE_COORD_4', 'GL_MAP1_VERTEX_3', -'GL_MAP1_VERTEX_4', 'GL_MAP2_COLOR_4', 'GL_MAP2_INDEX', 'GL_MAP2_NORMAL', -'GL_MAP2_TEXTURE_COORD_1', 'GL_MAP2_TEXTURE_COORD_2', -'GL_MAP2_TEXTURE_COORD_3', 'GL_MAP2_TEXTURE_COORD_4', 'GL_MAP2_VERTEX_3', -'GL_MAP2_VERTEX_4', 'GL_MAP1_GRID_DOMAIN', 'GL_MAP1_GRID_SEGMENTS', -'GL_MAP2_GRID_DOMAIN', 'GL_MAP2_GRID_SEGMENTS', 'GL_TEXTURE_1D', -'GL_TEXTURE_2D', 'GL_FEEDBACK_BUFFER_POINTER', 'GL_FEEDBACK_BUFFER_SIZE', -'GL_FEEDBACK_BUFFER_TYPE', 'GL_SELECTION_BUFFER_POINTER', -'GL_SELECTION_BUFFER_SIZE', 'GL_POLYGON_OFFSET_UNITS', -'GL_POLYGON_OFFSET_POINT', 'GL_POLYGON_OFFSET_LINE', 'GL_POLYGON_OFFSET_FILL', -'GL_POLYGON_OFFSET_FACTOR', 'GL_TEXTURE_BINDING_1D', 'GL_TEXTURE_BINDING_2D', -'GL_TEXTURE_BINDING_3D', 'GL_VERTEX_ARRAY', 'GL_NORMAL_ARRAY', -'GL_COLOR_ARRAY', 'GL_INDEX_ARRAY', 'GL_TEXTURE_COORD_ARRAY', -'GL_EDGE_FLAG_ARRAY', 'GL_VERTEX_ARRAY_SIZE', 'GL_VERTEX_ARRAY_TYPE', -'GL_VERTEX_ARRAY_STRIDE', 'GL_NORMAL_ARRAY_TYPE', 'GL_NORMAL_ARRAY_STRIDE', -'GL_COLOR_ARRAY_SIZE', 'GL_COLOR_ARRAY_TYPE', 'GL_COLOR_ARRAY_STRIDE', -'GL_INDEX_ARRAY_TYPE', 'GL_INDEX_ARRAY_STRIDE', 'GL_TEXTURE_COORD_ARRAY_SIZE', -'GL_TEXTURE_COORD_ARRAY_TYPE', 'GL_TEXTURE_COORD_ARRAY_STRIDE', -'GL_EDGE_FLAG_ARRAY_STRIDE', 'GL_TEXTURE_WIDTH', 'GL_TEXTURE_HEIGHT', -'GL_TEXTURE_INTERNAL_FORMAT', 'GL_TEXTURE_COMPONENTS', -'GL_TEXTURE_BORDER_COLOR', 'GL_TEXTURE_BORDER', 'GL_TEXTURE_RED_SIZE', -'GL_TEXTURE_GREEN_SIZE', 'GL_TEXTURE_BLUE_SIZE', 'GL_TEXTURE_ALPHA_SIZE', -'GL_TEXTURE_LUMINANCE_SIZE', 'GL_TEXTURE_INTENSITY_SIZE', -'GL_TEXTURE_PRIORITY', 'GL_TEXTURE_RESIDENT', 'GL_DONT_CARE', 'GL_FASTEST', -'GL_NICEST', 'GL_AMBIENT', 'GL_DIFFUSE', 'GL_SPECULAR', 'GL_POSITION', -'GL_SPOT_DIRECTION', 'GL_SPOT_EXPONENT', 'GL_SPOT_CUTOFF', -'GL_CONSTANT_ATTENUATION', 'GL_LINEAR_ATTENUATION', -'GL_QUADRATIC_ATTENUATION', 'GL_COMPILE', 'GL_COMPILE_AND_EXECUTE', 'GL_BYTE', -'GL_UNSIGNED_BYTE', 'GL_SHORT', 'GL_UNSIGNED_SHORT', 'GL_INT', -'GL_UNSIGNED_INT', 'GL_FLOAT', 'GL_2_BYTES', 'GL_3_BYTES', 'GL_4_BYTES', -'GL_DOUBLE', 'GL_DOUBLE_EXT', 'GL_CLEAR', 'GL_AND', 'GL_AND_REVERSE', -'GL_COPY', 'GL_AND_INVERTED', 'GL_NOOP', 'GL_XOR', 'GL_OR', 'GL_NOR', -'GL_EQUIV', 'GL_INVERT', 'GL_OR_REVERSE', 'GL_COPY_INVERTED', -'GL_OR_INVERTED', 'GL_NAND', 'GL_SET', 'GL_EMISSION', 'GL_SHININESS', -'GL_AMBIENT_AND_DIFFUSE', 'GL_COLOR_INDEXES', 'GL_MODELVIEW', 'GL_PROJECTION', -'GL_TEXTURE', 'GL_COLOR', 'GL_DEPTH', 'GL_STENCIL', 'GL_COLOR_INDEX', -'GL_STENCIL_INDEX', 'GL_DEPTH_COMPONENT', 'GL_RED', 'GL_GREEN', 'GL_BLUE', -'GL_ALPHA', 'GL_RGB', 'GL_RGBA', 'GL_LUMINANCE', 'GL_LUMINANCE_ALPHA', -'GL_BITMAP', 'GL_POINT', 'GL_LINE', 'GL_FILL', 'GL_RENDER', 'GL_FEEDBACK', -'GL_SELECT', 'GL_FLAT', 'GL_SMOOTH', 'GL_KEEP', 'GL_REPLACE', 'GL_INCR', -'GL_DECR', 'GL_VENDOR', 'GL_RENDERER', 'GL_VERSION', 'GL_EXTENSIONS', 'GL_S', -'GL_T', 'GL_R', 'GL_Q', 'GL_MODULATE', 'GL_DECAL', 'GL_TEXTURE_ENV_MODE', -'GL_TEXTURE_ENV_COLOR', 'GL_TEXTURE_ENV', 'GL_EYE_LINEAR', 'GL_OBJECT_LINEAR', -'GL_SPHERE_MAP', 'GL_TEXTURE_GEN_MODE', 'GL_OBJECT_PLANE', 'GL_EYE_PLANE', -'GL_NEAREST', 'GL_LINEAR', 'GL_NEAREST_MIPMAP_NEAREST', -'GL_LINEAR_MIPMAP_NEAREST', 'GL_NEAREST_MIPMAP_LINEAR', -'GL_LINEAR_MIPMAP_LINEAR', 'GL_TEXTURE_MAG_FILTER', 'GL_TEXTURE_MIN_FILTER', -'GL_TEXTURE_WRAP_S', 'GL_TEXTURE_WRAP_T', 'GL_PROXY_TEXTURE_1D', -'GL_PROXY_TEXTURE_2D', 'GL_CLAMP', 'GL_REPEAT', 'GL_R3_G3_B2', 'GL_ALPHA4', -'GL_ALPHA8', 'GL_ALPHA12', 'GL_ALPHA16', 'GL_LUMINANCE4', 'GL_LUMINANCE8', -'GL_LUMINANCE12', 'GL_LUMINANCE16', 'GL_LUMINANCE4_ALPHA4', -'GL_LUMINANCE6_ALPHA2', 'GL_LUMINANCE8_ALPHA8', 'GL_LUMINANCE12_ALPHA4', -'GL_LUMINANCE12_ALPHA12', 'GL_LUMINANCE16_ALPHA16', 'GL_INTENSITY', -'GL_INTENSITY4', 'GL_INTENSITY8', 'GL_INTENSITY12', 'GL_INTENSITY16', -'GL_RGB4', 'GL_RGB5', 'GL_RGB8', 'GL_RGB10', 'GL_RGB12', 'GL_RGB16', -'GL_RGBA2', 'GL_RGBA4', 'GL_RGB5_A1', 'GL_RGBA8', 'GL_RGB10_A2', 'GL_RGBA12', -'GL_RGBA16', 'GL_V2F', 'GL_V3F', 'GL_C4UB_V2F', 'GL_C4UB_V3F', 'GL_C3F_V3F', -'GL_N3F_V3F', 'GL_C4F_N3F_V3F', 'GL_T2F_V3F', 'GL_T4F_V4F', 'GL_T2F_C4UB_V3F', -'GL_T2F_C3F_V3F', 'GL_T2F_N3F_V3F', 'GL_T2F_C4F_N3F_V3F', -'GL_T4F_C4F_N3F_V4F', 'GL_CLIP_PLANE0', 'GL_CLIP_PLANE1', 'GL_CLIP_PLANE2', -'GL_CLIP_PLANE3', 'GL_CLIP_PLANE4', 'GL_CLIP_PLANE5', 'GL_LIGHT0', -'GL_LIGHT1', 'GL_LIGHT2', 'GL_LIGHT3', 'GL_LIGHT4', 'GL_LIGHT5', 'GL_LIGHT6', -'GL_LIGHT7', 'GL_ABGR_EXT', 'GL_FUNC_SUBTRACT_EXT', -'GL_FUNC_REVERSE_SUBTRACT_EXT', 'GL_UNSIGNED_BYTE_3_3_2_EXT', -'GL_UNSIGNED_SHORT_4_4_4_4_EXT', 'GL_UNSIGNED_SHORT_5_5_5_1_EXT', -'GL_UNSIGNED_INT_8_8_8_8_EXT', 'GL_UNSIGNED_INT_10_10_10_2_EXT', -'GL_PACK_SKIP_IMAGES', 'GL_PACK_IMAGE_HEIGHT', 'GL_UNPACK_SKIP_IMAGES', -'GL_UNPACK_IMAGE_HEIGHT', 'GL_TEXTURE_3D', 'GL_PROXY_TEXTURE_3D', -'GL_TEXTURE_DEPTH', 'GL_TEXTURE_WRAP_R', 'GL_MAX_3D_TEXTURE_SIZE', 'GL_BGR', -'GL_BGRA', 'GL_UNSIGNED_BYTE_3_3_2', 'GL_UNSIGNED_BYTE_2_3_3_REV', -'GL_UNSIGNED_SHORT_5_6_5', 'GL_UNSIGNED_SHORT_5_6_5_REV', -'GL_UNSIGNED_SHORT_4_4_4_4', 'GL_UNSIGNED_SHORT_4_4_4_4_REV', -'GL_UNSIGNED_SHORT_5_5_5_1', 'GL_UNSIGNED_SHORT_1_5_5_5_REV', -'GL_UNSIGNED_INT_8_8_8_8', 'GL_UNSIGNED_INT_8_8_8_8_REV', -'GL_UNSIGNED_INT_10_10_10_2', 'GL_UNSIGNED_INT_2_10_10_10_REV', -'GL_RESCALE_NORMAL', 'GL_LIGHT_MODEL_COLOR_CONTROL', 'GL_SINGLE_COLOR', -'GL_SEPARATE_SPECULAR_COLOR', 'GL_CLAMP_TO_EDGE', 'GL_TEXTURE_MIN_LOD', -'GL_TEXTURE_MAX_LOD', 'GL_TEXTURE_BASE_LEVEL', 'GL_TEXTURE_MAX_LEVEL', -'GL_MAX_ELEMENTS_VERTICES', 'GL_MAX_ELEMENTS_INDICES', -'GL_ALIASED_POINT_SIZE_RANGE', 'GL_ALIASED_LINE_WIDTH_RANGE', -'GL_ACTIVE_TEXTURE', 'GL_CLIENT_ACTIVE_TEXTURE', 'GL_MAX_TEXTURE_UNITS', -'GL_TEXTURE0', 'GL_TEXTURE1', 'GL_TEXTURE2', 'GL_TEXTURE3', 'GL_TEXTURE4', -'GL_TEXTURE5', 'GL_TEXTURE6', 'GL_TEXTURE7', 'GL_TEXTURE8', 'GL_TEXTURE9', -'GL_TEXTURE10', 'GL_TEXTURE11', 'GL_TEXTURE12', 'GL_TEXTURE13', -'GL_TEXTURE14', 'GL_TEXTURE15', 'GL_TEXTURE16', 'GL_TEXTURE17', -'GL_TEXTURE18', 'GL_TEXTURE19', 'GL_TEXTURE20', 'GL_TEXTURE21', -'GL_TEXTURE22', 'GL_TEXTURE23', 'GL_TEXTURE24', 'GL_TEXTURE25', -'GL_TEXTURE26', 'GL_TEXTURE27', 'GL_TEXTURE28', 'GL_TEXTURE29', -'GL_TEXTURE30', 'GL_TEXTURE31', 'GL_NORMAL_MAP', 'GL_REFLECTION_MAP', -'GL_TEXTURE_CUBE_MAP', 'GL_TEXTURE_BINDING_CUBE_MAP', -'GL_TEXTURE_CUBE_MAP_POSITIVE_X', 'GL_TEXTURE_CUBE_MAP_NEGATIVE_X', -'GL_TEXTURE_CUBE_MAP_POSITIVE_Y', 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', -'GL_TEXTURE_CUBE_MAP_POSITIVE_Z', 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', -'GL_PROXY_TEXTURE_CUBE_MAP', 'GL_MAX_CUBE_MAP_TEXTURE_SIZE', 'GL_COMBINE', -'GL_COMBINE_RGB', 'GL_COMBINE_ALPHA', 'GL_RGB_SCALE', 'GL_ADD_SIGNED', -'GL_INTERPOLATE', 'GL_CONSTANT', 'GL_PRIMARY_COLOR', 'GL_PREVIOUS', -'GL_SOURCE0_RGB', 'GL_SOURCE1_RGB', 'GL_SOURCE2_RGB', 'GL_SOURCE0_ALPHA', -'GL_SOURCE1_ALPHA', 'GL_SOURCE2_ALPHA', 'GL_OPERAND0_RGB', 'GL_OPERAND1_RGB', -'GL_OPERAND2_RGB', 'GL_OPERAND0_ALPHA', 'GL_OPERAND1_ALPHA', -'GL_OPERAND2_ALPHA', 'GL_SUBTRACT', 'GL_TRANSPOSE_MODELVIEW_MATRIX', -'GL_TRANSPOSE_PROJECTION_MATRIX', 'GL_TRANSPOSE_TEXTURE_MATRIX', -'GL_TRANSPOSE_COLOR_MATRIX', 'GL_COMPRESSED_ALPHA', 'GL_COMPRESSED_LUMINANCE', -'GL_COMPRESSED_LUMINANCE_ALPHA', 'GL_COMPRESSED_INTENSITY', -'GL_COMPRESSED_RGB', 'GL_COMPRESSED_RGBA', 'GL_TEXTURE_COMPRESSION_HINT', -'GL_TEXTURE_COMPRESSED_IMAGE_SIZE', 'GL_TEXTURE_COMPRESSED', -'GL_NUM_COMPRESSED_TEXTURE_FORMATS', 'GL_COMPRESSED_TEXTURE_FORMATS', -'GL_DOT3_RGB', 'GL_DOT3_RGBA', 'GL_CLAMP_TO_BORDER', 'GL_MULTISAMPLE', -'GL_SAMPLE_ALPHA_TO_COVERAGE', 'GL_SAMPLE_ALPHA_TO_ONE', 'GL_SAMPLE_COVERAGE', -'GL_SAMPLE_BUFFERS', 'GL_SAMPLES', 'GL_SAMPLE_COVERAGE_VALUE', -'GL_SAMPLE_COVERAGE_INVERT', 'GL_MULTISAMPLE_BIT', 'GL_VERTEX_ARRAY_EXT', -'GL_NORMAL_ARRAY_EXT', 'GL_COLOR_ARRAY_EXT', 'GL_INDEX_ARRAY_EXT', -'GL_TEXTURE_COORD_ARRAY_EXT', 'GL_EDGE_FLAG_ARRAY_EXT', -'GL_VERTEX_ARRAY_SIZE_EXT', 'GL_VERTEX_ARRAY_TYPE_EXT', -'GL_VERTEX_ARRAY_STRIDE_EXT', 'GL_VERTEX_ARRAY_COUNT_EXT', -'GL_NORMAL_ARRAY_TYPE_EXT', 'GL_NORMAL_ARRAY_STRIDE_EXT', -'GL_NORMAL_ARRAY_COUNT_EXT', 'GL_COLOR_ARRAY_SIZE_EXT', -'GL_COLOR_ARRAY_TYPE_EXT', 'GL_COLOR_ARRAY_STRIDE_EXT', -'GL_COLOR_ARRAY_COUNT_EXT', 'GL_INDEX_ARRAY_TYPE_EXT', -'GL_INDEX_ARRAY_STRIDE_EXT', 'GL_INDEX_ARRAY_COUNT_EXT', -'GL_TEXTURE_COORD_ARRAY_SIZE_EXT', 'GL_TEXTURE_COORD_ARRAY_TYPE_EXT', -'GL_TEXTURE_COORD_ARRAY_STRIDE_EXT', 'GL_TEXTURE_COORD_ARRAY_COUNT_EXT', -'GL_EDGE_FLAG_ARRAY_STRIDE_EXT', 'GL_EDGE_FLAG_ARRAY_COUNT_EXT', -'GL_VERTEX_ARRAY_POINTER_EXT', 'GL_NORMAL_ARRAY_POINTER_EXT', -'GL_COLOR_ARRAY_POINTER_EXT', 'GL_INDEX_ARRAY_POINTER_EXT', -'GL_TEXTURE_COORD_ARRAY_POINTER_EXT', 'GL_EDGE_FLAG_ARRAY_POINTER_EXT', -'GL_TEXTURE_MIN_LOD_SGIS', 'GL_TEXTURE_MAX_LOD_SGIS', -'GL_TEXTURE_BASE_LEVEL_SGIS', 'GL_TEXTURE_MAX_LEVEL_SGIS', -'GL_SHARED_TEXTURE_PALETTE_EXT', 'GL_RESCALE_NORMAL_EXT', -'GL_TEXTURE_COMPARE_SGIX', 'GL_TEXTURE_COMPARE_OPERATOR_SGIX', -'GL_TEXTURE_LEQUAL_R_SGIX', 'GL_TEXTURE_GEQUAL_R_SGIX', -'GL_DEPTH_COMPONENT16_SGIX', 'GL_DEPTH_COMPONENT24_SGIX', -'GL_DEPTH_COMPONENT32_SGIX', 'GL_GENERATE_MIPMAP_SGIS', -'GL_GENERATE_MIPMAP_HINT_SGIS', 'GL_POINT_SIZE_MIN', 'GL_POINT_SIZE_MAX', -'GL_POINT_FADE_THRESHOLD_SIZE', 'GL_POINT_DISTANCE_ATTENUATION', -'GL_FOG_COORDINATE_SOURCE', 'GL_FOG_COORDINATE', 'GL_FRAGMENT_DEPTH', -'GL_CURRENT_FOG_COORDINATE', 'GL_FOG_COORDINATE_ARRAY_TYPE', -'GL_FOG_COORDINATE_ARRAY_STRIDE', 'GL_FOG_COORDINATE_ARRAY_POINTER', -'GL_FOG_COORDINATE_ARRAY', 'GL_COLOR_SUM', 'GL_CURRENT_SECONDARY_COLOR', -'GL_SECONDARY_COLOR_ARRAY_SIZE', 'GL_SECONDARY_COLOR_ARRAY_TYPE', -'GL_SECONDARY_COLOR_ARRAY_STRIDE', 'GL_SECONDARY_COLOR_ARRAY_POINTER', -'GL_SECONDARY_COLOR_ARRAY', 'GL_INCR_WRAP', 'GL_DECR_WRAP', -'GL_MAX_TEXTURE_LOD_BIAS', 'GL_TEXTURE_FILTER_CONTROL', 'GL_TEXTURE_LOD_BIAS', -'GL_GENERATE_MIPMAP', 'GL_GENERATE_MIPMAP_HINT', 'GL_BLEND_DST_RGB', -'GL_BLEND_SRC_RGB', 'GL_BLEND_DST_ALPHA', 'GL_BLEND_SRC_ALPHA', -'GL_MIRRORED_REPEAT', 'GL_DEPTH_COMPONENT16', 'GL_DEPTH_COMPONENT24', -'GL_DEPTH_COMPONENT32', 'GL_TEXTURE_DEPTH_SIZE', 'GL_DEPTH_TEXTURE_MODE', -'GL_TEXTURE_COMPARE_MODE', 'GL_TEXTURE_COMPARE_FUNC', -'GL_COMPARE_R_TO_TEXTURE', 'glAccum', 'glAlphaFunc', 'glAreTexturesResident', -'glArrayElement', 'glBegin', 'glBindTexture', 'glBitmap', 'glBlendFunc', -'glCallList', 'glCallLists', 'glClear', 'glClearAccum', 'glClearColor', -'glClearDepth', 'glClearIndex', 'glClearStencil', 'glClipPlane', 'glColor3b', -'glColor3bv', 'glColor3d', 'glColor3dv', 'glColor3f', 'glColor3fv', -'glColor3i', 'glColor3iv', 'glColor3s', 'glColor3sv', 'glColor3ub', -'glColor3ubv', 'glColor3ui', 'glColor3uiv', 'glColor3us', 'glColor3usv', -'glColor4b', 'glColor4bv', 'glColor4d', 'glColor4dv', 'glColor4f', -'glColor4fv', 'glColor4i', 'glColor4iv', 'glColor4s', 'glColor4sv', -'glColor4ub', 'glColor4ubv', 'glColor4ui', 'glColor4uiv', 'glColor4us', -'glColor4usv', 'glColorMask', 'glColorMaterial', 'glColorPointer', -'glCopyPixels', 'glCopyTexImage1D', 'glCopyTexImage2D', 'glCopyTexSubImage1D', -'glCopyTexSubImage2D', 'glCullFace', 'glDeleteLists', 'glDeleteTextures', -'glDepthFunc', 'glDepthMask', 'glDepthRange', 'glDisable', -'glDisableClientState', 'glDrawArrays', 'glDrawBuffer', 'glDrawElements', -'glDrawPixels', 'glEdgeFlag', 'glEdgeFlagPointer', 'glEdgeFlagv', 'glEnable', -'glEnableClientState', 'glEnd', 'glEndList', 'glEvalCoord1d', -'glEvalCoord1dv', 'glEvalCoord1f', 'glEvalCoord1fv', 'glEvalCoord2d', -'glEvalCoord2dv', 'glEvalCoord2f', 'glEvalCoord2fv', 'glEvalMesh1', -'glEvalMesh2', 'glEvalPoint1', 'glEvalPoint2', 'glFeedbackBuffer', 'glFinish', -'glFlush', 'glFogf', 'glFogfv', 'glFogi', 'glFogiv', 'glFrontFace', -'glFrustum', 'glGenLists', 'glGenTextures', 'glGetBooleanv', 'glGetClipPlane', -'glGetDoublev', 'glGetError', 'glGetFloatv', 'glGetIntegerv', 'glGetLightfv', -'glGetLightiv', 'glGetMapdv', 'glGetMapfv', 'glGetMapiv', 'glGetMaterialfv', -'glGetMaterialiv', 'glGetPixelMapfv', 'glGetPixelMapuiv', 'glGetPixelMapusv', -'glGetPointerv', 'glGetPolygonStipple', 'glGetString', 'glGetTexEnvfv', -'glGetTexEnviv', 'glGetTexGendv', 'glGetTexGenfv', 'glGetTexGeniv', -'glGetTexImage', 'glGetTexLevelParameterfv', 'glGetTexLevelParameteriv', -'glGetTexParameterfv', 'glGetTexParameteriv', 'glHint', 'glIndexMask', -'glIndexPointer', 'glIndexd', 'glIndexdv', 'glIndexf', 'glIndexfv', -'glIndexi', 'glIndexiv', 'glIndexs', 'glIndexsv', 'glIndexub', 'glIndexubv', -'glInitNames', 'glInterleavedArrays', 'glIsEnabled', 'glIsList', -'glIsTexture', 'glLightModelf', 'glLightModelfv', 'glLightModeli', -'glLightModeliv', 'glLightf', 'glLightfv', 'glLighti', 'glLightiv', -'glLineStipple', 'glLineWidth', 'glListBase', 'glLoadIdentity', -'glLoadMatrixd', 'glLoadMatrixf', 'glLoadName', 'glLogicOp', 'glMap1d', -'glMap1f', 'glMap2d', 'glMap2f', 'glMapGrid1d', 'glMapGrid1f', 'glMapGrid2d', -'glMapGrid2f', 'glMaterialf', 'glMaterialfv', 'glMateriali', 'glMaterialiv', -'glMatrixMode', 'glMultMatrixd', 'glMultMatrixf', 'glNewList', 'glNormal3b', -'glNormal3bv', 'glNormal3d', 'glNormal3dv', 'glNormal3f', 'glNormal3fv', -'glNormal3i', 'glNormal3iv', 'glNormal3s', 'glNormal3sv', 'glNormalPointer', -'glOrtho', 'glPassThrough', 'glPixelMapfv', 'glPixelMapuiv', 'glPixelMapusv', -'glPixelStoref', 'glPixelStorei', 'glPixelTransferf', 'glPixelTransferi', -'glPixelZoom', 'glPointSize', 'glPolygonMode', 'glPolygonOffset', -'glPolygonStipple', 'glPopAttrib', 'glPopClientAttrib', 'glPopMatrix', -'glPopName', 'glPrioritizeTextures', 'glPushAttrib', 'glPushClientAttrib', -'glPushMatrix', 'glPushName', 'glRasterPos2d', 'glRasterPos2dv', -'glRasterPos2f', 'glRasterPos2fv', 'glRasterPos2i', 'glRasterPos2iv', -'glRasterPos2s', 'glRasterPos2sv', 'glRasterPos3d', 'glRasterPos3dv', -'glRasterPos3f', 'glRasterPos3fv', 'glRasterPos3i', 'glRasterPos3iv', -'glRasterPos3s', 'glRasterPos3sv', 'glRasterPos4d', 'glRasterPos4dv', -'glRasterPos4f', 'glRasterPos4fv', 'glRasterPos4i', 'glRasterPos4iv', -'glRasterPos4s', 'glRasterPos4sv', 'glReadBuffer', 'glReadPixels', 'glRectd', -'glRectdv', 'glRectf', 'glRectfv', 'glRecti', 'glRectiv', 'glRects', -'glRectsv', 'glRenderMode', 'glRotated', 'glRotatef', 'glScaled', 'glScalef', -'glScissor', 'glSelectBuffer', 'glShadeModel', 'glStencilFunc', -'glStencilMask', 'glStencilOp', 'glTexCoord1d', 'glTexCoord1dv', -'glTexCoord1f', 'glTexCoord1fv', 'glTexCoord1i', 'glTexCoord1iv', -'glTexCoord1s', 'glTexCoord1sv', 'glTexCoord2d', 'glTexCoord2dv', -'glTexCoord2f', 'glTexCoord2fv', 'glTexCoord2i', 'glTexCoord2iv', -'glTexCoord2s', 'glTexCoord2sv', 'glTexCoord3d', 'glTexCoord3dv', -'glTexCoord3f', 'glTexCoord3fv', 'glTexCoord3i', 'glTexCoord3iv', -'glTexCoord3s', 'glTexCoord3sv', 'glTexCoord4d', 'glTexCoord4dv', -'glTexCoord4f', 'glTexCoord4fv', 'glTexCoord4i', 'glTexCoord4iv', -'glTexCoord4s', 'glTexCoord4sv', 'glTexCoordPointer', 'glTexEnvf', -'glTexEnvfv', 'glTexEnvi', 'glTexEnviv', 'glTexGend', 'glTexGendv', -'glTexGenf', 'glTexGenfv', 'glTexGeni', 'glTexGeniv', 'glTexImage1D', -'glTexImage2D', 'glTexParameterf', 'glTexParameterfv', 'glTexParameteri', -'glTexParameteriv', 'glTexSubImage1D', 'glTexSubImage2D', 'glTranslated', -'glTranslatef', 'glVertex2d', 'glVertex2dv', 'glVertex2f', 'glVertex2fv', -'glVertex2i', 'glVertex2iv', 'glVertex2s', 'glVertex2sv', 'glVertex3d', -'glVertex3dv', 'glVertex3f', 'glVertex3fv', 'glVertex3i', 'glVertex3iv', -'glVertex3s', 'glVertex3sv', 'glVertex4d', 'glVertex4dv', 'glVertex4f', -'glVertex4fv', 'glVertex4i', 'glVertex4iv', 'glVertex4s', 'glVertex4sv', -'glVertexPointer', 'glViewport'] -# END GENERATED CONTENT (do not edit above this line) - - - - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLU/old__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLU/old__init__.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLU/old__init__.py 2007-12-30 22:26:48.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/raw/GLU/old__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,806 +0,0 @@ -# -*- coding: iso-8859-1 -*- -"""Raw (C-style) API for OpenGL.GLU - -Automatically generated by the generateraw script, do not edit! -""" -from OpenGL.raw.GLU.constants import * - -from ctypes import * -from OpenGL import platform, arrays -from OpenGL.constant import Constant -from OpenGL import constants as GLconstants -GLvoid = GLconstants.GLvoid - -FUNCTION_TYPE = platform.PLATFORM.functionTypeFor( platform.GLU ) -from OpenGL.constants import GLint -from OpenGL.constants import GLenum -from OpenGL.constants import GLsizei -from OpenGL.constants import GLboolean -from OpenGL.constants import GLubyte -from OpenGL.constants import GLdouble -from OpenGL.constants import GLfloat - - -class GLUnurbs(Structure): - pass -GLUnurbs._fields_ = [ - # /usr/include/GL/glu.h 257 -] -GLUnurbsObj = GLUnurbs -class GLUquadric(Structure): - pass -GLUquadric._fields_ = [ - # /usr/include/GL/glu.h 258 -] -GLUquadricObj = GLUquadric -class GLUtesselator(Structure): - pass -GLUtesselator._fields_ = [ - # /usr/include/GL/glu.h 259 -] -GLUtesselatorObj = GLUtesselator -GLUtriangulatorObj = GLUtesselator - - -# /usr/include/GL/glu.h 276 -gluBeginCurve = platform.createBaseFunction( - 'gluBeginCurve', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluBeginCurve( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 277 -gluBeginPolygon = platform.createBaseFunction( - 'gluBeginPolygon', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluBeginPolygon( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 278 -gluBeginSurface = platform.createBaseFunction( - 'gluBeginSurface', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluBeginSurface( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 279 -gluBeginTrim = platform.createBaseFunction( - 'gluBeginTrim', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluBeginTrim( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 280 -gluBuild1DMipmapLevels = platform.createBaseFunction( - 'gluBuild1DMipmapLevels', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLenum,GLenum,GLint,GLint,GLint,c_void_p], - doc='gluBuild1DMipmapLevels( GLenum(target), GLint(internalFormat), GLsizei(width), GLenum(format), GLenum(type), GLint(level), GLint(base), GLint(max), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'format', 'type', 'level', 'base', 'max', 'data'), -) - - -# /usr/include/GL/glu.h 281 -gluBuild1DMipmaps = platform.createBaseFunction( - 'gluBuild1DMipmaps', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLenum,GLenum,c_void_p], - doc='gluBuild1DMipmaps( GLenum(target), GLint(internalFormat), GLsizei(width), GLenum(format), GLenum(type), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'format', 'type', 'data'), -) - - -# /usr/include/GL/glu.h 282 -gluBuild2DMipmapLevels = platform.createBaseFunction( - 'gluBuild2DMipmapLevels', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,c_void_p], - doc='gluBuild2DMipmapLevels( GLenum(target), GLint(internalFormat), GLsizei(width), GLsizei(height), GLenum(format), GLenum(type), GLint(level), GLint(base), GLint(max), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'height', 'format', 'type', 'level', 'base', 'max', 'data'), -) - - -# /usr/include/GL/glu.h 283 -gluBuild2DMipmaps = platform.createBaseFunction( - 'gluBuild2DMipmaps', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,c_void_p], - doc='gluBuild2DMipmaps( GLenum(target), GLint(internalFormat), GLsizei(width), GLsizei(height), GLenum(format), GLenum(type), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'height', 'format', 'type', 'data'), -) - - -# /usr/include/GL/glu.h 284 -gluBuild3DMipmapLevels = platform.createBaseFunction( - 'gluBuild3DMipmapLevels', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,c_void_p], - doc='gluBuild3DMipmapLevels( GLenum(target), GLint(internalFormat), GLsizei(width), GLsizei(height), GLsizei(depth), GLenum(format), GLenum(type), GLint(level), GLint(base), GLint(max), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'height', 'depth', 'format', 'type', 'level', 'base', 'max', 'data'), -) - - -# /usr/include/GL/glu.h 285 -gluBuild3DMipmaps = platform.createBaseFunction( - 'gluBuild3DMipmaps', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,c_void_p], - doc='gluBuild3DMipmaps( GLenum(target), GLint(internalFormat), GLsizei(width), GLsizei(height), GLsizei(depth), GLenum(format), GLenum(type), c_void_p(data) ) -> GLint', - argNames=('target', 'internalFormat', 'width', 'height', 'depth', 'format', 'type', 'data'), -) - - -# /usr/include/GL/glu.h 286 -gluCheckExtension = platform.createBaseFunction( - 'gluCheckExtension', dll=platform.GLU, resultType=GLboolean, - argTypes=[arrays.GLubyteArray,arrays.GLubyteArray], - doc='gluCheckExtension( arrays.GLubyteArray(extName), arrays.GLubyteArray(extString) ) -> GLboolean', - argNames=('extName', 'extString'), -) - - -# /usr/include/GL/glu.h 287 -gluCylinder = platform.createBaseFunction( - 'gluCylinder', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLdouble,GLdouble,GLdouble,GLint,GLint], - doc='gluCylinder( POINTER(GLUquadric)(quad), GLdouble(base), GLdouble(top), GLdouble(height), GLint(slices), GLint(stacks) ) -> None', - argNames=('quad', 'base', 'top', 'height', 'slices', 'stacks'), -) - - -# /usr/include/GL/glu.h 288 -gluDeleteNurbsRenderer = platform.createBaseFunction( - 'gluDeleteNurbsRenderer', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluDeleteNurbsRenderer( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 289 -gluDeleteQuadric = platform.createBaseFunction( - 'gluDeleteQuadric', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric)], - doc='gluDeleteQuadric( POINTER(GLUquadric)(quad) ) -> None', - argNames=('quad',), -) - - -# /usr/include/GL/glu.h 290 -gluDeleteTess = platform.createBaseFunction( - 'gluDeleteTess', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluDeleteTess( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 291 -gluDisk = platform.createBaseFunction( - 'gluDisk', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLdouble,GLdouble,GLint,GLint], - doc='gluDisk( POINTER(GLUquadric)(quad), GLdouble(inner), GLdouble(outer), GLint(slices), GLint(loops) ) -> None', - argNames=('quad', 'inner', 'outer', 'slices', 'loops'), -) - - -# /usr/include/GL/glu.h 292 -gluEndCurve = platform.createBaseFunction( - 'gluEndCurve', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluEndCurve( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 293 -gluEndPolygon = platform.createBaseFunction( - 'gluEndPolygon', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluEndPolygon( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 294 -gluEndSurface = platform.createBaseFunction( - 'gluEndSurface', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluEndSurface( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 295 -gluEndTrim = platform.createBaseFunction( - 'gluEndTrim', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs)], - doc='gluEndTrim( POINTER(GLUnurbs)(nurb) ) -> None', - argNames=('nurb',), -) - - -# /usr/include/GL/glu.h 296 -gluErrorString = platform.createBaseFunction( - 'gluErrorString', dll=platform.GLU, resultType=POINTER(GLubyte), - argTypes=[GLenum], - doc='gluErrorString( GLenum(error) ) -> POINTER(GLubyte)', - argNames=('error',), -) - - -# /usr/include/GL/glu.h 297 -gluGetNurbsProperty = platform.createBaseFunction( - 'gluGetNurbsProperty', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLenum,arrays.GLfloatArray], - doc='gluGetNurbsProperty( POINTER(GLUnurbs)(nurb), GLenum(property), arrays.GLfloatArray(data) ) -> None', - argNames=('nurb', 'property', 'data'), -) - - -# /usr/include/GL/glu.h 298 -gluGetString = platform.createBaseFunction( - 'gluGetString', dll=platform.GLU, resultType=POINTER(GLubyte), - argTypes=[GLenum], - doc='gluGetString( GLenum(name) ) -> POINTER(GLubyte)', - argNames=('name',), -) - - -# /usr/include/GL/glu.h 299 -gluGetTessProperty = platform.createBaseFunction( - 'gluGetTessProperty', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),GLenum,arrays.GLdoubleArray], - doc='gluGetTessProperty( POINTER(GLUtesselator)(tess), GLenum(which), arrays.GLdoubleArray(data) ) -> None', - argNames=('tess', 'which', 'data'), -) - - -# /usr/include/GL/glu.h 300 -gluLoadSamplingMatrices = platform.createBaseFunction( - 'gluLoadSamplingMatrices', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),arrays.GLfloatArray,arrays.GLfloatArray,arrays.GLintArray], - doc='gluLoadSamplingMatrices( POINTER(GLUnurbs)(nurb), arrays.GLfloatArray(model), arrays.GLfloatArray(perspective), arrays.GLintArray(view) ) -> None', - argNames=('nurb', 'model', 'perspective', 'view'), -) - - -# /usr/include/GL/glu.h 301 -gluLookAt = platform.createBaseFunction( - 'gluLookAt', dll=platform.GLU, resultType=None, - argTypes=[GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble], - doc='gluLookAt( GLdouble(eyeX), GLdouble(eyeY), GLdouble(eyeZ), GLdouble(centerX), GLdouble(centerY), GLdouble(centerZ), GLdouble(upX), GLdouble(upY), GLdouble(upZ) ) -> None', - argNames=('eyeX', 'eyeY', 'eyeZ', 'centerX', 'centerY', 'centerZ', 'upX', 'upY', 'upZ'), -) - - -# /usr/include/GL/glu.h 302 -gluNewNurbsRenderer = platform.createBaseFunction( - 'gluNewNurbsRenderer', dll=platform.GLU, resultType=POINTER(GLUnurbs), - argTypes=[], - doc='gluNewNurbsRenderer( ) -> POINTER(GLUnurbs)', - argNames=(), -) - - -# /usr/include/GL/glu.h 303 -gluNewQuadric = platform.createBaseFunction( - 'gluNewQuadric', dll=platform.GLU, resultType=POINTER(GLUquadric), - argTypes=[], - doc='gluNewQuadric( ) -> POINTER(GLUquadric)', - argNames=(), -) - - -# /usr/include/GL/glu.h 304 -gluNewTess = platform.createBaseFunction( - 'gluNewTess', dll=platform.GLU, resultType=POINTER(GLUtesselator), - argTypes=[], - doc='gluNewTess( ) -> POINTER(GLUtesselator)', - argNames=(), -) - - -# /usr/include/GL/glu.h 305 -gluNextContour = platform.createBaseFunction( - 'gluNextContour', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),GLenum], - doc='gluNextContour( POINTER(GLUtesselator)(tess), GLenum(type) ) -> None', - argNames=('tess', 'type'), -) - - -_GLUfuncptr = FUNCTION_TYPE(None) -# /usr/include/GL/glu.h 306 -gluNurbsCallback = platform.createBaseFunction( - 'gluNurbsCallback', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLenum,_GLUfuncptr], - doc='gluNurbsCallback( POINTER(GLUnurbs)(nurb), GLenum(which), _GLUfuncptr(CallBackFunc) ) -> None', - argNames=('nurb', 'which', 'CallBackFunc'), -) - -GLvoid = None -# /usr/include/GL/glu.h 307 -gluNurbsCallbackData = platform.createBaseFunction( - 'gluNurbsCallbackData', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),POINTER(GLvoid)], - doc='gluNurbsCallbackData( POINTER(GLUnurbs)(nurb), POINTER(GLvoid)(userData) ) -> None', - argNames=('nurb', 'userData'), -) - - -# /usr/include/GL/glu.h 308 -gluNurbsCallbackDataEXT = platform.createBaseFunction( - 'gluNurbsCallbackDataEXT', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),POINTER(GLvoid)], - doc='gluNurbsCallbackDataEXT( POINTER(GLUnurbs)(nurb), POINTER(GLvoid)(userData) ) -> None', - argNames=('nurb', 'userData'), -) - - -# /usr/include/GL/glu.h 309 -gluNurbsCurve = platform.createBaseFunction( - 'gluNurbsCurve', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLint,arrays.GLfloatArray,GLint,arrays.GLfloatArray,GLint,GLenum], - doc='gluNurbsCurve( POINTER(GLUnurbs)(nurb), GLint(knotCount), arrays.GLfloatArray(knots), GLint(stride), arrays.GLfloatArray(control), GLint(order), GLenum(type) ) -> None', - argNames=('nurb', 'knotCount', 'knots', 'stride', 'control', 'order', 'type'), -) - - -# /usr/include/GL/glu.h 310 -gluNurbsProperty = platform.createBaseFunction( - 'gluNurbsProperty', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLenum,GLfloat], - doc='gluNurbsProperty( POINTER(GLUnurbs)(nurb), GLenum(property), GLfloat(value) ) -> None', - argNames=('nurb', 'property', 'value'), -) - - -# /usr/include/GL/glu.h 311 -gluNurbsSurface = platform.createBaseFunction( - 'gluNurbsSurface', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLint,arrays.GLfloatArray,GLint,arrays.GLfloatArray,GLint,GLint,arrays.GLfloatArray,GLint,GLint,GLenum], - doc='gluNurbsSurface( POINTER(GLUnurbs)(nurb), GLint(sKnotCount), arrays.GLfloatArray(sKnots), GLint(tKnotCount), arrays.GLfloatArray(tKnots), GLint(sStride), GLint(tStride), arrays.GLfloatArray(control), GLint(sOrder), GLint(tOrder), GLenum(type) ) -> None', - argNames=('nurb', 'sKnotCount', 'sKnots', 'tKnotCount', 'tKnots', 'sStride', 'tStride', 'control', 'sOrder', 'tOrder', 'type'), -) - - -# /usr/include/GL/glu.h 312 -gluOrtho2D = platform.createBaseFunction( - 'gluOrtho2D', dll=platform.GLU, resultType=None, - argTypes=[GLdouble,GLdouble,GLdouble,GLdouble], - doc='gluOrtho2D( GLdouble(left), GLdouble(right), GLdouble(bottom), GLdouble(top) ) -> None', - argNames=('left', 'right', 'bottom', 'top'), -) - - -# /usr/include/GL/glu.h 313 -gluPartialDisk = platform.createBaseFunction( - 'gluPartialDisk', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble], - doc='gluPartialDisk( POINTER(GLUquadric)(quad), GLdouble(inner), GLdouble(outer), GLint(slices), GLint(loops), GLdouble(start), GLdouble(sweep) ) -> None', - argNames=('quad', 'inner', 'outer', 'slices', 'loops', 'start', 'sweep'), -) - - -# /usr/include/GL/glu.h 314 -gluPerspective = platform.createBaseFunction( - 'gluPerspective', dll=platform.GLU, resultType=None, - argTypes=[GLdouble,GLdouble,GLdouble,GLdouble], - doc='gluPerspective( GLdouble(fovy), GLdouble(aspect), GLdouble(zNear), GLdouble(zFar) ) -> None', - argNames=('fovy', 'aspect', 'zNear', 'zFar'), -) - - -# /usr/include/GL/glu.h 315 -gluPickMatrix = platform.createBaseFunction( - 'gluPickMatrix', dll=platform.GLU, resultType=None, - argTypes=[GLdouble,GLdouble,GLdouble,GLdouble,arrays.GLintArray], - doc='gluPickMatrix( GLdouble(x), GLdouble(y), GLdouble(delX), GLdouble(delY), arrays.GLintArray(viewport) ) -> None', - argNames=('x', 'y', 'delX', 'delY', 'viewport'), -) - - -# /usr/include/GL/glu.h 316 -gluProject = platform.createBaseFunction( - 'gluProject', dll=platform.GLU, resultType=GLint, - argTypes=[GLdouble,GLdouble,GLdouble,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLintArray,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLdoubleArray], - doc='gluProject( GLdouble(objX), GLdouble(objY), GLdouble(objZ), arrays.GLdoubleArray(model), arrays.GLdoubleArray(proj), arrays.GLintArray(view), arrays.GLdoubleArray(winX), arrays.GLdoubleArray(winY), arrays.GLdoubleArray(winZ) ) -> GLint', - argNames=('objX', 'objY', 'objZ', 'model', 'proj', 'view', 'winX', 'winY', 'winZ'), -) - - -# /usr/include/GL/glu.h 317 -gluPwlCurve = platform.createBaseFunction( - 'gluPwlCurve', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUnurbs),GLint,arrays.GLfloatArray,GLint,GLenum], - doc='gluPwlCurve( POINTER(GLUnurbs)(nurb), GLint(count), arrays.GLfloatArray(data), GLint(stride), GLenum(type) ) -> None', - argNames=('nurb', 'count', 'data', 'stride', 'type'), -) - - -# /usr/include/GL/glu.h 318 -gluQuadricCallback = platform.createBaseFunction( - 'gluQuadricCallback', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLenum,_GLUfuncptr], - doc='gluQuadricCallback( POINTER(GLUquadric)(quad), GLenum(which), _GLUfuncptr(CallBackFunc) ) -> None', - argNames=('quad', 'which', 'CallBackFunc'), -) - - -# /usr/include/GL/glu.h 319 -gluQuadricDrawStyle = platform.createBaseFunction( - 'gluQuadricDrawStyle', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLenum], - doc='gluQuadricDrawStyle( POINTER(GLUquadric)(quad), GLenum(draw) ) -> None', - argNames=('quad', 'draw'), -) - - -# /usr/include/GL/glu.h 320 -gluQuadricNormals = platform.createBaseFunction( - 'gluQuadricNormals', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLenum], - doc='gluQuadricNormals( POINTER(GLUquadric)(quad), GLenum(normal) ) -> None', - argNames=('quad', 'normal'), -) - - -# /usr/include/GL/glu.h 321 -gluQuadricOrientation = platform.createBaseFunction( - 'gluQuadricOrientation', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLenum], - doc='gluQuadricOrientation( POINTER(GLUquadric)(quad), GLenum(orientation) ) -> None', - argNames=('quad', 'orientation'), -) - - -# /usr/include/GL/glu.h 322 -gluQuadricTexture = platform.createBaseFunction( - 'gluQuadricTexture', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLboolean], - doc='gluQuadricTexture( POINTER(GLUquadric)(quad), GLboolean(texture) ) -> None', - argNames=('quad', 'texture'), -) - - -# /usr/include/GL/glu.h 323 -gluScaleImage = platform.createBaseFunction( - 'gluScaleImage', dll=platform.GLU, resultType=GLint, - argTypes=[GLenum,GLsizei,GLsizei,GLenum,c_void_p,GLsizei,GLsizei,GLenum,POINTER(GLvoid)], - doc='gluScaleImage( GLenum(format), GLsizei(wIn), GLsizei(hIn), GLenum(typeIn), c_void_p(dataIn), GLsizei(wOut), GLsizei(hOut), GLenum(typeOut), POINTER(GLvoid)(dataOut) ) -> GLint', - argNames=('format', 'wIn', 'hIn', 'typeIn', 'dataIn', 'wOut', 'hOut', 'typeOut', 'dataOut'), -) - - -# /usr/include/GL/glu.h 324 -gluSphere = platform.createBaseFunction( - 'gluSphere', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUquadric),GLdouble,GLint,GLint], - doc='gluSphere( POINTER(GLUquadric)(quad), GLdouble(radius), GLint(slices), GLint(stacks) ) -> None', - argNames=('quad', 'radius', 'slices', 'stacks'), -) - - -# /usr/include/GL/glu.h 325 -gluTessBeginContour = platform.createBaseFunction( - 'gluTessBeginContour', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluTessBeginContour( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 326 -gluTessBeginPolygon = platform.createBaseFunction( - 'gluTessBeginPolygon', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),POINTER(GLvoid)], - doc='gluTessBeginPolygon( POINTER(GLUtesselator)(tess), POINTER(GLvoid)(data) ) -> None', - argNames=('tess', 'data'), -) - - -# /usr/include/GL/glu.h 327 -gluTessCallback = platform.createBaseFunction( - 'gluTessCallback', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),GLenum,_GLUfuncptr], - doc='gluTessCallback( POINTER(GLUtesselator)(tess), GLenum(which), _GLUfuncptr(CallBackFunc) ) -> None', - argNames=('tess', 'which', 'CallBackFunc'), -) - - -# /usr/include/GL/glu.h 328 -gluTessEndContour = platform.createBaseFunction( - 'gluTessEndContour', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluTessEndContour( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 329 -gluTessEndPolygon = platform.createBaseFunction( - 'gluTessEndPolygon', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator)], - doc='gluTessEndPolygon( POINTER(GLUtesselator)(tess) ) -> None', - argNames=('tess',), -) - - -# /usr/include/GL/glu.h 330 -gluTessNormal = platform.createBaseFunction( - 'gluTessNormal', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),GLdouble,GLdouble,GLdouble], - doc='gluTessNormal( POINTER(GLUtesselator)(tess), GLdouble(valueX), GLdouble(valueY), GLdouble(valueZ) ) -> None', - argNames=('tess', 'valueX', 'valueY', 'valueZ'), -) - - -# /usr/include/GL/glu.h 331 -gluTessProperty = platform.createBaseFunction( - 'gluTessProperty', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),GLenum,GLdouble], - doc='gluTessProperty( POINTER(GLUtesselator)(tess), GLenum(which), GLdouble(data) ) -> None', - argNames=('tess', 'which', 'data'), -) - - -# /usr/include/GL/glu.h 332 -gluTessVertex = platform.createBaseFunction( - 'gluTessVertex', dll=platform.GLU, resultType=None, - argTypes=[POINTER(GLUtesselator),arrays.GLdoubleArray,POINTER(GLvoid)], - doc='gluTessVertex( POINTER(GLUtesselator)(tess), arrays.GLdoubleArray(location), POINTER(GLvoid)(data) ) -> None', - argNames=('tess', 'location', 'data'), -) - - -# /usr/include/GL/glu.h 333 -gluUnProject = platform.createBaseFunction( - 'gluUnProject', dll=platform.GLU, resultType=GLint, - argTypes=[GLdouble,GLdouble,GLdouble,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLintArray,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLdoubleArray], - doc='gluUnProject( GLdouble(winX), GLdouble(winY), GLdouble(winZ), arrays.GLdoubleArray(model), arrays.GLdoubleArray(proj), arrays.GLintArray(view), arrays.GLdoubleArray(objX), arrays.GLdoubleArray(objY), arrays.GLdoubleArray(objZ) ) -> GLint', - argNames=('winX', 'winY', 'winZ', 'model', 'proj', 'view', 'objX', 'objY', 'objZ'), -) - - -# /usr/include/GL/glu.h 334 -gluUnProject4 = platform.createBaseFunction( - 'gluUnProject4', dll=platform.GLU, resultType=GLint, - argTypes=[GLdouble,GLdouble,GLdouble,GLdouble,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLintArray,GLdouble,GLdouble,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLdoubleArray,arrays.GLdoubleArray], - doc='gluUnProject4( GLdouble(winX), GLdouble(winY), GLdouble(winZ), GLdouble(clipW), arrays.GLdoubleArray(model), arrays.GLdoubleArray(proj), arrays.GLintArray(view), GLdouble(nearVal), GLdouble(farVal), arrays.GLdoubleArray(objX), arrays.GLdoubleArray(objY), arrays.GLdoubleArray(objZ), arrays.GLdoubleArray(objW) ) -> GLint', - argNames=('winX', 'winY', 'winZ', 'clipW', 'model', 'proj', 'view', 'nearVal', 'farVal', 'objX', 'objY', 'objZ', 'objW'), -) - -__all__ = [ - 'GLU_AUTO_LOAD_MATRIX', - 'GLU_BEGIN', - 'GLU_CCW', - 'GLU_CULLING', - 'GLU_CW', - 'GLU_DISPLAY_MODE', - 'GLU_DOMAIN_DISTANCE', - 'GLU_EDGE_FLAG', - 'GLU_END', - 'GLU_ERROR', - 'GLU_EXTENSIONS', - 'GLU_EXTERIOR', - 'GLU_FALSE', - 'GLU_FILL', - 'GLU_FLAT', - 'GLU_INCOMPATIBLE_GL_VERSION', - 'GLU_INSIDE', - 'GLU_INTERIOR', - 'GLU_INVALID_ENUM', - 'GLU_INVALID_OPERATION', - 'GLU_INVALID_VALUE', - 'GLU_LINE', - 'GLU_MAP1_TRIM_2', - 'GLU_MAP1_TRIM_3', - 'GLU_NONE', - 'GLU_NURBS_BEGIN', - 'GLU_NURBS_BEGIN_DATA', - 'GLU_NURBS_BEGIN_DATA_EXT', - 'GLU_NURBS_BEGIN_EXT', - 'GLU_NURBS_COLOR', - 'GLU_NURBS_COLOR_DATA', - 'GLU_NURBS_COLOR_DATA_EXT', - 'GLU_NURBS_COLOR_EXT', - 'GLU_NURBS_END', - 'GLU_NURBS_END_DATA', - 'GLU_NURBS_END_DATA_EXT', - 'GLU_NURBS_END_EXT', - 'GLU_NURBS_ERROR', - 'GLU_NURBS_ERROR1', - '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_ERROR2', - '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_ERROR3', - '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_NURBS_ERROR4', - 'GLU_NURBS_ERROR5', - 'GLU_NURBS_ERROR6', - 'GLU_NURBS_ERROR7', - 'GLU_NURBS_ERROR8', - 'GLU_NURBS_ERROR9', - 'GLU_NURBS_MODE', - 'GLU_NURBS_MODE_EXT', - 'GLU_NURBS_NORMAL', - 'GLU_NURBS_NORMAL_DATA', - 'GLU_NURBS_NORMAL_DATA_EXT', - 'GLU_NURBS_NORMAL_EXT', - 'GLU_NURBS_RENDERER', - 'GLU_NURBS_RENDERER_EXT', - 'GLU_NURBS_TESSELLATOR', - 'GLU_NURBS_TESSELLATOR_EXT', - 'GLU_NURBS_TEXTURE_COORD', - 'GLU_NURBS_TEXTURE_COORD_DATA', - 'GLU_NURBS_TEX_COORD_DATA_EXT', - 'GLU_NURBS_TEX_COORD_EXT', - 'GLU_NURBS_VERTEX', - 'GLU_NURBS_VERTEX_DATA', - 'GLU_NURBS_VERTEX_DATA_EXT', - 'GLU_NURBS_VERTEX_EXT', - 'GLU_OBJECT_PARAMETRIC_ERROR', - 'GLU_OBJECT_PARAMETRIC_ERROR_EXT', - 'GLU_OBJECT_PATH_LENGTH', - 'GLU_OBJECT_PATH_LENGTH_EXT', - 'GLU_OUTLINE_PATCH', - 'GLU_OUTLINE_POLYGON', - 'GLU_OUTSIDE', - 'GLU_OUT_OF_MEMORY', - 'GLU_PARAMETRIC_ERROR', - 'GLU_PARAMETRIC_TOLERANCE', - 'GLU_PATH_LENGTH', - 'GLU_POINT', - 'GLU_SAMPLING_METHOD', - 'GLU_SAMPLING_TOLERANCE', - 'GLU_SILHOUETTE', - 'GLU_SMOOTH', - 'GLU_TESS_BEGIN', - 'GLU_TESS_BEGIN_DATA', - 'GLU_TESS_BOUNDARY_ONLY', - 'GLU_TESS_COMBINE', - 'GLU_TESS_COMBINE_DATA', - 'GLU_TESS_COORD_TOO_LARGE', - 'GLU_TESS_EDGE_FLAG', - 'GLU_TESS_EDGE_FLAG_DATA', - 'GLU_TESS_END', - 'GLU_TESS_END_DATA', - 'GLU_TESS_ERROR', - '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_ERROR_DATA', - 'GLU_TESS_MAX_COORD', - 'GLU_TESS_MISSING_BEGIN_CONTOUR', - 'GLU_TESS_MISSING_BEGIN_POLYGON', - 'GLU_TESS_MISSING_END_CONTOUR', - 'GLU_TESS_MISSING_END_POLYGON', - 'GLU_TESS_NEED_COMBINE_CALLBACK', - 'GLU_TESS_TOLERANCE', - 'GLU_TESS_VERTEX', - 'GLU_TESS_VERTEX_DATA', - 'GLU_TESS_WINDING_ABS_GEQ_TWO', - 'GLU_TESS_WINDING_NEGATIVE', - 'GLU_TESS_WINDING_NONZERO', - 'GLU_TESS_WINDING_ODD', - 'GLU_TESS_WINDING_POSITIVE', - 'GLU_TESS_WINDING_RULE', - 'GLU_TRUE', - 'GLU_UNKNOWN', - 'GLU_U_STEP', - 'GLU_VERSION', - 'GLU_VERSION_1_1', - 'GLU_VERSION_1_2', - 'GLU_VERSION_1_3', - 'GLU_VERTEX', - 'GLU_V_STEP', - 'GLUnurbs', - 'GLUnurbsObj', - 'GLUquadric', - 'GLUquadricObj', - 'GLUtesselator', - 'GLUtesselatorObj', - 'GLUtriangulatorObj', - 'GLboolean', - 'GLdouble', - 'GLenum', - 'GLfloat', - 'GLint', - 'GLsizei', - 'GLubyte', - 'GLvoid', - '_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' -] - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/glu.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/glu.py --- pyopengl-3.0.0~b6/OpenGL/raw/glu.py 2008-08-29 22:30:10.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/glu.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,584 +0,0 @@ -# BEGIN GENERATED CONTENT (do not edit below this line) - -# This content is generated by gengl.py. -# Wrapper for /usr/include/GL/glu.h -from OpenGL import platform -from OpenGL.constants import * -from OpenGL.constant import Constant -from OpenGL.arrays.arraydatatype import * -from ctypes import * -c_void = None - - -GLU_EXT_object_space_tess=Constant( 'GLU_EXT_object_space_tess', 1 ) -GLU_EXT_nurbs_tessellator=Constant( 'GLU_EXT_nurbs_tessellator', 1 ) -GLU_FALSE=Constant( 'GLU_FALSE', 0 ) -GLU_TRUE=Constant( 'GLU_TRUE', 1 ) -GLU_VERSION_1_1=Constant( 'GLU_VERSION_1_1', 1 ) -GLU_VERSION_1_2=Constant( 'GLU_VERSION_1_2', 1 ) -GLU_VERSION_1_3=Constant( 'GLU_VERSION_1_3', 1 ) -GLU_VERSION=Constant( 'GLU_VERSION', 100800 ) -GLU_EXTENSIONS=Constant( 'GLU_EXTENSIONS', 100801 ) -GLU_INVALID_ENUM=Constant( 'GLU_INVALID_ENUM', 100900 ) -GLU_INVALID_VALUE=Constant( 'GLU_INVALID_VALUE', 100901 ) -GLU_OUT_OF_MEMORY=Constant( 'GLU_OUT_OF_MEMORY', 100902 ) -GLU_INCOMPATIBLE_GL_VERSION=Constant( 'GLU_INCOMPATIBLE_GL_VERSION', 100903 ) -GLU_INVALID_OPERATION=Constant( 'GLU_INVALID_OPERATION', 100904 ) -GLU_OUTLINE_POLYGON=Constant( 'GLU_OUTLINE_POLYGON', 100240 ) -GLU_OUTLINE_PATCH=Constant( 'GLU_OUTLINE_PATCH', 100241 ) -GLU_NURBS_ERROR=Constant( 'GLU_NURBS_ERROR', 100103 ) -GLU_ERROR=Constant( 'GLU_ERROR', 100103 ) -GLU_NURBS_BEGIN=Constant( 'GLU_NURBS_BEGIN', 100164 ) -GLU_NURBS_BEGIN_EXT=Constant( 'GLU_NURBS_BEGIN_EXT', 100164 ) -GLU_NURBS_VERTEX=Constant( 'GLU_NURBS_VERTEX', 100165 ) -GLU_NURBS_VERTEX_EXT=Constant( 'GLU_NURBS_VERTEX_EXT', 100165 ) -GLU_NURBS_NORMAL=Constant( 'GLU_NURBS_NORMAL', 100166 ) -GLU_NURBS_NORMAL_EXT=Constant( 'GLU_NURBS_NORMAL_EXT', 100166 ) -GLU_NURBS_COLOR=Constant( 'GLU_NURBS_COLOR', 100167 ) -GLU_NURBS_COLOR_EXT=Constant( 'GLU_NURBS_COLOR_EXT', 100167 ) -GLU_NURBS_TEXTURE_COORD=Constant( 'GLU_NURBS_TEXTURE_COORD', 100168 ) -GLU_NURBS_TEX_COORD_EXT=Constant( 'GLU_NURBS_TEX_COORD_EXT', 100168 ) -GLU_NURBS_END=Constant( 'GLU_NURBS_END', 100169 ) -GLU_NURBS_END_EXT=Constant( 'GLU_NURBS_END_EXT', 100169 ) -GLU_NURBS_BEGIN_DATA=Constant( 'GLU_NURBS_BEGIN_DATA', 100170 ) -GLU_NURBS_BEGIN_DATA_EXT=Constant( 'GLU_NURBS_BEGIN_DATA_EXT', 100170 ) -GLU_NURBS_VERTEX_DATA=Constant( 'GLU_NURBS_VERTEX_DATA', 100171 ) -GLU_NURBS_VERTEX_DATA_EXT=Constant( 'GLU_NURBS_VERTEX_DATA_EXT', 100171 ) -GLU_NURBS_NORMAL_DATA=Constant( 'GLU_NURBS_NORMAL_DATA', 100172 ) -GLU_NURBS_NORMAL_DATA_EXT=Constant( 'GLU_NURBS_NORMAL_DATA_EXT', 100172 ) -GLU_NURBS_COLOR_DATA=Constant( 'GLU_NURBS_COLOR_DATA', 100173 ) -GLU_NURBS_COLOR_DATA_EXT=Constant( 'GLU_NURBS_COLOR_DATA_EXT', 100173 ) -GLU_NURBS_TEXTURE_COORD_DATA=Constant( 'GLU_NURBS_TEXTURE_COORD_DATA', 100174 ) -GLU_NURBS_TEX_COORD_DATA_EXT=Constant( 'GLU_NURBS_TEX_COORD_DATA_EXT', 100174 ) -GLU_NURBS_END_DATA=Constant( 'GLU_NURBS_END_DATA', 100175 ) -GLU_NURBS_END_DATA_EXT=Constant( 'GLU_NURBS_END_DATA_EXT', 100175 ) -GLU_NURBS_ERROR1=Constant( 'GLU_NURBS_ERROR1', 100251 ) -GLU_NURBS_ERROR2=Constant( 'GLU_NURBS_ERROR2', 100252 ) -GLU_NURBS_ERROR3=Constant( 'GLU_NURBS_ERROR3', 100253 ) -GLU_NURBS_ERROR4=Constant( 'GLU_NURBS_ERROR4', 100254 ) -GLU_NURBS_ERROR5=Constant( 'GLU_NURBS_ERROR5', 100255 ) -GLU_NURBS_ERROR6=Constant( 'GLU_NURBS_ERROR6', 100256 ) -GLU_NURBS_ERROR7=Constant( 'GLU_NURBS_ERROR7', 100257 ) -GLU_NURBS_ERROR8=Constant( 'GLU_NURBS_ERROR8', 100258 ) -GLU_NURBS_ERROR9=Constant( 'GLU_NURBS_ERROR9', 100259 ) -GLU_NURBS_ERROR10=Constant( 'GLU_NURBS_ERROR10', 100260 ) -GLU_NURBS_ERROR11=Constant( 'GLU_NURBS_ERROR11', 100261 ) -GLU_NURBS_ERROR12=Constant( 'GLU_NURBS_ERROR12', 100262 ) -GLU_NURBS_ERROR13=Constant( 'GLU_NURBS_ERROR13', 100263 ) -GLU_NURBS_ERROR14=Constant( 'GLU_NURBS_ERROR14', 100264 ) -GLU_NURBS_ERROR15=Constant( 'GLU_NURBS_ERROR15', 100265 ) -GLU_NURBS_ERROR16=Constant( 'GLU_NURBS_ERROR16', 100266 ) -GLU_NURBS_ERROR17=Constant( 'GLU_NURBS_ERROR17', 100267 ) -GLU_NURBS_ERROR18=Constant( 'GLU_NURBS_ERROR18', 100268 ) -GLU_NURBS_ERROR19=Constant( 'GLU_NURBS_ERROR19', 100269 ) -GLU_NURBS_ERROR20=Constant( 'GLU_NURBS_ERROR20', 100270 ) -GLU_NURBS_ERROR21=Constant( 'GLU_NURBS_ERROR21', 100271 ) -GLU_NURBS_ERROR22=Constant( 'GLU_NURBS_ERROR22', 100272 ) -GLU_NURBS_ERROR23=Constant( 'GLU_NURBS_ERROR23', 100273 ) -GLU_NURBS_ERROR24=Constant( 'GLU_NURBS_ERROR24', 100274 ) -GLU_NURBS_ERROR25=Constant( 'GLU_NURBS_ERROR25', 100275 ) -GLU_NURBS_ERROR26=Constant( 'GLU_NURBS_ERROR26', 100276 ) -GLU_NURBS_ERROR27=Constant( 'GLU_NURBS_ERROR27', 100277 ) -GLU_NURBS_ERROR28=Constant( 'GLU_NURBS_ERROR28', 100278 ) -GLU_NURBS_ERROR29=Constant( 'GLU_NURBS_ERROR29', 100279 ) -GLU_NURBS_ERROR30=Constant( 'GLU_NURBS_ERROR30', 100280 ) -GLU_NURBS_ERROR31=Constant( 'GLU_NURBS_ERROR31', 100281 ) -GLU_NURBS_ERROR32=Constant( 'GLU_NURBS_ERROR32', 100282 ) -GLU_NURBS_ERROR33=Constant( 'GLU_NURBS_ERROR33', 100283 ) -GLU_NURBS_ERROR34=Constant( 'GLU_NURBS_ERROR34', 100284 ) -GLU_NURBS_ERROR35=Constant( 'GLU_NURBS_ERROR35', 100285 ) -GLU_NURBS_ERROR36=Constant( 'GLU_NURBS_ERROR36', 100286 ) -GLU_NURBS_ERROR37=Constant( 'GLU_NURBS_ERROR37', 100287 ) -GLU_AUTO_LOAD_MATRIX=Constant( 'GLU_AUTO_LOAD_MATRIX', 100200 ) -GLU_CULLING=Constant( 'GLU_CULLING', 100201 ) -GLU_SAMPLING_TOLERANCE=Constant( 'GLU_SAMPLING_TOLERANCE', 100203 ) -GLU_DISPLAY_MODE=Constant( 'GLU_DISPLAY_MODE', 100204 ) -GLU_PARAMETRIC_TOLERANCE=Constant( 'GLU_PARAMETRIC_TOLERANCE', 100202 ) -GLU_SAMPLING_METHOD=Constant( 'GLU_SAMPLING_METHOD', 100205 ) -GLU_U_STEP=Constant( 'GLU_U_STEP', 100206 ) -GLU_V_STEP=Constant( 'GLU_V_STEP', 100207 ) -GLU_NURBS_MODE=Constant( 'GLU_NURBS_MODE', 100160 ) -GLU_NURBS_MODE_EXT=Constant( 'GLU_NURBS_MODE_EXT', 100160 ) -GLU_NURBS_TESSELLATOR=Constant( 'GLU_NURBS_TESSELLATOR', 100161 ) -GLU_NURBS_TESSELLATOR_EXT=Constant( 'GLU_NURBS_TESSELLATOR_EXT', 100161 ) -GLU_NURBS_RENDERER=Constant( 'GLU_NURBS_RENDERER', 100162 ) -GLU_NURBS_RENDERER_EXT=Constant( 'GLU_NURBS_RENDERER_EXT', 100162 ) -GLU_OBJECT_PARAMETRIC_ERROR=Constant( 'GLU_OBJECT_PARAMETRIC_ERROR', 100208 ) -GLU_OBJECT_PARAMETRIC_ERROR_EXT=Constant( 'GLU_OBJECT_PARAMETRIC_ERROR_EXT', 100208 ) -GLU_OBJECT_PATH_LENGTH=Constant( 'GLU_OBJECT_PATH_LENGTH', 100209 ) -GLU_OBJECT_PATH_LENGTH_EXT=Constant( 'GLU_OBJECT_PATH_LENGTH_EXT', 100209 ) -GLU_PATH_LENGTH=Constant( 'GLU_PATH_LENGTH', 100215 ) -GLU_PARAMETRIC_ERROR=Constant( 'GLU_PARAMETRIC_ERROR', 100216 ) -GLU_DOMAIN_DISTANCE=Constant( 'GLU_DOMAIN_DISTANCE', 100217 ) -GLU_MAP1_TRIM_2=Constant( 'GLU_MAP1_TRIM_2', 100210 ) -GLU_MAP1_TRIM_3=Constant( 'GLU_MAP1_TRIM_3', 100211 ) -GLU_POINT=Constant( 'GLU_POINT', 100010 ) -GLU_LINE=Constant( 'GLU_LINE', 100011 ) -GLU_FILL=Constant( 'GLU_FILL', 100012 ) -GLU_SILHOUETTE=Constant( 'GLU_SILHOUETTE', 100013 ) -GLU_SMOOTH=Constant( 'GLU_SMOOTH', 100000 ) -GLU_FLAT=Constant( 'GLU_FLAT', 100001 ) -GLU_NONE=Constant( 'GLU_NONE', 100002 ) -GLU_OUTSIDE=Constant( 'GLU_OUTSIDE', 100020 ) -GLU_INSIDE=Constant( 'GLU_INSIDE', 100021 ) -GLU_TESS_BEGIN=Constant( 'GLU_TESS_BEGIN', 100100 ) -GLU_BEGIN=Constant( 'GLU_BEGIN', 100100 ) -GLU_TESS_VERTEX=Constant( 'GLU_TESS_VERTEX', 100101 ) -GLU_VERTEX=Constant( 'GLU_VERTEX', 100101 ) -GLU_TESS_END=Constant( 'GLU_TESS_END', 100102 ) -GLU_END=Constant( 'GLU_END', 100102 ) -GLU_TESS_ERROR=Constant( 'GLU_TESS_ERROR', 100103 ) -GLU_TESS_EDGE_FLAG=Constant( 'GLU_TESS_EDGE_FLAG', 100104 ) -GLU_EDGE_FLAG=Constant( 'GLU_EDGE_FLAG', 100104 ) -GLU_TESS_COMBINE=Constant( 'GLU_TESS_COMBINE', 100105 ) -GLU_TESS_BEGIN_DATA=Constant( 'GLU_TESS_BEGIN_DATA', 100106 ) -GLU_TESS_VERTEX_DATA=Constant( 'GLU_TESS_VERTEX_DATA', 100107 ) -GLU_TESS_END_DATA=Constant( 'GLU_TESS_END_DATA', 100108 ) -GLU_TESS_ERROR_DATA=Constant( 'GLU_TESS_ERROR_DATA', 100109 ) -GLU_TESS_EDGE_FLAG_DATA=Constant( 'GLU_TESS_EDGE_FLAG_DATA', 100110 ) -GLU_TESS_COMBINE_DATA=Constant( 'GLU_TESS_COMBINE_DATA', 100111 ) -GLU_CW=Constant( 'GLU_CW', 100120 ) -GLU_CCW=Constant( 'GLU_CCW', 100121 ) -GLU_INTERIOR=Constant( 'GLU_INTERIOR', 100122 ) -GLU_EXTERIOR=Constant( 'GLU_EXTERIOR', 100123 ) -GLU_UNKNOWN=Constant( 'GLU_UNKNOWN', 100124 ) -GLU_TESS_WINDING_RULE=Constant( 'GLU_TESS_WINDING_RULE', 100140 ) -GLU_TESS_BOUNDARY_ONLY=Constant( 'GLU_TESS_BOUNDARY_ONLY', 100141 ) -GLU_TESS_TOLERANCE=Constant( 'GLU_TESS_TOLERANCE', 100142 ) -GLU_TESS_ERROR1=Constant( 'GLU_TESS_ERROR1', 100151 ) -GLU_TESS_ERROR2=Constant( 'GLU_TESS_ERROR2', 100152 ) -GLU_TESS_ERROR3=Constant( 'GLU_TESS_ERROR3', 100153 ) -GLU_TESS_ERROR4=Constant( 'GLU_TESS_ERROR4', 100154 ) -GLU_TESS_ERROR5=Constant( 'GLU_TESS_ERROR5', 100155 ) -GLU_TESS_ERROR6=Constant( 'GLU_TESS_ERROR6', 100156 ) -GLU_TESS_ERROR7=Constant( 'GLU_TESS_ERROR7', 100157 ) -GLU_TESS_ERROR8=Constant( 'GLU_TESS_ERROR8', 100158 ) -GLU_TESS_MISSING_BEGIN_POLYGON=Constant( 'GLU_TESS_MISSING_BEGIN_POLYGON', 100151 ) -GLU_TESS_MISSING_BEGIN_CONTOUR=Constant( 'GLU_TESS_MISSING_BEGIN_CONTOUR', 100152 ) -GLU_TESS_MISSING_END_POLYGON=Constant( 'GLU_TESS_MISSING_END_POLYGON', 100153 ) -GLU_TESS_MISSING_END_CONTOUR=Constant( 'GLU_TESS_MISSING_END_CONTOUR', 100154 ) -GLU_TESS_COORD_TOO_LARGE=Constant( 'GLU_TESS_COORD_TOO_LARGE', 100155 ) -GLU_TESS_NEED_COMBINE_CALLBACK=Constant( 'GLU_TESS_NEED_COMBINE_CALLBACK', 100156 ) -GLU_TESS_WINDING_ODD=Constant( 'GLU_TESS_WINDING_ODD', 100130 ) -GLU_TESS_WINDING_NONZERO=Constant( 'GLU_TESS_WINDING_NONZERO', 100131 ) -GLU_TESS_WINDING_POSITIVE=Constant( 'GLU_TESS_WINDING_POSITIVE', 100132 ) -GLU_TESS_WINDING_NEGATIVE=Constant( 'GLU_TESS_WINDING_NEGATIVE', 100133 ) -GLU_TESS_WINDING_ABS_GEQ_TWO=Constant( 'GLU_TESS_WINDING_ABS_GEQ_TWO', 100134 ) -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:261 -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:262 -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:263 -GLUnurbsObj = GLUnurbs # /usr/include/GL/glu.h:266 -GLUquadricObj = GLUquadric # /usr/include/GL/glu.h:267 -GLUtesselatorObj = GLUtesselator # /usr/include/GL/glu.h:268 -GLUtriangulatorObj = GLUtesselator # /usr/include/GL/glu.h:269 -GLU_TESS_MAX_COORD=Constant( 'GLU_TESS_MAX_COORD', 9.9999999999999998e+149 ) -_GLUfuncptr = CFUNCTYPE(None) # /usr/include/GL/glu.h:274 -gluBeginCurve=platform.createBaseFunction( - 'gluBeginCurve',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluBeginPolygon=platform.createBaseFunction( - 'gluBeginPolygon',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluBeginSurface=platform.createBaseFunction( - 'gluBeginSurface',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluBeginTrim=platform.createBaseFunction( - 'gluBeginTrim',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluBuild1DMipmapLevels=platform.createBaseFunction( - 'gluBuild1DMipmapLevels',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLenum,GLenum,GLint,GLint,GLint,POINTER(None)], - ['target', 'internalFormat', 'width', 'format', 'type', 'level', 'base', 'max', 'data'], -) -gluBuild1DMipmaps=platform.createBaseFunction( - 'gluBuild1DMipmaps',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLenum,GLenum,POINTER(None)], - ['target', 'internalFormat', 'width', 'format', 'type', 'data'], -) -gluBuild2DMipmapLevels=platform.createBaseFunction( - 'gluBuild2DMipmapLevels',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,POINTER(None)], - ['target', 'internalFormat', 'width', 'height', 'format', 'type', 'level', 'base', 'max', 'data'], -) -gluBuild2DMipmaps=platform.createBaseFunction( - 'gluBuild2DMipmaps',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLsizei,GLenum,GLenum,POINTER(None)], - ['target', 'internalFormat', 'width', 'height', 'format', 'type', 'data'], -) -gluBuild3DMipmapLevels=platform.createBaseFunction( - 'gluBuild3DMipmapLevels',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,GLint,GLint,GLint,POINTER(None)], - ['target', 'internalFormat', 'width', 'height', 'depth', 'format', 'type', 'level', 'base', 'max', 'data'], -) -gluBuild3DMipmaps=platform.createBaseFunction( - 'gluBuild3DMipmaps',platform.GL,GLint, - [GLenum,GLint,GLsizei,GLsizei,GLsizei,GLenum,GLenum,POINTER(None)], - ['target', 'internalFormat', 'width', 'height', 'depth', 'format', 'type', 'data'], -) -gluCheckExtension=platform.createBaseFunction( - 'gluCheckExtension',platform.GL,GLboolean, - [GLubyteArray,GLubyteArray], - ['extName', 'extString'], -) -gluCylinder=platform.createBaseFunction( - 'gluCylinder',platform.GL,None, - [POINTER(GLUquadric),GLdouble,GLdouble,GLdouble,GLint,GLint], - ['quad', 'base', 'top', 'height', 'slices', 'stacks'], -) -gluDeleteNurbsRenderer=platform.createBaseFunction( - 'gluDeleteNurbsRenderer',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluDeleteQuadric=platform.createBaseFunction( - 'gluDeleteQuadric',platform.GL,None, - [POINTER(GLUquadric)], - ['quad'], -) -gluDeleteTess=platform.createBaseFunction( - 'gluDeleteTess',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluDisk=platform.createBaseFunction( - 'gluDisk',platform.GL,None, - [POINTER(GLUquadric),GLdouble,GLdouble,GLint,GLint], - ['quad', 'inner', 'outer', 'slices', 'loops'], -) -gluEndCurve=platform.createBaseFunction( - 'gluEndCurve',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluEndPolygon=platform.createBaseFunction( - 'gluEndPolygon',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluEndSurface=platform.createBaseFunction( - 'gluEndSurface',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluEndTrim=platform.createBaseFunction( - 'gluEndTrim',platform.GL,None, - [POINTER(GLUnurbs)], - ['nurb'], -) -gluErrorString=platform.createBaseFunction( - 'gluErrorString',platform.GL,GLubyteArray, - [GLenum], - ['error'], -) -gluGetNurbsProperty=platform.createBaseFunction( - 'gluGetNurbsProperty',platform.GL,None, - [POINTER(GLUnurbs),GLenum,GLfloatArray], - ['nurb', 'property', 'data'], -) -gluGetString=platform.createBaseFunction( - 'gluGetString',platform.GL,GLubyteArray, - [GLenum], - ['name'], -) -gluGetTessProperty=platform.createBaseFunction( - 'gluGetTessProperty',platform.GL,None, - [POINTER(GLUtesselator),GLenum,GLdoubleArray], - ['tess', 'which', 'data'], -) -gluLoadSamplingMatrices=platform.createBaseFunction( - 'gluLoadSamplingMatrices',platform.GL,None, - [POINTER(GLUnurbs),GLfloatArray,GLfloatArray,GLintArray], - ['nurb', 'model', 'perspective', 'view'], -) -gluLookAt=platform.createBaseFunction( - 'gluLookAt',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble,GLdouble], - ['eyeX', 'eyeY', 'eyeZ', 'centerX', 'centerY', 'centerZ', 'upX', 'upY', 'upZ'], -) -gluNewNurbsRenderer=platform.createBaseFunction( - 'gluNewNurbsRenderer',platform.GL,POINTER(GLUnurbs), - [], - [], -) -gluNewQuadric=platform.createBaseFunction( - 'gluNewQuadric',platform.GL,POINTER(GLUquadric), - [], - [], -) -gluNewTess=platform.createBaseFunction( - 'gluNewTess',platform.GL,POINTER(GLUtesselator), - [], - [], -) -gluNextContour=platform.createBaseFunction( - 'gluNextContour',platform.GL,None, - [POINTER(GLUtesselator),GLenum], - ['tess', 'type'], -) -gluNurbsCallback=platform.createBaseFunction( - 'gluNurbsCallback',platform.GL,None, - [POINTER(GLUnurbs),GLenum,_GLUfuncptr], - ['nurb', 'which', 'CallBackFunc'], -) -gluNurbsCallbackData=platform.createBaseFunction( - 'gluNurbsCallbackData',platform.GL,None, - [POINTER(GLUnurbs),POINTER(GLvoid)], - ['nurb', 'userData'], -) -gluNurbsCallbackDataEXT=platform.createBaseFunction( - 'gluNurbsCallbackDataEXT',platform.GL,None, - [POINTER(GLUnurbs),POINTER(GLvoid)], - ['nurb', 'userData'], -) -gluNurbsCurve=platform.createBaseFunction( - 'gluNurbsCurve',platform.GL,None, - [POINTER(GLUnurbs),GLint,GLfloatArray,GLint,GLfloatArray,GLint,GLenum], - ['nurb', 'knotCount', 'knots', 'stride', 'control', 'order', 'type'], -) -gluNurbsProperty=platform.createBaseFunction( - 'gluNurbsProperty',platform.GL,None, - [POINTER(GLUnurbs),GLenum,GLfloat], - ['nurb', 'property', 'value'], -) -gluNurbsSurface=platform.createBaseFunction( - 'gluNurbsSurface',platform.GL,None, - [POINTER(GLUnurbs),GLint,GLfloatArray,GLint,GLfloatArray,GLint,GLint,GLfloatArray,GLint,GLint,GLenum], - ['nurb', 'sKnotCount', 'sKnots', 'tKnotCount', 'tKnots', 'sStride', 'tStride', 'control', 'sOrder', 'tOrder', 'type'], -) -gluOrtho2D=platform.createBaseFunction( - 'gluOrtho2D',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['left', 'right', 'bottom', 'top'], -) -gluPartialDisk=platform.createBaseFunction( - 'gluPartialDisk',platform.GL,None, - [POINTER(GLUquadric),GLdouble,GLdouble,GLint,GLint,GLdouble,GLdouble], - ['quad', 'inner', 'outer', 'slices', 'loops', 'start', 'sweep'], -) -gluPerspective=platform.createBaseFunction( - 'gluPerspective',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble], - ['fovy', 'aspect', 'zNear', 'zFar'], -) -gluPickMatrix=platform.createBaseFunction( - 'gluPickMatrix',platform.GL,None, - [GLdouble,GLdouble,GLdouble,GLdouble,GLintArray], - ['x', 'y', 'delX', 'delY', 'viewport'], -) -gluProject=platform.createBaseFunction( - 'gluProject',platform.GL,GLint, - [GLdouble,GLdouble,GLdouble,GLdoubleArray,GLdoubleArray,GLintArray,GLdoubleArray,GLdoubleArray,GLdoubleArray], - ['objX', 'objY', 'objZ', 'model', 'proj', 'view', 'winX', 'winY', 'winZ'], -) -gluPwlCurve=platform.createBaseFunction( - 'gluPwlCurve',platform.GL,None, - [POINTER(GLUnurbs),GLint,GLfloatArray,GLint,GLenum], - ['nurb', 'count', 'data', 'stride', 'type'], -) -gluQuadricCallback=platform.createBaseFunction( - 'gluQuadricCallback',platform.GL,None, - [POINTER(GLUquadric),GLenum,_GLUfuncptr], - ['quad', 'which', 'CallBackFunc'], -) -gluQuadricDrawStyle=platform.createBaseFunction( - 'gluQuadricDrawStyle',platform.GL,None, - [POINTER(GLUquadric),GLenum], - ['quad', 'draw'], -) -gluQuadricNormals=platform.createBaseFunction( - 'gluQuadricNormals',platform.GL,None, - [POINTER(GLUquadric),GLenum], - ['quad', 'normal'], -) -gluQuadricOrientation=platform.createBaseFunction( - 'gluQuadricOrientation',platform.GL,None, - [POINTER(GLUquadric),GLenum], - ['quad', 'orientation'], -) -gluQuadricTexture=platform.createBaseFunction( - 'gluQuadricTexture',platform.GL,None, - [POINTER(GLUquadric),GLboolean], - ['quad', 'texture'], -) -gluScaleImage=platform.createBaseFunction( - 'gluScaleImage',platform.GL,GLint, - [GLenum,GLsizei,GLsizei,GLenum,POINTER(None),GLsizei,GLsizei,GLenum,POINTER(GLvoid)], - ['format', 'wIn', 'hIn', 'typeIn', 'dataIn', 'wOut', 'hOut', 'typeOut', 'dataOut'], -) -gluSphere=platform.createBaseFunction( - 'gluSphere',platform.GL,None, - [POINTER(GLUquadric),GLdouble,GLint,GLint], - ['quad', 'radius', 'slices', 'stacks'], -) -gluTessBeginContour=platform.createBaseFunction( - 'gluTessBeginContour',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluTessBeginPolygon=platform.createBaseFunction( - 'gluTessBeginPolygon',platform.GL,None, - [POINTER(GLUtesselator),POINTER(GLvoid)], - ['tess', 'data'], -) -gluTessCallback=platform.createBaseFunction( - 'gluTessCallback',platform.GL,None, - [POINTER(GLUtesselator),GLenum,_GLUfuncptr], - ['tess', 'which', 'CallBackFunc'], -) -gluTessEndContour=platform.createBaseFunction( - 'gluTessEndContour',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluTessEndPolygon=platform.createBaseFunction( - 'gluTessEndPolygon',platform.GL,None, - [POINTER(GLUtesselator)], - ['tess'], -) -gluTessNormal=platform.createBaseFunction( - 'gluTessNormal',platform.GL,None, - [POINTER(GLUtesselator),GLdouble,GLdouble,GLdouble], - ['tess', 'valueX', 'valueY', 'valueZ'], -) -gluTessProperty=platform.createBaseFunction( - 'gluTessProperty',platform.GL,None, - [POINTER(GLUtesselator),GLenum,GLdouble], - ['tess', 'which', 'data'], -) -gluTessVertex=platform.createBaseFunction( - 'gluTessVertex',platform.GL,None, - [POINTER(GLUtesselator),GLdoubleArray,POINTER(GLvoid)], - ['tess', 'location', 'data'], -) -gluUnProject=platform.createBaseFunction( - 'gluUnProject',platform.GL,GLint, - [GLdouble,GLdouble,GLdouble,GLdoubleArray,GLdoubleArray,GLintArray,GLdoubleArray,GLdoubleArray,GLdoubleArray], - ['winX', 'winY', 'winZ', 'model', 'proj', 'view', 'objX', 'objY', 'objZ'], -) -gluUnProject4=platform.createBaseFunction( - 'gluUnProject4',platform.GL,GLint, - [GLdouble,GLdouble,GLdouble,GLdouble,GLdoubleArray,GLdoubleArray,GLintArray,GLdouble,GLdouble,GLdoubleArray,GLdoubleArray,GLdoubleArray,GLdoubleArray], - ['winX', 'winY', 'winZ', 'clipW', 'model', 'proj', 'view', 'nearVal', 'farVal', 'objX', 'objY', 'objZ', 'objW'], -) - -__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) - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLUT/freeglut.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLUT/freeglut.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLUT/freeglut.py 2008-08-29 23:00:59.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/GLUT/freeglut.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,129 +0,0 @@ -# BEGIN GENERATED CONTENT (do not edit below this line) - -# This content is generated by gengl.py. -# Wrapper for /usr/include/GL/freeglut_ext.h -from OpenGL import platform -from OpenGL.constants import * -from OpenGL.constant import Constant -from OpenGL.arrays.arraydatatype import * -from ctypes import * -c_void = None - - -GLUT_ACTION_EXIT=Constant( 'GLUT_ACTION_EXIT', 0 ) -GLUT_ACTION_GLUTMAINLOOP_RETURNS=Constant( 'GLUT_ACTION_GLUTMAINLOOP_RETURNS', 1 ) -GLUT_ACTION_CONTINUE_EXECUTION=Constant( 'GLUT_ACTION_CONTINUE_EXECUTION', 2 ) -GLUT_CREATE_NEW_CONTEXT=Constant( 'GLUT_CREATE_NEW_CONTEXT', 0 ) -GLUT_USE_CURRENT_CONTEXT=Constant( 'GLUT_USE_CURRENT_CONTEXT', 1 ) -GLUT_FORCE_INDIRECT_CONTEXT=Constant( 'GLUT_FORCE_INDIRECT_CONTEXT', 0 ) -GLUT_ALLOW_DIRECT_CONTEXT=Constant( 'GLUT_ALLOW_DIRECT_CONTEXT', 1 ) -GLUT_TRY_DIRECT_CONTEXT=Constant( 'GLUT_TRY_DIRECT_CONTEXT', 2 ) -GLUT_FORCE_DIRECT_CONTEXT=Constant( 'GLUT_FORCE_DIRECT_CONTEXT', 3 ) -GLUT_ACTION_ON_WINDOW_CLOSE=Constant( 'GLUT_ACTION_ON_WINDOW_CLOSE', 505 ) -GLUT_WINDOW_BORDER_WIDTH=Constant( 'GLUT_WINDOW_BORDER_WIDTH', 506 ) -GLUT_WINDOW_HEADER_HEIGHT=Constant( 'GLUT_WINDOW_HEADER_HEIGHT', 507 ) -GLUT_VERSION=Constant( 'GLUT_VERSION', 508 ) -GLUT_RENDERING_CONTEXT=Constant( 'GLUT_RENDERING_CONTEXT', 509 ) -GLUT_DIRECT_RENDERING=Constant( 'GLUT_DIRECT_RENDERING', 510 ) -GLUT_AUX1=Constant( 'GLUT_AUX1', 4096 ) -GLUT_AUX2=Constant( 'GLUT_AUX2', 8192 ) -GLUT_AUX3=Constant( 'GLUT_AUX3', 16384 ) -GLUT_AUX4=Constant( 'GLUT_AUX4', 32768 ) -glutMainLoopEvent=platform.createBaseFunction( - 'glutMainLoopEvent',platform.GLUT,None, - [], - [], -) -glutLeaveMainLoop=platform.createBaseFunction( - 'glutLeaveMainLoop',platform.GLUT,None, - [], - [], -) -glutMouseWheelFunc=platform.createBaseFunction( - 'glutMouseWheelFunc',platform.GLUT,None, - [CFUNCTYPE(None, c_int, c_int, c_int, c_int)], - ['callback'], -) -glutCloseFunc=platform.createBaseFunction( - 'glutCloseFunc',platform.GLUT,None, - [CFUNCTYPE(None)], - ['callback'], -) -glutWMCloseFunc=platform.createBaseFunction( - 'glutWMCloseFunc',platform.GLUT,None, - [CFUNCTYPE(None)], - ['callback'], -) -glutMenuDestroyFunc=platform.createBaseFunction( - 'glutMenuDestroyFunc',platform.GLUT,None, - [CFUNCTYPE(None)], - ['callback'], -) -glutGetWindowData=platform.createBaseFunction( - 'glutGetWindowData',platform.GLUT,POINTER(c_void), - [], - [], -) -glutSetWindowData=platform.createBaseFunction( - 'glutSetWindowData',platform.GLUT,None, - [POINTER(None)], - ['data'], -) -glutGetMenuData=platform.createBaseFunction( - 'glutGetMenuData',platform.GLUT,POINTER(c_void), - [], - [], -) -glutSetMenuData=platform.createBaseFunction( - 'glutSetMenuData',platform.GLUT,None, - [POINTER(None)], - ['data'], -) -glutBitmapHeight=platform.createBaseFunction( - 'glutBitmapHeight',platform.GLUT,c_int, - [POINTER(None)], - ['font'], -) -glutBitmapString=platform.createBaseFunction( - 'glutBitmapString',platform.GLUT,None, - [POINTER(None),POINTER(c_ubyte)], - ['font', 'string'], -) -glutStrokeString=platform.createBaseFunction( - 'glutStrokeString',platform.GLUT,None, - [POINTER(None),POINTER(c_ubyte)], - ['font', 'string'], -) -glutWireRhombicDodecahedron=platform.createBaseFunction( - 'glutWireRhombicDodecahedron',platform.GLUT,None, - [], - [], -) -glutSolidRhombicDodecahedron=platform.createBaseFunction( - 'glutSolidRhombicDodecahedron',platform.GLUT,None, - [], - [], -) -GLUTproc = CFUNCTYPE(None) # /usr/include/GL/freeglut_ext.h:127 -glutGetProcAddress=platform.createBaseFunction( - 'glutGetProcAddress',platform.GLUT,GLUTproc, - [c_char_p], - ['procName'], -) - -__all__ = ['GLUT_ACTION_EXIT', 'GLUT_ACTION_GLUTMAINLOOP_RETURNS', -'GLUT_ACTION_CONTINUE_EXECUTION', 'GLUT_CREATE_NEW_CONTEXT', -'GLUT_USE_CURRENT_CONTEXT', 'GLUT_FORCE_INDIRECT_CONTEXT', -'GLUT_ALLOW_DIRECT_CONTEXT', 'GLUT_TRY_DIRECT_CONTEXT', -'GLUT_FORCE_DIRECT_CONTEXT', 'GLUT_ACTION_ON_WINDOW_CLOSE', -'GLUT_WINDOW_BORDER_WIDTH', 'GLUT_WINDOW_HEADER_HEIGHT', 'GLUT_VERSION', -'GLUT_RENDERING_CONTEXT', 'GLUT_DIRECT_RENDERING', 'GLUT_AUX1', 'GLUT_AUX2', -'GLUT_AUX3', 'GLUT_AUX4', 'glutMainLoopEvent', 'glutLeaveMainLoop', -'glutMouseWheelFunc', 'glutCloseFunc', 'glutWMCloseFunc', -'glutMenuDestroyFunc', 'glutGetWindowData', 'glutSetWindowData', -'glutGetMenuData', 'glutSetMenuData', 'glutBitmapHeight', 'glutBitmapString', -'glutStrokeString', 'glutWireRhombicDodecahedron', -'glutSolidRhombicDodecahedron', 'GLUTproc', 'glutGetProcAddress'] -# END GENERATED CONTENT (do not edit above this line) - - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLUT/old__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLUT/old__init__.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLUT/old__init__.py 2008-05-04 22:24:51.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/raw/GLUT/old__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,1335 +0,0 @@ -# -*- coding: iso-8859-1 -*- -"""Raw (C-style) API for OpenGL.GLUT - -Automatically generated by the generateraw script, do not edit! -""" -from OpenGL.raw.GLUT.constants import * - -from ctypes import * -from OpenGL import platform, arrays -from OpenGL.constant import Constant -from OpenGL import constants as GLconstants -GLvoid = GLconstants.GLvoid - -FUNCTION_TYPE = platform.PLATFORM.functionTypeFor( platform.GLUT ) - -STRING = c_char_p -from OpenGL.constants import GLenum -from OpenGL.constants import GLfloat -from OpenGL.constants import GLdouble -from OpenGL.constants import GLint - - - - -# /usr/include/GL/freeglut_std.h 445 -glutAddMenuEntry = platform.createBaseFunction( - 'glutAddMenuEntry', dll=platform.GLUT, resultType=None, - argTypes=[STRING,c_int], - doc='glutAddMenuEntry( STRING(label), c_int(value) ) -> None', - argNames=('label', 'value'), -) - - -# /usr/include/GL/freeglut_std.h 446 -glutAddSubMenu = platform.createBaseFunction( - 'glutAddSubMenu', dll=platform.GLUT, resultType=None, - argTypes=[STRING,c_int], - doc='glutAddSubMenu( STRING(label), c_int(subMenu) ) -> None', - argNames=('label', 'subMenu'), -) - - -# /usr/include/GL/freeglut_std.h 450 -glutAttachMenu = platform.createBaseFunction( - 'glutAttachMenu', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutAttachMenu( c_int(button) ) -> None', - argNames=('button',), -) - - -# /usr/include/GL/freeglut_std.h 499 -glutBitmapCharacter = platform.createBaseFunction( - 'glutBitmapCharacter', dll=platform.GLUT, resultType=None, - argTypes=[c_void_p,c_int], - doc='glutBitmapCharacter( c_void_p(font), c_int(character) ) -> None', - argNames=('font', 'character'), -) - - -# /usr/include/GL/freeglut_std.h 503 -glutBitmapLength = platform.createBaseFunction( - 'glutBitmapLength', dll=platform.GLUT, resultType=c_int, - argTypes=[c_void_p,POINTER(c_ubyte)], - doc='glutBitmapLength( c_void_p(font), POINTER(c_ubyte)(string) ) -> c_int', - argNames=('font', 'string'), -) - - -# /usr/include/GL/freeglut_std.h 500 -glutBitmapWidth = platform.createBaseFunction( - 'glutBitmapWidth', dll=platform.GLUT, resultType=c_int, - argTypes=[c_void_p,c_int], - doc='glutBitmapWidth( c_void_p(font), c_int(character) ) -> c_int', - argNames=('font', 'character'), -) - - -# /usr/include/GL/freeglut_std.h 483 -glutButtonBoxFunc = platform.createBaseFunction( - 'glutButtonBoxFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutButtonBoxFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 447 -glutChangeToMenuEntry = platform.createBaseFunction( - 'glutChangeToMenuEntry', dll=platform.GLUT, resultType=None, - argTypes=[c_int,STRING,c_int], - doc='glutChangeToMenuEntry( c_int(item), STRING(label), c_int(value) ) -> None', - argNames=('item', 'label', 'value'), -) - - -# /usr/include/GL/freeglut_std.h 448 -glutChangeToSubMenu = platform.createBaseFunction( - 'glutChangeToSubMenu', dll=platform.GLUT, resultType=None, - argTypes=[c_int,STRING,c_int], - doc='glutChangeToSubMenu( c_int(item), STRING(label), c_int(value) ) -> None', - argNames=('item', 'label', 'value'), -) - - -# /usr/include/GL/freeglut_std.h 555 -glutCopyColormap = platform.createBaseFunction( - 'glutCopyColormap', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutCopyColormap( c_int(window) ) -> None', - argNames=('window',), -) - - -# /usr/include/GL/freeglut_std.h 441 -glutCreateMenu = platform.createBaseFunction( - 'glutCreateMenu', dll=platform.GLUT, resultType=c_int, - argTypes=[FUNCTION_TYPE(c_int, c_int)], - doc='glutCreateMenu( FUNCTION_TYPE(c_int, c_int)(callback) ) -> c_int', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 399 -glutCreateSubWindow = platform.createBaseFunction( - 'glutCreateSubWindow', dll=platform.GLUT, resultType=c_int, - argTypes=[c_int,c_int,c_int,c_int,c_int], - doc='glutCreateSubWindow( c_int(window), c_int(x), c_int(y), c_int(width), c_int(height) ) -> c_int', - argNames=('window', 'x', 'y', 'width', 'height'), -) - - -# /usr/include/GL/freeglut_std.h 398 -glutCreateWindow = platform.createBaseFunction( - 'glutCreateWindow', dll=platform.GLUT, resultType=c_int, - argTypes=[STRING], - doc='glutCreateWindow( STRING(title) ) -> c_int', - argNames=('title',), -) - - -# /usr/include/GL/freeglut_std.h 442 -glutDestroyMenu = platform.createBaseFunction( - 'glutDestroyMenu', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutDestroyMenu( c_int(menu) ) -> None', - argNames=('menu',), -) - - -# /usr/include/GL/freeglut_std.h 400 -glutDestroyWindow = platform.createBaseFunction( - 'glutDestroyWindow', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutDestroyWindow( c_int(window) ) -> None', - argNames=('window',), -) - - -# /usr/include/GL/freeglut_std.h 451 -glutDetachMenu = platform.createBaseFunction( - 'glutDetachMenu', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutDetachMenu( c_int(button) ) -> None', - argNames=('button',), -) - - -# /usr/include/GL/freeglut_std.h 492 -glutDeviceGet = platform.createBaseFunction( - 'glutDeviceGet', dll=platform.GLUT, resultType=c_int, - argTypes=[GLenum], - doc='glutDeviceGet( GLenum(query) ) -> c_int', - argNames=('query',), -) - - -# /usr/include/GL/freeglut_std.h 484 -glutDialsFunc = platform.createBaseFunction( - 'glutDialsFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutDialsFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 466 -glutDisplayFunc = platform.createBaseFunction( - 'glutDisplayFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None)], - doc='glutDisplayFunc( FUNCTION_TYPE(None)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 537 -glutEnterGameMode = platform.createBaseFunction( - 'glutEnterGameMode', dll=platform.GLUT, resultType=c_int, - argTypes=[], - doc='glutEnterGameMode( ) -> c_int', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 470 -glutEntryFunc = platform.createBaseFunction( - 'glutEntryFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int)], - doc='glutEntryFunc( FUNCTION_TYPE(None, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 430 -glutEstablishOverlay = platform.createBaseFunction( - 'glutEstablishOverlay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutEstablishOverlay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 567 -glutExtensionSupported = platform.createBaseFunction( - 'glutExtensionSupported', dll=platform.GLUT, resultType=c_int, - argTypes=[STRING], - doc='glutExtensionSupported( STRING(extension) ) -> c_int', - argNames=('extension',), -) - - -# /usr/include/GL/freeglut_std.h 562 -glutForceJoystickFunc = platform.createBaseFunction( - 'glutForceJoystickFunc', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutForceJoystickFunc( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 412 -glutFullScreen = platform.createBaseFunction( - 'glutFullScreen', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutFullScreen( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 539 -glutGameModeGet = platform.createBaseFunction( - 'glutGameModeGet', dll=platform.GLUT, resultType=c_int, - argTypes=[GLenum], - doc='glutGameModeGet( GLenum(query) ) -> c_int', - argNames=('query',), -) - - -# /usr/include/GL/freeglut_std.h 536 -glutGameModeString = platform.createBaseFunction( - 'glutGameModeString', dll=platform.GLUT, resultType=None, - argTypes=[STRING], - doc='glutGameModeString( STRING(string) ) -> None', - argNames=('string',), -) - - -# /usr/include/GL/freeglut_std.h 491 -glutGet = platform.createBaseFunction( - 'glutGet', dll=platform.GLUT, resultType=c_int, - argTypes=[GLenum], - doc='glutGet( GLenum(query) ) -> c_int', - argNames=('query',), -) - - -# /usr/include/GL/freeglut_std.h 554 -glutGetColor = platform.createBaseFunction( - 'glutGetColor', dll=platform.GLUT, resultType=GLfloat, - argTypes=[c_int,c_int], - doc='glutGetColor( c_int(color), c_int(component) ) -> GLfloat', - argNames=('color', 'component'), -) - - -# /usr/include/GL/freeglut_std.h 443 -glutGetMenu = platform.createBaseFunction( - 'glutGetMenu', dll=platform.GLUT, resultType=c_int, - argTypes=[], - doc='glutGetMenu( ) -> c_int', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 493 -glutGetModifiers = platform.createBaseFunction( - 'glutGetModifiers', dll=platform.GLUT, resultType=c_int, - argTypes=[], - doc='glutGetModifiers( ) -> c_int', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 402 -glutGetWindow = platform.createBaseFunction( - 'glutGetWindow', dll=platform.GLUT, resultType=c_int, - argTypes=[], - doc='glutGetWindow( ) -> c_int', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 436 -glutHideOverlay = platform.createBaseFunction( - 'glutHideOverlay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutHideOverlay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 408 -glutHideWindow = platform.createBaseFunction( - 'glutHideWindow', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutHideWindow( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 409 -glutIconifyWindow = platform.createBaseFunction( - 'glutIconifyWindow', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutIconifyWindow( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 457 -glutIdleFunc = platform.createBaseFunction( - 'glutIdleFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None)], - doc='glutIdleFunc( FUNCTION_TYPE(None)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 560 -glutIgnoreKeyRepeat = platform.createBaseFunction( - 'glutIgnoreKeyRepeat', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutIgnoreKeyRepeat( c_int(ignore) ) -> None', - argNames=('ignore',), -) - - -# /usr/include/GL/freeglut_std.h 384 -glutInit = platform.createBaseFunction( - 'glutInit', dll=platform.GLUT, resultType=None, - argTypes=[POINTER(c_int),POINTER(STRING)], - doc='glutInit( POINTER(c_int)(pargc), POINTER(STRING)(argv) ) -> None', - argNames=('pargc', 'argv'), -) - - -# /usr/include/GL/freeglut_std.h 387 -glutInitDisplayMode = platform.createBaseFunction( - 'glutInitDisplayMode', dll=platform.GLUT, resultType=None, - argTypes=[c_uint], - doc='glutInitDisplayMode( c_uint(displayMode) ) -> None', - argNames=('displayMode',), -) - - -# /usr/include/GL/freeglut_std.h 388 -glutInitDisplayString = platform.createBaseFunction( - 'glutInitDisplayString', dll=platform.GLUT, resultType=None, - argTypes=[STRING], - doc='glutInitDisplayString( STRING(displayMode) ) -> None', - argNames=('displayMode',), -) - - -# /usr/include/GL/freeglut_std.h 385 -glutInitWindowPosition = platform.createBaseFunction( - 'glutInitWindowPosition', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int], - doc='glutInitWindowPosition( c_int(x), c_int(y) ) -> None', - argNames=('x', 'y'), -) - - -# /usr/include/GL/freeglut_std.h 386 -glutInitWindowSize = platform.createBaseFunction( - 'glutInitWindowSize', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int], - doc='glutInitWindowSize( c_int(width), c_int(height) ) -> None', - argNames=('width', 'height'), -) - - -# /usr/include/GL/freeglut_std.h 474 -glutJoystickFunc = platform.createBaseFunction( - 'glutJoystickFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_uint, c_int, c_int, c_int),c_int], - doc='glutJoystickFunc( FUNCTION_TYPE(None, c_uint, c_int, c_int, c_int)(callback), c_int(pollInterval) ) -> None', - argNames=('callback', 'pollInterval'), -) - - -# /usr/include/GL/freeglut_std.h 462 -glutKeyboardFunc = platform.createBaseFunction( - 'glutKeyboardFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_ubyte, c_int, c_int)], - doc='glutKeyboardFunc( FUNCTION_TYPE(None, c_ubyte, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 472 -glutKeyboardUpFunc = platform.createBaseFunction( - 'glutKeyboardUpFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_ubyte, c_int, c_int)], - doc='glutKeyboardUpFunc( FUNCTION_TYPE(None, c_ubyte, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 494 -glutLayerGet = platform.createBaseFunction( - 'glutLayerGet', dll=platform.GLUT, resultType=c_int, - argTypes=[GLenum], - doc='glutLayerGet( GLenum(query) ) -> c_int', - argNames=('query',), -) - - -# /usr/include/GL/freeglut_std.h 538 -glutLeaveGameMode = platform.createBaseFunction( - 'glutLeaveGameMode', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutLeaveGameMode( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 393 -glutMainLoop = platform.createBaseFunction( - 'glutMainLoop', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutMainLoop( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 475 -glutMenuStateFunc = platform.createBaseFunction( - 'glutMenuStateFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int)], - doc='glutMenuStateFunc( FUNCTION_TYPE(None, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 476 -glutMenuStatusFunc = platform.createBaseFunction( - 'glutMenuStatusFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int)], - doc='glutMenuStatusFunc( FUNCTION_TYPE(None, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 468 -glutMotionFunc = platform.createBaseFunction( - 'glutMotionFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutMotionFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 467 -glutMouseFunc = platform.createBaseFunction( - 'glutMouseFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)], - doc='glutMouseFunc( FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 477 -glutOverlayDisplayFunc = platform.createBaseFunction( - 'glutOverlayDisplayFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None)], - doc='glutOverlayDisplayFunc( FUNCTION_TYPE(None)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 469 -glutPassiveMotionFunc = platform.createBaseFunction( - 'glutPassiveMotionFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutPassiveMotionFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 411 -glutPopWindow = platform.createBaseFunction( - 'glutPopWindow', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutPopWindow( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 406 -glutPositionWindow = platform.createBaseFunction( - 'glutPositionWindow', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int], - doc='glutPositionWindow( c_int(x), c_int(y) ) -> None', - argNames=('x', 'y'), -) - - -# /usr/include/GL/freeglut_std.h 433 -glutPostOverlayRedisplay = platform.createBaseFunction( - 'glutPostOverlayRedisplay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutPostOverlayRedisplay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 418 -glutPostRedisplay = platform.createBaseFunction( - 'glutPostRedisplay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutPostRedisplay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 434 -glutPostWindowOverlayRedisplay = platform.createBaseFunction( - 'glutPostWindowOverlayRedisplay', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutPostWindowOverlayRedisplay( c_int(window) ) -> None', - argNames=('window',), -) - - -# /usr/include/GL/freeglut_std.h 417 -glutPostWindowRedisplay = platform.createBaseFunction( - 'glutPostWindowRedisplay', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutPostWindowRedisplay( c_int(window) ) -> None', - argNames=('window',), -) - - -# /usr/include/GL/freeglut_std.h 410 -glutPushWindow = platform.createBaseFunction( - 'glutPushWindow', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutPushWindow( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 449 -glutRemoveMenuItem = platform.createBaseFunction( - 'glutRemoveMenuItem', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutRemoveMenuItem( c_int(item) ) -> None', - argNames=('item',), -) - - -# /usr/include/GL/freeglut_std.h 431 -glutRemoveOverlay = platform.createBaseFunction( - 'glutRemoveOverlay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutRemoveOverlay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 568 -glutReportErrors = platform.createBaseFunction( - 'glutReportErrors', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutReportErrors( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 464 -glutReshapeFunc = platform.createBaseFunction( - 'glutReshapeFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutReshapeFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 405 -glutReshapeWindow = platform.createBaseFunction( - 'glutReshapeWindow', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int], - doc='glutReshapeWindow( c_int(width), c_int(height) ) -> None', - argNames=('width', 'height'), -) - - -# /usr/include/GL/freeglut_std.h 553 -glutSetColor = platform.createBaseFunction( - 'glutSetColor', dll=platform.GLUT, resultType=None, - argTypes=[c_int,GLfloat,GLfloat,GLfloat], - doc='glutSetColor( c_int(color), GLfloat(red), GLfloat(green), GLfloat(blue) ) -> None', - argNames=('color', 'red', 'green', 'blue'), -) - - -# /usr/include/GL/freeglut_std.h 425 -glutSetCursor = platform.createBaseFunction( - 'glutSetCursor', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutSetCursor( c_int(cursor) ) -> None', - argNames=('cursor',), -) - - -# /usr/include/GL/freeglut_std.h 404 -glutSetIconTitle = platform.createBaseFunction( - 'glutSetIconTitle', dll=platform.GLUT, resultType=None, - argTypes=[STRING], - doc='glutSetIconTitle( STRING(title) ) -> None', - argNames=('title',), -) - - -# /usr/include/GL/freeglut_std.h 561 -glutSetKeyRepeat = platform.createBaseFunction( - 'glutSetKeyRepeat', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutSetKeyRepeat( c_int(repeatMode) ) -> None', - argNames=('repeatMode',), -) - - -# /usr/include/GL/freeglut_std.h 444 -glutSetMenu = platform.createBaseFunction( - 'glutSetMenu', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutSetMenu( c_int(menu) ) -> None', - argNames=('menu',), -) - - -# /usr/include/GL/freeglut_std.h 401 -glutSetWindow = platform.createBaseFunction( - 'glutSetWindow', dll=platform.GLUT, resultType=None, - argTypes=[c_int], - doc='glutSetWindow( c_int(window) ) -> None', - argNames=('window',), -) - - -# /usr/include/GL/freeglut_std.h 403 -glutSetWindowTitle = platform.createBaseFunction( - 'glutSetWindowTitle', dll=platform.GLUT, resultType=None, - argTypes=[STRING], - doc='glutSetWindowTitle( STRING(title) ) -> None', - argNames=('title',), -) - - -# /usr/include/GL/freeglut_std.h 545 -glutSetupVideoResizing = platform.createBaseFunction( - 'glutSetupVideoResizing', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSetupVideoResizing( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 435 -glutShowOverlay = platform.createBaseFunction( - 'glutShowOverlay', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutShowOverlay( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 407 -glutShowWindow = platform.createBaseFunction( - 'glutShowWindow', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutShowWindow( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 514 -glutSolidCone = platform.createBaseFunction( - 'glutSolidCone', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLdouble,GLint,GLint], - doc='glutSolidCone( GLdouble(base), GLdouble(height), GLint(slices), GLint(stacks) ) -> None', - argNames=('base', 'height', 'slices', 'stacks'), -) - - -# /usr/include/GL/freeglut_std.h 510 -glutSolidCube = platform.createBaseFunction( - 'glutSolidCube', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble], - doc='glutSolidCube( GLdouble(size) ) -> None', - argNames=('size',), -) - - -# /usr/include/GL/freeglut_std.h 519 -glutSolidDodecahedron = platform.createBaseFunction( - 'glutSolidDodecahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSolidDodecahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 525 -glutSolidIcosahedron = platform.createBaseFunction( - 'glutSolidIcosahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSolidIcosahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 521 -glutSolidOctahedron = platform.createBaseFunction( - 'glutSolidOctahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSolidOctahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 512 -glutSolidSphere = platform.createBaseFunction( - 'glutSolidSphere', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLint,GLint], - doc='glutSolidSphere( GLdouble(radius), GLint(slices), GLint(stacks) ) -> None', - argNames=('radius', 'slices', 'stacks'), -) - - -# /usr/include/GL/freeglut_std.h 531 -glutSolidTeapot = platform.createBaseFunction( - 'glutSolidTeapot', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble], - doc='glutSolidTeapot( GLdouble(size) ) -> None', - argNames=('size',), -) - - -# /usr/include/GL/freeglut_std.h 523 -glutSolidTetrahedron = platform.createBaseFunction( - 'glutSolidTetrahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSolidTetrahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 517 -glutSolidTorus = platform.createBaseFunction( - 'glutSolidTorus', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLdouble,GLint,GLint], - doc='glutSolidTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None', - argNames=('innerRadius', 'outerRadius', 'sides', 'rings'), -) - - -# /usr/include/GL/freeglut_std.h 482 -glutSpaceballButtonFunc = platform.createBaseFunction( - 'glutSpaceballButtonFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutSpaceballButtonFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 480 -glutSpaceballMotionFunc = platform.createBaseFunction( - 'glutSpaceballMotionFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int)], - doc='glutSpaceballMotionFunc( FUNCTION_TYPE(None, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 481 -glutSpaceballRotateFunc = platform.createBaseFunction( - 'glutSpaceballRotateFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int)], - doc='glutSpaceballRotateFunc( FUNCTION_TYPE(None, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 463 -glutSpecialFunc = platform.createBaseFunction( - 'glutSpecialFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int)], - doc='glutSpecialFunc( FUNCTION_TYPE(None, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 473 -glutSpecialUpFunc = platform.createBaseFunction( - 'glutSpecialUpFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int)], - doc='glutSpecialUpFunc( FUNCTION_TYPE(None, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 546 -glutStopVideoResizing = platform.createBaseFunction( - 'glutStopVideoResizing', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutStopVideoResizing( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 501 -glutStrokeCharacter = platform.createBaseFunction( - 'glutStrokeCharacter', dll=platform.GLUT, resultType=None, - argTypes=[c_void_p,c_int], - doc='glutStrokeCharacter( c_void_p(font), c_int(character) ) -> None', - argNames=('font', 'character'), -) - - -# /usr/include/GL/freeglut_std.h 504 -glutStrokeLength = platform.createBaseFunction( - 'glutStrokeLength', dll=platform.GLUT, resultType=c_int, - argTypes=[c_void_p,POINTER(c_ubyte)], - doc='glutStrokeLength( c_void_p(font), POINTER(c_ubyte)(string) ) -> c_int', - argNames=('font', 'string'), -) - - -# /usr/include/GL/freeglut_std.h 502 -glutStrokeWidth = platform.createBaseFunction( - 'glutStrokeWidth', dll=platform.GLUT, resultType=c_int, - argTypes=[c_void_p,c_int], - doc='glutStrokeWidth( c_void_p(font), c_int(character) ) -> c_int', - argNames=('font', 'character'), -) - - -# /usr/include/GL/freeglut_std.h 419 -glutSwapBuffers = platform.createBaseFunction( - 'glutSwapBuffers', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutSwapBuffers( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 486 -glutTabletButtonFunc = platform.createBaseFunction( - 'glutTabletButtonFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)], - doc='glutTabletButtonFunc( FUNCTION_TYPE(None, c_int, c_int, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 485 -glutTabletMotionFunc = platform.createBaseFunction( - 'glutTabletMotionFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int, c_int)], - doc='glutTabletMotionFunc( FUNCTION_TYPE(None, c_int, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 456 -glutTimerFunc = platform.createBaseFunction( - 'glutTimerFunc', dll=platform.GLUT, resultType=None, - argTypes=[c_uint,FUNCTION_TYPE(None, c_int),c_int], - doc='glutTimerFunc( c_uint(time), FUNCTION_TYPE(None, c_int)(callback), c_int(value) ) -> None', - argNames=('time', 'callback', 'value'), -) - - -# /usr/include/GL/freeglut_std.h 432 -glutUseLayer = platform.createBaseFunction( - 'glutUseLayer', dll=platform.GLUT, resultType=None, - argTypes=[GLenum], - doc='glutUseLayer( GLenum(layer) ) -> None', - argNames=('layer',), -) - - -# /usr/include/GL/freeglut_std.h 548 -glutVideoPan = platform.createBaseFunction( - 'glutVideoPan', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int,c_int,c_int], - doc='glutVideoPan( c_int(x), c_int(y), c_int(width), c_int(height) ) -> None', - argNames=('x', 'y', 'width', 'height'), -) - - -# /usr/include/GL/freeglut_std.h 547 -glutVideoResize = platform.createBaseFunction( - 'glutVideoResize', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int,c_int,c_int], - doc='glutVideoResize( c_int(x), c_int(y), c_int(width), c_int(height) ) -> None', - argNames=('x', 'y', 'width', 'height'), -) - - -# /usr/include/GL/freeglut_std.h 544 -glutVideoResizeGet = platform.createBaseFunction( - 'glutVideoResizeGet', dll=platform.GLUT, resultType=c_int, - argTypes=[GLenum], - doc='glutVideoResizeGet( GLenum(query) ) -> c_int', - argNames=('query',), -) - - -# /usr/include/GL/freeglut_std.h 465 -glutVisibilityFunc = platform.createBaseFunction( - 'glutVisibilityFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int)], - doc='glutVisibilityFunc( FUNCTION_TYPE(None, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 424 -glutWarpPointer = platform.createBaseFunction( - 'glutWarpPointer', dll=platform.GLUT, resultType=None, - argTypes=[c_int,c_int], - doc='glutWarpPointer( c_int(x), c_int(y) ) -> None', - argNames=('x', 'y'), -) - - -# /usr/include/GL/freeglut_std.h 478 -glutWindowStatusFunc = platform.createBaseFunction( - 'glutWindowStatusFunc', dll=platform.GLUT, resultType=None, - argTypes=[FUNCTION_TYPE(None, c_int)], - doc='glutWindowStatusFunc( FUNCTION_TYPE(None, c_int)(callback) ) -> None', - argNames=('callback',), -) - - -# /usr/include/GL/freeglut_std.h 513 -glutWireCone = platform.createBaseFunction( - 'glutWireCone', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLdouble,GLint,GLint], - doc='glutWireCone( GLdouble(base), GLdouble(height), GLint(slices), GLint(stacks) ) -> None', - argNames=('base', 'height', 'slices', 'stacks'), -) - - -# /usr/include/GL/freeglut_std.h 509 -glutWireCube = platform.createBaseFunction( - 'glutWireCube', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble], - doc='glutWireCube( GLdouble(size) ) -> None', - argNames=('size',), -) - - -# /usr/include/GL/freeglut_std.h 518 -glutWireDodecahedron = platform.createBaseFunction( - 'glutWireDodecahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutWireDodecahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 524 -glutWireIcosahedron = platform.createBaseFunction( - 'glutWireIcosahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutWireIcosahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 520 -glutWireOctahedron = platform.createBaseFunction( - 'glutWireOctahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutWireOctahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 511 -glutWireSphere = platform.createBaseFunction( - 'glutWireSphere', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLint,GLint], - doc='glutWireSphere( GLdouble(radius), GLint(slices), GLint(stacks) ) -> None', - argNames=('radius', 'slices', 'stacks'), -) - - -# /usr/include/GL/freeglut_std.h 530 -glutWireTeapot = platform.createBaseFunction( - 'glutWireTeapot', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble], - doc='glutWireTeapot( GLdouble(size) ) -> None', - argNames=('size',), -) - - -# /usr/include/GL/freeglut_std.h 522 -glutWireTetrahedron = platform.createBaseFunction( - 'glutWireTetrahedron', dll=platform.GLUT, resultType=None, - argTypes=[], - doc='glutWireTetrahedron( ) -> None', - argNames=(), -) - - -# /usr/include/GL/freeglut_std.h 516 -glutWireTorus = platform.createBaseFunction( - 'glutWireTorus', dll=platform.GLUT, resultType=None, - argTypes=[GLdouble,GLdouble,GLint,GLint], - doc='glutWireTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None', - argNames=('innerRadius', 'outerRadius', 'sides', 'rings'), -) - -__all__ = [ - 'GLUT_ACCUM', - 'GLUT_ACTIVE_ALT', - 'GLUT_ACTIVE_CTRL', - 'GLUT_ACTIVE_SHIFT', - 'GLUT_ALPHA', - 'GLUT_API_VERSION', - 'GLUT_BLUE', - 'GLUT_CURSOR_BOTTOM_LEFT_CORNER', - 'GLUT_CURSOR_BOTTOM_RIGHT_CORNER', - 'GLUT_CURSOR_BOTTOM_SIDE', - 'GLUT_CURSOR_CROSSHAIR', - 'GLUT_CURSOR_CYCLE', - 'GLUT_CURSOR_DESTROY', - 'GLUT_CURSOR_FULL_CROSSHAIR', - 'GLUT_CURSOR_HELP', - 'GLUT_CURSOR_INFO', - 'GLUT_CURSOR_INHERIT', - 'GLUT_CURSOR_LEFT_ARROW', - 'GLUT_CURSOR_LEFT_RIGHT', - 'GLUT_CURSOR_LEFT_SIDE', - 'GLUT_CURSOR_NONE', - 'GLUT_CURSOR_RIGHT_ARROW', - 'GLUT_CURSOR_RIGHT_SIDE', - 'GLUT_CURSOR_SPRAY', - 'GLUT_CURSOR_TEXT', - 'GLUT_CURSOR_TOP_LEFT_CORNER', - 'GLUT_CURSOR_TOP_RIGHT_CORNER', - 'GLUT_CURSOR_TOP_SIDE', - 'GLUT_CURSOR_UP_DOWN', - 'GLUT_CURSOR_WAIT', - 'GLUT_DEPTH', - 'GLUT_DEVICE_IGNORE_KEY_REPEAT', - 'GLUT_DEVICE_KEY_REPEAT', - 'GLUT_DISPLAY_MODE_POSSIBLE', - 'GLUT_DOUBLE', - 'GLUT_DOWN', - 'GLUT_ELAPSED_TIME', - 'GLUT_ENTERED', - 'GLUT_FULLY_COVERED', - 'GLUT_FULLY_RETAINED', - 'GLUT_GAME_MODE_ACTIVE', - 'GLUT_GAME_MODE_DISPLAY_CHANGED', - 'GLUT_GAME_MODE_HEIGHT', - 'GLUT_GAME_MODE_PIXEL_DEPTH', - 'GLUT_GAME_MODE_POSSIBLE', - 'GLUT_GAME_MODE_REFRESH_RATE', - 'GLUT_GAME_MODE_WIDTH', - 'GLUT_GREEN', - 'GLUT_HAS_DIAL_AND_BUTTON_BOX', - 'GLUT_HAS_JOYSTICK', - 'GLUT_HAS_KEYBOARD', - 'GLUT_HAS_MOUSE', - 'GLUT_HAS_OVERLAY', - 'GLUT_HAS_SPACEBALL', - 'GLUT_HAS_TABLET', - 'GLUT_HIDDEN', - 'GLUT_INDEX', - 'GLUT_INIT_DISPLAY_MODE', - 'GLUT_INIT_STATE', - 'GLUT_INIT_WINDOW_HEIGHT', - 'GLUT_INIT_WINDOW_WIDTH', - 'GLUT_INIT_WINDOW_X', - 'GLUT_INIT_WINDOW_Y', - 'GLUT_JOYSTICK_AXES', - 'GLUT_JOYSTICK_BUTTONS', - 'GLUT_JOYSTICK_BUTTON_A', - 'GLUT_JOYSTICK_BUTTON_B', - 'GLUT_JOYSTICK_BUTTON_C', - 'GLUT_JOYSTICK_BUTTON_D', - 'GLUT_JOYSTICK_POLL_RATE', - 'GLUT_KEY_DOWN', - 'GLUT_KEY_END', - 'GLUT_KEY_F1', - 'GLUT_KEY_F10', - 'GLUT_KEY_F11', - 'GLUT_KEY_F12', - 'GLUT_KEY_F2', - 'GLUT_KEY_F3', - 'GLUT_KEY_F4', - 'GLUT_KEY_F5', - 'GLUT_KEY_F6', - 'GLUT_KEY_F7', - 'GLUT_KEY_F8', - 'GLUT_KEY_F9', - 'GLUT_KEY_HOME', - 'GLUT_KEY_INSERT', - 'GLUT_KEY_LEFT', - 'GLUT_KEY_PAGE_DOWN', - 'GLUT_KEY_PAGE_UP', - 'GLUT_KEY_REPEAT_DEFAULT', - 'GLUT_KEY_REPEAT_OFF', - 'GLUT_KEY_REPEAT_ON', - 'GLUT_KEY_RIGHT', - 'GLUT_KEY_UP', - 'GLUT_LAYER_IN_USE', - 'GLUT_LEFT', - 'GLUT_LEFT_BUTTON', - 'GLUT_LUMINANCE', - 'GLUT_MENU_IN_USE', - 'GLUT_MENU_NOT_IN_USE', - 'GLUT_MENU_NUM_ITEMS', - 'GLUT_MIDDLE_BUTTON', - 'GLUT_MULTISAMPLE', - 'GLUT_NORMAL', - 'GLUT_NORMAL_DAMAGED', - 'GLUT_NOT_VISIBLE', - 'GLUT_NUM_BUTTON_BOX_BUTTONS', - 'GLUT_NUM_DIALS', - 'GLUT_NUM_MOUSE_BUTTONS', - 'GLUT_NUM_SPACEBALL_BUTTONS', - 'GLUT_NUM_TABLET_BUTTONS', - 'GLUT_OVERLAY', - 'GLUT_OVERLAY_DAMAGED', - 'GLUT_OVERLAY_POSSIBLE', - 'GLUT_OWNS_JOYSTICK', - 'GLUT_PARTIALLY_RETAINED', - 'GLUT_RED', - 'GLUT_RGB', - 'GLUT_RGBA', - 'GLUT_RIGHT_BUTTON', - 'GLUT_SCREEN_HEIGHT', - 'GLUT_SCREEN_HEIGHT_MM', - 'GLUT_SCREEN_WIDTH', - 'GLUT_SCREEN_WIDTH_MM', - 'GLUT_SINGLE', - 'GLUT_STENCIL', - 'GLUT_STEREO', - 'GLUT_TRANSPARENT_INDEX', - 'GLUT_UP', - 'GLUT_VIDEO_RESIZE_HEIGHT', - 'GLUT_VIDEO_RESIZE_HEIGHT_DELTA', - 'GLUT_VIDEO_RESIZE_IN_USE', - 'GLUT_VIDEO_RESIZE_POSSIBLE', - 'GLUT_VIDEO_RESIZE_WIDTH', - 'GLUT_VIDEO_RESIZE_WIDTH_DELTA', - 'GLUT_VIDEO_RESIZE_X', - 'GLUT_VIDEO_RESIZE_X_DELTA', - 'GLUT_VIDEO_RESIZE_Y', - 'GLUT_VIDEO_RESIZE_Y_DELTA', - 'GLUT_VISIBLE', - 'GLUT_WINDOW_ACCUM_ALPHA_SIZE', - 'GLUT_WINDOW_ACCUM_BLUE_SIZE', - 'GLUT_WINDOW_ACCUM_GREEN_SIZE', - 'GLUT_WINDOW_ACCUM_RED_SIZE', - 'GLUT_WINDOW_ALPHA_SIZE', - 'GLUT_WINDOW_BLUE_SIZE', - 'GLUT_WINDOW_BUFFER_SIZE', - 'GLUT_WINDOW_COLORMAP_SIZE', - 'GLUT_WINDOW_CURSOR', - 'GLUT_WINDOW_DEPTH_SIZE', - 'GLUT_WINDOW_DOUBLEBUFFER', - 'GLUT_WINDOW_FORMAT_ID', - 'GLUT_WINDOW_GREEN_SIZE', - 'GLUT_WINDOW_HEIGHT', - 'GLUT_WINDOW_NUM_CHILDREN', - 'GLUT_WINDOW_NUM_SAMPLES', - 'GLUT_WINDOW_PARENT', - 'GLUT_WINDOW_RED_SIZE', - 'GLUT_WINDOW_RGBA', - 'GLUT_WINDOW_STENCIL_SIZE', - 'GLUT_WINDOW_STEREO', - 'GLUT_WINDOW_WIDTH', - 'GLUT_WINDOW_X', - 'GLUT_WINDOW_Y', - 'GLUT_XLIB_IMPLEMENTATION', - 'GLdouble', - 'GLenum', - 'GLfloat', - 'GLint', - 'glutAddMenuEntry', - 'glutAddSubMenu', - 'glutAttachMenu', - 'glutBitmapCharacter', - 'glutBitmapLength', - 'glutBitmapWidth', - 'glutButtonBoxFunc', - 'glutChangeToMenuEntry', - 'glutChangeToSubMenu', - 'glutCopyColormap', - 'glutCreateMenu', - 'glutCreateSubWindow', - 'glutCreateWindow', - 'glutDestroyMenu', - 'glutDestroyWindow', - 'glutDetachMenu', - 'glutDeviceGet', - 'glutDialsFunc', - 'glutDisplayFunc', - 'glutEnterGameMode', - 'glutEntryFunc', - 'glutEstablishOverlay', - 'glutExtensionSupported', - 'glutForceJoystickFunc', - 'glutFullScreen', - 'glutGameModeGet', - 'glutGameModeString', - 'glutGet', - 'glutGetColor', - 'glutGetMenu', - 'glutGetModifiers', - 'glutGetWindow', - 'glutHideOverlay', - 'glutHideWindow', - 'glutIconifyWindow', - 'glutIdleFunc', - 'glutIgnoreKeyRepeat', - 'glutInit', - 'glutInitDisplayMode', - 'glutInitDisplayString', - 'glutInitWindowPosition', - 'glutInitWindowSize', - 'glutJoystickFunc', - 'glutKeyboardFunc', - 'glutKeyboardUpFunc', - 'glutLayerGet', - 'glutLeaveGameMode', - 'glutMainLoop', - 'glutMenuStateFunc', - 'glutMenuStatusFunc', - 'glutMotionFunc', - 'glutMouseFunc', - 'glutOverlayDisplayFunc', - 'glutPassiveMotionFunc', - 'glutPopWindow', - 'glutPositionWindow', - 'glutPostOverlayRedisplay', - 'glutPostRedisplay', - 'glutPostWindowOverlayRedisplay', - 'glutPostWindowRedisplay', - 'glutPushWindow', - 'glutRemoveMenuItem', - 'glutRemoveOverlay', - 'glutReportErrors', - 'glutReshapeFunc', - 'glutReshapeWindow', - 'glutSetColor', - 'glutSetCursor', - 'glutSetIconTitle', - 'glutSetKeyRepeat', - 'glutSetMenu', - 'glutSetWindow', - 'glutSetWindowTitle', - 'glutSetupVideoResizing', - 'glutShowOverlay', - 'glutShowWindow', - 'glutSolidCone', - 'glutSolidCube', - 'glutSolidDodecahedron', - 'glutSolidIcosahedron', - 'glutSolidOctahedron', - 'glutSolidSphere', - 'glutSolidTeapot', - 'glutSolidTetrahedron', - 'glutSolidTorus', - 'glutSpaceballButtonFunc', - 'glutSpaceballMotionFunc', - 'glutSpaceballRotateFunc', - 'glutSpecialFunc', - 'glutSpecialUpFunc', - 'glutStopVideoResizing', - 'glutStrokeCharacter', - 'glutStrokeLength', - 'glutStrokeWidth', - 'glutSwapBuffers', - 'glutTabletButtonFunc', - 'glutTabletMotionFunc', - 'glutTimerFunc', - 'glutUseLayer', - 'glutVideoPan', - 'glutVideoResize', - 'glutVideoResizeGet', - 'glutVisibilityFunc', - 'glutWarpPointer', - 'glutWindowStatusFunc', - 'glutWireCone', - 'glutWireCube', - 'glutWireDodecahedron', - 'glutWireIcosahedron', - 'glutWireOctahedron', - 'glutWireSphere', - 'glutWireTeapot', - 'glutWireTetrahedron', - 'glutWireTorus' -] - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLX/annotations.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLX/annotations.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLX/annotations.py 2006-11-20 07:25:49.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/raw/GLX/annotations.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,155 +0,0 @@ -"""Array-size annotations for OpenGL.raw.GLX - -Automatically generated by the generateraw script, do not edit! -""" -from OpenGL.raw import GLX as raw - -from ctypes import * -from OpenGL import platform, arrays -from OpenGL.constant import Constant -from OpenGL import constants as GLconstants -GLvoid = GLconstants.GLvoid - -STRING = c_char_p -WSTRING = c_wchar_p - - -glMultiTexCoord1dvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord1dvARB, - 1, - arrays.GLdoubleArray, - 'v', -) - -glMultiTexCoord1fvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord1fvARB, - 1, - arrays.GLfloatArray, - 'v', -) - -glMultiTexCoord1ivARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord1ivARB, - 1, - arrays.GLintArray, - 'v', -) - -glMultiTexCoord1svARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord1svARB, - 1, - arrays.GLshortArray, - 'v', -) - -glMultiTexCoord2dvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord2dvARB, - 2, - arrays.GLdoubleArray, - 'v', -) - -glMultiTexCoord2fvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord2fvARB, - 2, - arrays.GLfloatArray, - 'v', -) - -glMultiTexCoord2ivARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord2ivARB, - 2, - arrays.GLintArray, - 'v', -) - -glMultiTexCoord2svARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord2svARB, - 2, - arrays.GLshortArray, - 'v', -) - -glMultiTexCoord3dvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord3dvARB, - 3, - arrays.GLdoubleArray, - 'v', -) - -glMultiTexCoord3fvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord3fvARB, - 3, - arrays.GLfloatArray, - 'v', -) - -glMultiTexCoord3ivARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord3ivARB, - 3, - arrays.GLintArray, - 'v', -) - -glMultiTexCoord3svARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord3svARB, - 3, - arrays.GLshortArray, - 'v', -) - -glMultiTexCoord4dvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord4dvARB, - 4, - arrays.GLdoubleArray, - 'v', -) - -glMultiTexCoord4fvARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord4fvARB, - 4, - arrays.GLfloatArray, - 'v', -) - -glMultiTexCoord4ivARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord4ivARB, - 4, - arrays.GLintArray, - 'v', -) - -glMultiTexCoord4svARB = arrays.setInputArraySizeType( - raw.glMultiTexCoord4svARB, - 4, - arrays.GLshortArray, - 'v', -) - -glXGetProcAddress = arrays.setInputArraySizeType( - raw.glXGetProcAddress, - None, # XXX Could not determine size of argument procname for glXGetProcAddress arrays.GLubyteArray - arrays.GLubyteArray, - 'procname', -) - -__all__ = [ - 'glMultiTexCoord1dvARB', - 'glMultiTexCoord1fvARB', - 'glMultiTexCoord1ivARB', - 'glMultiTexCoord1svARB', - 'glMultiTexCoord2dvARB', - 'glMultiTexCoord2fvARB', - 'glMultiTexCoord2ivARB', - 'glMultiTexCoord2svARB', - 'glMultiTexCoord3dvARB', - 'glMultiTexCoord3fvARB', - 'glMultiTexCoord3ivARB', - 'glMultiTexCoord3svARB', - 'glMultiTexCoord4dvARB', - 'glMultiTexCoord4fvARB', - 'glMultiTexCoord4ivARB', - 'glMultiTexCoord4svARB', - 'glXGetProcAddress' -] - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLX/constants.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLX/constants.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLX/constants.py 2006-11-20 07:25:39.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/raw/GLX/constants.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,901 +0,0 @@ -"""Constants for OpenGL.GLX - -Automatically generated by the generateraw script, do not edit! -""" - -from ctypes import * -from OpenGL import platform, arrays -from OpenGL.constant import Constant -from OpenGL import constants as GLconstants -GLvoid = GLconstants.GLvoid - -STRING = c_char_p -from OpenGL.constants import GL_BYTE -from OpenGL.constants import GL_DOUBLE -from OpenGL.constants import GL_FALSE -from OpenGL.constants import GL_FLOAT -from OpenGL.constants import GL_INT -from OpenGL.constants import GL_SHORT -from OpenGL.constants import GL_TRUE -from OpenGL.constants import GL_UNSIGNED_BYTE -from OpenGL.constants import GL_UNSIGNED_INT -from OpenGL.constants import GL_UNSIGNED_SHORT - - -CWX = Constant( 'CWX', 1) -CWY = Constant( 'CWY', 2) -FUNCPROTO = Constant( 'FUNCPROTO', 15) -GLX_3DFX_FULLSCREEN_MODE_MESA = Constant( 'GLX_3DFX_FULLSCREEN_MODE_MESA', 2) -GLX_3DFX_WINDOW_MODE_MESA = Constant( 'GLX_3DFX_WINDOW_MODE_MESA', 1) -GLX_ACCUM_ALPHA_SIZE = Constant( 'GLX_ACCUM_ALPHA_SIZE', 17) -GLX_ACCUM_BLUE_SIZE = Constant( 'GLX_ACCUM_BLUE_SIZE', 16) -GLX_ACCUM_BUFFER_BIT = Constant( 'GLX_ACCUM_BUFFER_BIT', 128) -GLX_ACCUM_BUFFER_BIT_SGIX = Constant( 'GLX_ACCUM_BUFFER_BIT_SGIX', 128) -GLX_ACCUM_GREEN_SIZE = Constant( 'GLX_ACCUM_GREEN_SIZE', 15) -GLX_ACCUM_RED_SIZE = Constant( 'GLX_ACCUM_RED_SIZE', 14) -GLX_ALPHA_SIZE = Constant( 'GLX_ALPHA_SIZE', 11) -GLX_AUX0_EXT = Constant( 'GLX_AUX0_EXT', 8418) -GLX_AUX1_EXT = Constant( 'GLX_AUX1_EXT', 8419) -GLX_AUX2_EXT = Constant( 'GLX_AUX2_EXT', 8420) -GLX_AUX3_EXT = Constant( 'GLX_AUX3_EXT', 8421) -GLX_AUX4_EXT = Constant( 'GLX_AUX4_EXT', 8422) -GLX_AUX5_EXT = Constant( 'GLX_AUX5_EXT', 8423) -GLX_AUX6_EXT = Constant( 'GLX_AUX6_EXT', 8424) -GLX_AUX7_EXT = Constant( 'GLX_AUX7_EXT', 8425) -GLX_AUX8_EXT = Constant( 'GLX_AUX8_EXT', 8426) -GLX_AUX9_EXT = Constant( 'GLX_AUX9_EXT', 8427) -GLX_AUX_BUFFERS = Constant( 'GLX_AUX_BUFFERS', 7) -GLX_AUX_BUFFERS_BIT = Constant( 'GLX_AUX_BUFFERS_BIT', 16) -GLX_AUX_BUFFERS_BIT_SGIX = Constant( 'GLX_AUX_BUFFERS_BIT_SGIX', 16) -GLX_BACK_LEFT_BUFFER_BIT = Constant( 'GLX_BACK_LEFT_BUFFER_BIT', 4) -GLX_BACK_LEFT_BUFFER_BIT_SGIX = Constant( 'GLX_BACK_LEFT_BUFFER_BIT_SGIX', 4) -GLX_BACK_LEFT_EXT = Constant( 'GLX_BACK_LEFT_EXT', 8416) -GLX_BACK_RIGHT_BUFFER_BIT = Constant( 'GLX_BACK_RIGHT_BUFFER_BIT', 8) -GLX_BACK_RIGHT_BUFFER_BIT_SGIX = Constant( 'GLX_BACK_RIGHT_BUFFER_BIT_SGIX', 8) -GLX_BACK_RIGHT_EXT = Constant( 'GLX_BACK_RIGHT_EXT', 8417) -GLX_BAD_ATTRIBUTE = Constant( 'GLX_BAD_ATTRIBUTE', 2) -GLX_BAD_CONTEXT = Constant( 'GLX_BAD_CONTEXT', 5) -GLX_BAD_ENUM = Constant( 'GLX_BAD_ENUM', 7) -GLX_BAD_HYPERPIPE_CONFIG_SGIX = Constant( 'GLX_BAD_HYPERPIPE_CONFIG_SGIX', 91) -GLX_BAD_HYPERPIPE_SGIX = Constant( 'GLX_BAD_HYPERPIPE_SGIX', 92) -GLX_BAD_SCREEN = Constant( 'GLX_BAD_SCREEN', 1) -GLX_BAD_VALUE = Constant( 'GLX_BAD_VALUE', 6) -GLX_BAD_VISUAL = Constant( 'GLX_BAD_VISUAL', 4) -GLX_BIND_TO_MIPMAP_TEXTURE_EXT = Constant( 'GLX_BIND_TO_MIPMAP_TEXTURE_EXT', 8402) -GLX_BIND_TO_TEXTURE_RGBA_EXT = Constant( 'GLX_BIND_TO_TEXTURE_RGBA_EXT', 8401) -GLX_BIND_TO_TEXTURE_RGB_EXT = Constant( 'GLX_BIND_TO_TEXTURE_RGB_EXT', 8400) -GLX_BIND_TO_TEXTURE_TARGETS_EXT = Constant( 'GLX_BIND_TO_TEXTURE_TARGETS_EXT', 8403) -GLX_BLENDED_RGBA_SGIS = Constant( 'GLX_BLENDED_RGBA_SGIS', 32805) -GLX_BLUE_SIZE = Constant( 'GLX_BLUE_SIZE', 10) -GLX_BUFFER_CLOBBER_MASK_SGIX = Constant( 'GLX_BUFFER_CLOBBER_MASK_SGIX', 134217728) -GLX_BUFFER_SIZE = Constant( 'GLX_BUFFER_SIZE', 2) -GLX_COLOR_INDEX_BIT = Constant( 'GLX_COLOR_INDEX_BIT', 2) -GLX_COLOR_INDEX_BIT_SGIX = Constant( 'GLX_COLOR_INDEX_BIT_SGIX', 2) -GLX_COLOR_INDEX_TYPE = Constant( 'GLX_COLOR_INDEX_TYPE', 32789) -GLX_COLOR_INDEX_TYPE_SGIX = Constant( 'GLX_COLOR_INDEX_TYPE_SGIX', 32789) -GLX_CONFIG_CAVEAT = Constant( 'GLX_CONFIG_CAVEAT', 32) -GLX_DAMAGED = Constant( 'GLX_DAMAGED', 32800) -GLX_DAMAGED_SGIX = Constant( 'GLX_DAMAGED_SGIX', 32800) -GLX_DEPTH_BUFFER_BIT = Constant( 'GLX_DEPTH_BUFFER_BIT', 32) -GLX_DEPTH_BUFFER_BIT_SGIX = Constant( 'GLX_DEPTH_BUFFER_BIT_SGIX', 32) -GLX_DEPTH_SIZE = Constant( 'GLX_DEPTH_SIZE', 12) -GLX_DIGITAL_MEDIA_PBUFFER_SGIX = Constant( 'GLX_DIGITAL_MEDIA_PBUFFER_SGIX', 32804) -GLX_DIRECT_COLOR = Constant( 'GLX_DIRECT_COLOR', 32771) -GLX_DIRECT_COLOR_EXT = Constant( 'GLX_DIRECT_COLOR_EXT', 32771) -GLX_DONT_CARE = Constant( 'GLX_DONT_CARE', 4294967295) -GLX_DOUBLEBUFFER = Constant( 'GLX_DOUBLEBUFFER', 5) -GLX_DRAWABLE_TYPE = Constant( 'GLX_DRAWABLE_TYPE', 32784) -GLX_DRAWABLE_TYPE_SGIX = Constant( 'GLX_DRAWABLE_TYPE_SGIX', 32784) -GLX_EVENT_MASK = Constant( 'GLX_EVENT_MASK', 32799) -GLX_EVENT_MASK_SGIX = Constant( 'GLX_EVENT_MASK_SGIX', 32799) -GLX_EXTENSIONS = Constant( 'GLX_EXTENSIONS', 3) -GLX_EXTENSION_NAME = Constant( 'GLX_EXTENSION_NAME', 'GLX') -GLX_FBCONFIG_ID = Constant( 'GLX_FBCONFIG_ID', 32787) -GLX_FBCONFIG_ID_SGIX = Constant( 'GLX_FBCONFIG_ID_SGIX', 32787) -GLX_FLOAT_COMPONENTS_NV = Constant( 'GLX_FLOAT_COMPONENTS_NV', 8368) -GLX_FRONT_LEFT_BUFFER_BIT = Constant( 'GLX_FRONT_LEFT_BUFFER_BIT', 1) -GLX_FRONT_LEFT_BUFFER_BIT_SGIX = Constant( 'GLX_FRONT_LEFT_BUFFER_BIT_SGIX', 1) -GLX_FRONT_LEFT_EXT = Constant( 'GLX_FRONT_LEFT_EXT', 8414) -GLX_FRONT_RIGHT_BUFFER_BIT = Constant( 'GLX_FRONT_RIGHT_BUFFER_BIT', 2) -GLX_FRONT_RIGHT_BUFFER_BIT_SGIX = Constant( 'GLX_FRONT_RIGHT_BUFFER_BIT_SGIX', 2) -GLX_FRONT_RIGHT_EXT = Constant( 'GLX_FRONT_RIGHT_EXT', 8415) -GLX_GLXEXT_VERSION = Constant( 'GLX_GLXEXT_VERSION', 11) -GLX_GRAY_SCALE = Constant( 'GLX_GRAY_SCALE', 32774) -GLX_GRAY_SCALE_EXT = Constant( 'GLX_GRAY_SCALE_EXT', 32774) -GLX_GREEN_SIZE = Constant( 'GLX_GREEN_SIZE', 9) -GLX_HEIGHT = Constant( 'GLX_HEIGHT', 32798) -GLX_HEIGHT_SGIX = Constant( 'GLX_HEIGHT_SGIX', 32798) -GLX_HYPERPIPE_DISPLAY_PIPE_SGIX = Constant( 'GLX_HYPERPIPE_DISPLAY_PIPE_SGIX', 1) -GLX_HYPERPIPE_ID_SGIX = Constant( 'GLX_HYPERPIPE_ID_SGIX', 32816) -GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX = Constant( 'GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX', 80) -GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX = Constant( 'GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX', 4) -GLX_HYPERPIPE_RENDER_PIPE_SGIX = Constant( 'GLX_HYPERPIPE_RENDER_PIPE_SGIX', 2) -GLX_HYPERPIPE_STEREO_SGIX = Constant( 'GLX_HYPERPIPE_STEREO_SGIX', 3) -GLX_LARGEST_PBUFFER = Constant( 'GLX_LARGEST_PBUFFER', 32796) -GLX_LARGEST_PBUFFER_SGIX = Constant( 'GLX_LARGEST_PBUFFER_SGIX', 32796) -GLX_LEVEL = Constant( 'GLX_LEVEL', 3) -GLX_MAX_PBUFFER_HEIGHT = Constant( 'GLX_MAX_PBUFFER_HEIGHT', 32791) -GLX_MAX_PBUFFER_HEIGHT_SGIX = Constant( 'GLX_MAX_PBUFFER_HEIGHT_SGIX', 32791) -GLX_MAX_PBUFFER_PIXELS = Constant( 'GLX_MAX_PBUFFER_PIXELS', 32792) -GLX_MAX_PBUFFER_PIXELS_SGIX = Constant( 'GLX_MAX_PBUFFER_PIXELS_SGIX', 32792) -GLX_MAX_PBUFFER_WIDTH = Constant( 'GLX_MAX_PBUFFER_WIDTH', 32790) -GLX_MAX_PBUFFER_WIDTH_SGIX = Constant( 'GLX_MAX_PBUFFER_WIDTH_SGIX', 32790) -GLX_MIPMAP_TEXTURE_EXT = Constant( 'GLX_MIPMAP_TEXTURE_EXT', 8407) -GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = Constant( 'GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS', 32807) -GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS = Constant( 'GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS', 32806) -GLX_NONE = Constant( 'GLX_NONE', 32768) -GLX_NONE_EXT = Constant( 'GLX_NONE_EXT', 32768) -GLX_NON_CONFORMANT_CONFIG = Constant( 'GLX_NON_CONFORMANT_CONFIG', 32781) -GLX_NON_CONFORMANT_VISUAL_EXT = Constant( 'GLX_NON_CONFORMANT_VISUAL_EXT', 32781) -GLX_NO_EXTENSION = Constant( 'GLX_NO_EXTENSION', 3) -GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX = Constant( 'GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX', 32794) -GLX_OPTIMAL_PBUFFER_WIDTH_SGIX = Constant( 'GLX_OPTIMAL_PBUFFER_WIDTH_SGIX', 32793) -GLX_PBUFFER = Constant( 'GLX_PBUFFER', 32803) -GLX_PBUFFER_BIT = Constant( 'GLX_PBUFFER_BIT', 4) -GLX_PBUFFER_BIT_SGIX = Constant( 'GLX_PBUFFER_BIT_SGIX', 4) -GLX_PBUFFER_CLOBBER_MASK = Constant( 'GLX_PBUFFER_CLOBBER_MASK', 134217728) -GLX_PBUFFER_HEIGHT = Constant( 'GLX_PBUFFER_HEIGHT', 32832) -GLX_PBUFFER_SGIX = Constant( 'GLX_PBUFFER_SGIX', 32803) -GLX_PBUFFER_WIDTH = Constant( 'GLX_PBUFFER_WIDTH', 32833) -GLX_PIPE_RECT_LIMITS_SGIX = Constant( 'GLX_PIPE_RECT_LIMITS_SGIX', 2) -GLX_PIPE_RECT_SGIX = Constant( 'GLX_PIPE_RECT_SGIX', 1) -GLX_PIXMAP_BIT = Constant( 'GLX_PIXMAP_BIT', 2) -GLX_PIXMAP_BIT_SGIX = Constant( 'GLX_PIXMAP_BIT_SGIX', 2) -GLX_PRESERVED_CONTENTS = Constant( 'GLX_PRESERVED_CONTENTS', 32795) -GLX_PRESERVED_CONTENTS_SGIX = Constant( 'GLX_PRESERVED_CONTENTS_SGIX', 32795) -GLX_PSEUDO_COLOR = Constant( 'GLX_PSEUDO_COLOR', 32772) -GLX_PSEUDO_COLOR_EXT = Constant( 'GLX_PSEUDO_COLOR_EXT', 32772) -GLX_RED_SIZE = Constant( 'GLX_RED_SIZE', 8) -GLX_RENDER_TYPE = Constant( 'GLX_RENDER_TYPE', 32785) -GLX_RENDER_TYPE_SGIX = Constant( 'GLX_RENDER_TYPE_SGIX', 32785) -GLX_RGBA = Constant( 'GLX_RGBA', 4) -GLX_RGBA_BIT = Constant( 'GLX_RGBA_BIT', 1) -GLX_RGBA_BIT_SGIX = Constant( 'GLX_RGBA_BIT_SGIX', 1) -GLX_RGBA_FLOAT_BIT_ARB = Constant( 'GLX_RGBA_FLOAT_BIT_ARB', 4) -GLX_RGBA_FLOAT_TYPE_ARB = Constant( 'GLX_RGBA_FLOAT_TYPE_ARB', 8377) -GLX_RGBA_TYPE = Constant( 'GLX_RGBA_TYPE', 32788) -GLX_RGBA_TYPE_SGIX = Constant( 'GLX_RGBA_TYPE_SGIX', 32788) -GLX_SAMPLES = Constant( 'GLX_SAMPLES', 100001) -GLX_SAMPLES_3DFX = Constant( 'GLX_SAMPLES_3DFX', 32849) -GLX_SAMPLES_ARB = Constant( 'GLX_SAMPLES_ARB', 100001) -GLX_SAMPLES_SGIS = Constant( 'GLX_SAMPLES_SGIS', 100001) -GLX_SAMPLE_BUFFERS = Constant( 'GLX_SAMPLE_BUFFERS', 100000) -GLX_SAMPLE_BUFFERS_3DFX = Constant( 'GLX_SAMPLE_BUFFERS_3DFX', 32848) -GLX_SAMPLE_BUFFERS_ARB = Constant( 'GLX_SAMPLE_BUFFERS_ARB', 100000) -GLX_SAMPLE_BUFFERS_BIT_SGIX = Constant( 'GLX_SAMPLE_BUFFERS_BIT_SGIX', 256) -GLX_SAMPLE_BUFFERS_SGIS = Constant( 'GLX_SAMPLE_BUFFERS_SGIS', 100000) -GLX_SAVED = Constant( 'GLX_SAVED', 32801) -GLX_SAVED_SGIX = Constant( 'GLX_SAVED_SGIX', 32801) -GLX_SCREEN = Constant( 'GLX_SCREEN', 32780) -GLX_SCREEN_EXT = Constant( 'GLX_SCREEN_EXT', 32780) -GLX_SHARE_CONTEXT_EXT = Constant( 'GLX_SHARE_CONTEXT_EXT', 32778) -GLX_SLOW_CONFIG = Constant( 'GLX_SLOW_CONFIG', 32769) -GLX_SLOW_VISUAL_EXT = Constant( 'GLX_SLOW_VISUAL_EXT', 32769) -GLX_STATIC_COLOR = Constant( 'GLX_STATIC_COLOR', 32773) -GLX_STATIC_COLOR_EXT = Constant( 'GLX_STATIC_COLOR_EXT', 32773) -GLX_STATIC_GRAY = Constant( 'GLX_STATIC_GRAY', 32775) -GLX_STATIC_GRAY_EXT = Constant( 'GLX_STATIC_GRAY_EXT', 32775) -GLX_STENCIL_BUFFER_BIT = Constant( 'GLX_STENCIL_BUFFER_BIT', 64) -GLX_STENCIL_BUFFER_BIT_SGIX = Constant( 'GLX_STENCIL_BUFFER_BIT_SGIX', 64) -GLX_STENCIL_SIZE = Constant( 'GLX_STENCIL_SIZE', 13) -GLX_STEREO = Constant( 'GLX_STEREO', 6) -GLX_SWAP_COPY_OML = Constant( 'GLX_SWAP_COPY_OML', 32866) -GLX_SWAP_EXCHANGE_OML = Constant( 'GLX_SWAP_EXCHANGE_OML', 32865) -GLX_SWAP_METHOD_OML = Constant( 'GLX_SWAP_METHOD_OML', 32864) -GLX_SWAP_UNDEFINED_OML = Constant( 'GLX_SWAP_UNDEFINED_OML', 32867) -GLX_SYNC_FRAME_SGIX = Constant( 'GLX_SYNC_FRAME_SGIX', 0) -GLX_SYNC_SWAP_SGIX = Constant( 'GLX_SYNC_SWAP_SGIX', 1) -GLX_TEXTURE_1D_BIT_EXT = Constant( 'GLX_TEXTURE_1D_BIT_EXT', 1) -GLX_TEXTURE_1D_EXT = Constant( 'GLX_TEXTURE_1D_EXT', 8411) -GLX_TEXTURE_2D_BIT_EXT = Constant( 'GLX_TEXTURE_2D_BIT_EXT', 2) -GLX_TEXTURE_2D_EXT = Constant( 'GLX_TEXTURE_2D_EXT', 8412) -GLX_TEXTURE_FORMAT_EXT = Constant( 'GLX_TEXTURE_FORMAT_EXT', 8405) -GLX_TEXTURE_FORMAT_NONE_EXT = Constant( 'GLX_TEXTURE_FORMAT_NONE_EXT', 8408) -GLX_TEXTURE_FORMAT_RGBA_EXT = Constant( 'GLX_TEXTURE_FORMAT_RGBA_EXT', 8410) -GLX_TEXTURE_FORMAT_RGB_EXT = Constant( 'GLX_TEXTURE_FORMAT_RGB_EXT', 8409) -GLX_TEXTURE_RECTANGLE_BIT_EXT = Constant( 'GLX_TEXTURE_RECTANGLE_BIT_EXT', 4) -GLX_TEXTURE_RECTANGLE_EXT = Constant( 'GLX_TEXTURE_RECTANGLE_EXT', 8413) -GLX_TEXTURE_TARGET_EXT = Constant( 'GLX_TEXTURE_TARGET_EXT', 8406) -GLX_TRANSPARENT_ALPHA_VALUE = Constant( 'GLX_TRANSPARENT_ALPHA_VALUE', 40) -GLX_TRANSPARENT_ALPHA_VALUE_EXT = Constant( 'GLX_TRANSPARENT_ALPHA_VALUE_EXT', 40) -GLX_TRANSPARENT_BLUE_VALUE = Constant( 'GLX_TRANSPARENT_BLUE_VALUE', 39) -GLX_TRANSPARENT_BLUE_VALUE_EXT = Constant( 'GLX_TRANSPARENT_BLUE_VALUE_EXT', 39) -GLX_TRANSPARENT_GREEN_VALUE = Constant( 'GLX_TRANSPARENT_GREEN_VALUE', 38) -GLX_TRANSPARENT_GREEN_VALUE_EXT = Constant( 'GLX_TRANSPARENT_GREEN_VALUE_EXT', 38) -GLX_TRANSPARENT_INDEX = Constant( 'GLX_TRANSPARENT_INDEX', 32777) -GLX_TRANSPARENT_INDEX_EXT = Constant( 'GLX_TRANSPARENT_INDEX_EXT', 32777) -GLX_TRANSPARENT_INDEX_VALUE = Constant( 'GLX_TRANSPARENT_INDEX_VALUE', 36) -GLX_TRANSPARENT_INDEX_VALUE_EXT = Constant( 'GLX_TRANSPARENT_INDEX_VALUE_EXT', 36) -GLX_TRANSPARENT_RED_VALUE = Constant( 'GLX_TRANSPARENT_RED_VALUE', 37) -GLX_TRANSPARENT_RED_VALUE_EXT = Constant( 'GLX_TRANSPARENT_RED_VALUE_EXT', 37) -GLX_TRANSPARENT_RGB = Constant( 'GLX_TRANSPARENT_RGB', 32776) -GLX_TRANSPARENT_RGB_EXT = Constant( 'GLX_TRANSPARENT_RGB_EXT', 32776) -GLX_TRANSPARENT_TYPE = Constant( 'GLX_TRANSPARENT_TYPE', 35) -GLX_TRANSPARENT_TYPE_EXT = Constant( 'GLX_TRANSPARENT_TYPE_EXT', 35) -GLX_TRUE_COLOR = Constant( 'GLX_TRUE_COLOR', 32770) -GLX_TRUE_COLOR_EXT = Constant( 'GLX_TRUE_COLOR_EXT', 32770) -GLX_USE_GL = Constant( 'GLX_USE_GL', 1) -GLX_VENDOR = Constant( 'GLX_VENDOR', 1) -GLX_VERSION = Constant( 'GLX_VERSION', 2) -GLX_VERSION_1_1 = Constant( 'GLX_VERSION_1_1', 1) -GLX_VERSION_1_2 = Constant( 'GLX_VERSION_1_2', 1) -GLX_VERSION_1_3 = Constant( 'GLX_VERSION_1_3', 1) -GLX_VERSION_1_4 = Constant( 'GLX_VERSION_1_4', 1) -GLX_VISUAL_CAVEAT_EXT = Constant( 'GLX_VISUAL_CAVEAT_EXT', 32) -GLX_VISUAL_ID = Constant( 'GLX_VISUAL_ID', 32779) -GLX_VISUAL_ID_EXT = Constant( 'GLX_VISUAL_ID_EXT', 32779) -GLX_VISUAL_SELECT_GROUP_SGIX = Constant( 'GLX_VISUAL_SELECT_GROUP_SGIX', 32808) -GLX_WIDTH = Constant( 'GLX_WIDTH', 32797) -GLX_WIDTH_SGIX = Constant( 'GLX_WIDTH_SGIX', 32797) -GLX_WINDOW = Constant( 'GLX_WINDOW', 32802) -GLX_WINDOW_BIT = Constant( 'GLX_WINDOW_BIT', 1) -GLX_WINDOW_BIT_SGIX = Constant( 'GLX_WINDOW_BIT_SGIX', 1) -GLX_WINDOW_SGIX = Constant( 'GLX_WINDOW_SGIX', 32802) -GLX_X_RENDERABLE = Constant( 'GLX_X_RENDERABLE', 32786) -GLX_X_RENDERABLE_SGIX = Constant( 'GLX_X_RENDERABLE_SGIX', 32786) -GLX_X_VISUAL_TYPE = Constant( 'GLX_X_VISUAL_TYPE', 34) -GLX_X_VISUAL_TYPE_EXT = Constant( 'GLX_X_VISUAL_TYPE_EXT', 34) -GLX_Y_INVERTED_EXT = Constant( 'GLX_Y_INVERTED_EXT', 8404) -GL_ALL_CLIENT_ATTRIB_BITS = Constant( 'GL_ALL_CLIENT_ATTRIB_BITS', 4294967295) -GL_ALPHA_BLEND_EQUATION_ATI = Constant( 'GL_ALPHA_BLEND_EQUATION_ATI', 34877) -GL_DEBUG_ASSERT_MESA = Constant( 'GL_DEBUG_ASSERT_MESA', 34651) -GL_DEBUG_OBJECT_MESA = Constant( 'GL_DEBUG_OBJECT_MESA', 34649) -GL_DEBUG_PRINT_MESA = Constant( 'GL_DEBUG_PRINT_MESA', 34650) -GL_DEPTH_STENCIL_MESA = Constant( 'GL_DEPTH_STENCIL_MESA', 34640) -GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA = Constant( 'GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA', 35763) -GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA = Constant( 'GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA', 35762) -GL_FRAGMENT_PROGRAM_CALLBACK_MESA = Constant( 'GL_FRAGMENT_PROGRAM_CALLBACK_MESA', 35761) -GL_FRAGMENT_PROGRAM_POSITION_MESA = Constant( 'GL_FRAGMENT_PROGRAM_POSITION_MESA', 35760) -GL_TRACE_ALL_BITS_MESA = Constant( 'GL_TRACE_ALL_BITS_MESA', 65535) -GL_TRACE_ARRAYS_BIT_MESA = Constant( 'GL_TRACE_ARRAYS_BIT_MESA', 4) -GL_TRACE_ERRORS_BIT_MESA = Constant( 'GL_TRACE_ERRORS_BIT_MESA', 32) -GL_TRACE_MASK_MESA = Constant( 'GL_TRACE_MASK_MESA', 34645) -GL_TRACE_NAME_MESA = Constant( 'GL_TRACE_NAME_MESA', 34646) -GL_TRACE_OPERATIONS_BIT_MESA = Constant( 'GL_TRACE_OPERATIONS_BIT_MESA', 1) -GL_TRACE_PIXELS_BIT_MESA = Constant( 'GL_TRACE_PIXELS_BIT_MESA', 16) -GL_TRACE_PRIMITIVES_BIT_MESA = Constant( 'GL_TRACE_PRIMITIVES_BIT_MESA', 2) -GL_TRACE_TEXTURES_BIT_MESA = Constant( 'GL_TRACE_TEXTURES_BIT_MESA', 8) -GL_UNSIGNED_INT_24_8_MESA = Constant( 'GL_UNSIGNED_INT_24_8_MESA', 34641) -GL_UNSIGNED_INT_8_24_REV_MESA = Constant( 'GL_UNSIGNED_INT_8_24_REV_MESA', 34642) -GL_UNSIGNED_SHORT_15_1_MESA = Constant( 'GL_UNSIGNED_SHORT_15_1_MESA', 34643) -GL_UNSIGNED_SHORT_1_15_REV_MESA = Constant( 'GL_UNSIGNED_SHORT_1_15_REV_MESA', 34644) -GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA = Constant( 'GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA', 35767) -GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA = Constant( 'GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA', 35766) -GL_VERTEX_PROGRAM_CALLBACK_MESA = Constant( 'GL_VERTEX_PROGRAM_CALLBACK_MESA', 35765) -GL_VERTEX_PROGRAM_POSITION_MESA = Constant( 'GL_VERTEX_PROGRAM_POSITION_MESA', 35764) -XCNOENT = Constant( 'XCNOENT', 2) -XCNOMEM = Constant( 'XCNOMEM', 1) -XCSUCCESS = Constant( 'XCSUCCESS', 0) -XK_0 = Constant( 'XK_0', 48) -XK_1 = Constant( 'XK_1', 49) -XK_2 = Constant( 'XK_2', 50) -XK_3 = Constant( 'XK_3', 51) -XK_4 = Constant( 'XK_4', 52) -XK_5 = Constant( 'XK_5', 53) -XK_6 = Constant( 'XK_6', 54) -XK_7 = Constant( 'XK_7', 55) -XK_8 = Constant( 'XK_8', 56) -XK_9 = Constant( 'XK_9', 57) -XK_A = Constant( 'XK_A', 65) -XK_AE = Constant( 'XK_AE', 198) -XK_B = Constant( 'XK_B', 66) -XK_C = Constant( 'XK_C', 67) -XK_D = Constant( 'XK_D', 68) -XK_E = Constant( 'XK_E', 69) -XK_ENG = Constant( 'XK_ENG', 957) -XK_ETH = Constant( 'XK_ETH', 208) -XK_F = Constant( 'XK_F', 70) -XK_F1 = Constant( 'XK_F1', 65470) -XK_F10 = Constant( 'XK_F10', 65479) -XK_F11 = Constant( 'XK_F11', 65480) -XK_F12 = Constant( 'XK_F12', 65481) -XK_F13 = Constant( 'XK_F13', 65482) -XK_F14 = Constant( 'XK_F14', 65483) -XK_F15 = Constant( 'XK_F15', 65484) -XK_F16 = Constant( 'XK_F16', 65485) -XK_F17 = Constant( 'XK_F17', 65486) -XK_F18 = Constant( 'XK_F18', 65487) -XK_F19 = Constant( 'XK_F19', 65488) -XK_F2 = Constant( 'XK_F2', 65471) -XK_F20 = Constant( 'XK_F20', 65489) -XK_F21 = Constant( 'XK_F21', 65490) -XK_F22 = Constant( 'XK_F22', 65491) -XK_F23 = Constant( 'XK_F23', 65492) -XK_F24 = Constant( 'XK_F24', 65493) -XK_F25 = Constant( 'XK_F25', 65494) -XK_F26 = Constant( 'XK_F26', 65495) -XK_F27 = Constant( 'XK_F27', 65496) -XK_F28 = Constant( 'XK_F28', 65497) -XK_F29 = Constant( 'XK_F29', 65498) -XK_F3 = Constant( 'XK_F3', 65472) -XK_F30 = Constant( 'XK_F30', 65499) -XK_F31 = Constant( 'XK_F31', 65500) -XK_F32 = Constant( 'XK_F32', 65501) -XK_F33 = Constant( 'XK_F33', 65502) -XK_F34 = Constant( 'XK_F34', 65503) -XK_F35 = Constant( 'XK_F35', 65504) -XK_F4 = Constant( 'XK_F4', 65473) -XK_F5 = Constant( 'XK_F5', 65474) -XK_F6 = Constant( 'XK_F6', 65475) -XK_F7 = Constant( 'XK_F7', 65476) -XK_F8 = Constant( 'XK_F8', 65477) -XK_F9 = Constant( 'XK_F9', 65478) -XK_G = Constant( 'XK_G', 71) -XK_H = Constant( 'XK_H', 72) -XK_I = Constant( 'XK_I', 73) -XK_J = Constant( 'XK_J', 74) -XK_K = Constant( 'XK_K', 75) -XK_KP_0 = Constant( 'XK_KP_0', 65456) -XK_KP_1 = Constant( 'XK_KP_1', 65457) -XK_KP_2 = Constant( 'XK_KP_2', 65458) -XK_KP_3 = Constant( 'XK_KP_3', 65459) -XK_KP_4 = Constant( 'XK_KP_4', 65460) -XK_KP_5 = Constant( 'XK_KP_5', 65461) -XK_KP_6 = Constant( 'XK_KP_6', 65462) -XK_KP_7 = Constant( 'XK_KP_7', 65463) -XK_KP_8 = Constant( 'XK_KP_8', 65464) -XK_KP_9 = Constant( 'XK_KP_9', 65465) -XK_KP_F1 = Constant( 'XK_KP_F1', 65425) -XK_KP_F2 = Constant( 'XK_KP_F2', 65426) -XK_KP_F3 = Constant( 'XK_KP_F3', 65427) -XK_KP_F4 = Constant( 'XK_KP_F4', 65428) -XK_L = Constant( 'XK_L', 76) -XK_L1 = Constant( 'XK_L1', 65480) -XK_L10 = Constant( 'XK_L10', 65489) -XK_L2 = Constant( 'XK_L2', 65481) -XK_L3 = Constant( 'XK_L3', 65482) -XK_L4 = Constant( 'XK_L4', 65483) -XK_L5 = Constant( 'XK_L5', 65484) -XK_L6 = Constant( 'XK_L6', 65485) -XK_L7 = Constant( 'XK_L7', 65486) -XK_L8 = Constant( 'XK_L8', 65487) -XK_L9 = Constant( 'XK_L9', 65488) -XK_M = Constant( 'XK_M', 77) -XK_N = Constant( 'XK_N', 78) -XK_O = Constant( 'XK_O', 79) -XK_OE = Constant( 'XK_OE', 5052) -XK_P = Constant( 'XK_P', 80) -XK_Q = Constant( 'XK_Q', 81) -XK_R = Constant( 'XK_R', 82) -XK_R1 = Constant( 'XK_R1', 65490) -XK_R10 = Constant( 'XK_R10', 65499) -XK_R11 = Constant( 'XK_R11', 65500) -XK_R12 = Constant( 'XK_R12', 65501) -XK_R13 = Constant( 'XK_R13', 65502) -XK_R14 = Constant( 'XK_R14', 65503) -XK_R15 = Constant( 'XK_R15', 65504) -XK_R2 = Constant( 'XK_R2', 65491) -XK_R3 = Constant( 'XK_R3', 65492) -XK_R4 = Constant( 'XK_R4', 65493) -XK_R5 = Constant( 'XK_R5', 65494) -XK_R6 = Constant( 'XK_R6', 65495) -XK_R7 = Constant( 'XK_R7', 65496) -XK_R8 = Constant( 'XK_R8', 65497) -XK_R9 = Constant( 'XK_R9', 65498) -XK_S = Constant( 'XK_S', 83) -XK_SCHWA = Constant( 'XK_SCHWA', 16777615) -XK_T = Constant( 'XK_T', 84) -XK_THORN = Constant( 'XK_THORN', 222) -XK_U = Constant( 'XK_U', 85) -XK_V = Constant( 'XK_V', 86) -XK_W = Constant( 'XK_W', 87) -XK_X = Constant( 'XK_X', 88) -XK_Y = Constant( 'XK_Y', 89) -XK_Z = Constant( 'XK_Z', 90) -X_HAVE_UTF8_STRING = Constant( 'X_HAVE_UTF8_STRING', 1) -X_PROTOCOL = Constant( 'X_PROTOCOL', 11) -X_PROTOCOL_REVISION = Constant( 'X_PROTOCOL_REVISION', 0) -_ATFILE_SOURCE = Constant( '_ATFILE_SOURCE', 1) -_BITS_PTHREADTYPES_H = Constant( '_BITS_PTHREADTYPES_H', 1) -_BITS_TYPESIZES_H = Constant( '_BITS_TYPESIZES_H', 1) -_BITS_TYPES_H = Constant( '_BITS_TYPES_H', 1) -_BITS_WCHAR_H = Constant( '_BITS_WCHAR_H', 1) -_BSD_SOURCE = Constant( '_BSD_SOURCE', 1) -_ENDIAN_H = Constant( '_ENDIAN_H', 1) -_FEATURES_H = Constant( '_FEATURES_H', 1) -_INTTYPES_H = Constant( '_INTTYPES_H', 1) -_ISOC99_SOURCE = Constant( '_ISOC99_SOURCE', 1) -_LARGEFILE64_SOURCE = Constant( '_LARGEFILE64_SOURCE', 1) -_LARGEFILE_SOURCE = Constant( '_LARGEFILE_SOURCE', 1) -_POSIX_C_SOURCE = Constant( '_POSIX_C_SOURCE', 199506) -_POSIX_SOURCE = Constant( '_POSIX_SOURCE', 1) -_SIGSET_NWORDS = Constant( '_SIGSET_NWORDS', 16) -_STDINT_H = Constant( '_STDINT_H', 1) -_STRUCT_TIMEVAL = Constant( '_STRUCT_TIMEVAL', 1) -_SVID_SOURCE = Constant( '_SVID_SOURCE', 1) -_SYS_CDEFS_H = Constant( '_SYS_CDEFS_H', 1) -_SYS_SELECT_H = Constant( '_SYS_SELECT_H', 1) -_SYS_SYSMACROS_H = Constant( '_SYS_SYSMACROS_H', 1) -_SYS_TYPES_H = Constant( '_SYS_TYPES_H', 1) -_XOPEN_SOURCE = Constant( '_XOPEN_SOURCE', 600) -_XOPEN_SOURCE_EXTENDED = Constant( '_XOPEN_SOURCE_EXTENDED', 1) -__BIG_ENDIAN = Constant( '__BIG_ENDIAN', 4321) -__BIT_TYPES_DEFINED__ = Constant( '__BIT_TYPES_DEFINED__', 1) -__FD_SETSIZE = Constant( '__FD_SETSIZE', 1024) -__GLIBC_HAVE_LONG_LONG = Constant( '__GLIBC_HAVE_LONG_LONG', 1) -__GLIBC_MINOR__ = Constant( '__GLIBC_MINOR__', 4) -__GLIBC__ = Constant( '__GLIBC__', 2) -__GNU_LIBRARY__ = Constant( '__GNU_LIBRARY__', 6) -__LITTLE_ENDIAN = Constant( '__LITTLE_ENDIAN', 1234) -__NFDBITS = Constant( '__NFDBITS', 64) -__PDP_ENDIAN = Constant( '__PDP_ENDIAN', 3412) -__PTHREAD_MUTEX_HAVE_PREV = Constant( '__PTHREAD_MUTEX_HAVE_PREV', 1) -__SIZEOF_PTHREAD_ATTR_T = Constant( '__SIZEOF_PTHREAD_ATTR_T', 56) -__SIZEOF_PTHREAD_BARRIERATTR_T = Constant( '__SIZEOF_PTHREAD_BARRIERATTR_T', 4) -__SIZEOF_PTHREAD_BARRIER_T = Constant( '__SIZEOF_PTHREAD_BARRIER_T', 32) -__SIZEOF_PTHREAD_CONDATTR_T = Constant( '__SIZEOF_PTHREAD_CONDATTR_T', 4) -__SIZEOF_PTHREAD_COND_T = Constant( '__SIZEOF_PTHREAD_COND_T', 48) -__SIZEOF_PTHREAD_MUTEXATTR_T = Constant( '__SIZEOF_PTHREAD_MUTEXATTR_T', 4) -__SIZEOF_PTHREAD_MUTEX_T = Constant( '__SIZEOF_PTHREAD_MUTEX_T', 40) -__SIZEOF_PTHREAD_RWLOCKATTR_T = Constant( '__SIZEOF_PTHREAD_RWLOCKATTR_T', 8) -__SIZEOF_PTHREAD_RWLOCK_T = Constant( '__SIZEOF_PTHREAD_RWLOCK_T', 56) -__STDC_IEC_559_COMPLEX__ = Constant( '__STDC_IEC_559_COMPLEX__', 1) -__STDC_IEC_559__ = Constant( '__STDC_IEC_559__', 1) -__STDC_ISO_10646__ = Constant( '__STDC_ISO_10646__', 200009) -__USE_ANSI = Constant( '__USE_ANSI', 1) -__USE_ATFILE = Constant( '__USE_ATFILE', 1) -__USE_BSD = Constant( '__USE_BSD', 1) -__USE_FORTIFY_LEVEL = Constant( '__USE_FORTIFY_LEVEL', 0) -__USE_GNU = Constant( '__USE_GNU', 1) -__USE_ISOC99 = Constant( '__USE_ISOC99', 1) -__USE_LARGEFILE = Constant( '__USE_LARGEFILE', 1) -__USE_LARGEFILE64 = Constant( '__USE_LARGEFILE64', 1) -__USE_MISC = Constant( '__USE_MISC', 1) -__USE_POSIX = Constant( '__USE_POSIX', 1) -__USE_POSIX199309 = Constant( '__USE_POSIX199309', 1) -__USE_POSIX199506 = Constant( '__USE_POSIX199506', 1) -__USE_POSIX2 = Constant( '__USE_POSIX2', 1) -__USE_SVID = Constant( '__USE_SVID', 1) -__USE_UNIX98 = Constant( '__USE_UNIX98', 1) -__USE_XOPEN = Constant( '__USE_XOPEN', 1) -__USE_XOPEN2K = Constant( '__USE_XOPEN2K', 1) -__USE_XOPEN_EXTENDED = Constant( '__USE_XOPEN_EXTENDED', 1) -__WCHAR_MAX = Constant( '__WCHAR_MAX', 2147483647) -__WCHAR_MIN = Constant( '__WCHAR_MIN', -2147483648) -__WORDSIZE = Constant( '__WORDSIZE', 64) -__WORDSIZE_COMPAT32 = Constant( '__WORDSIZE_COMPAT32', 1) -__all__ = [ - 'CWX', - 'CWY', - 'FUNCPROTO', - 'GLX_3DFX_FULLSCREEN_MODE_MESA', - 'GLX_3DFX_WINDOW_MODE_MESA', - 'GLX_ACCUM_ALPHA_SIZE', - 'GLX_ACCUM_BLUE_SIZE', - 'GLX_ACCUM_BUFFER_BIT', - 'GLX_ACCUM_BUFFER_BIT_SGIX', - 'GLX_ACCUM_GREEN_SIZE', - 'GLX_ACCUM_RED_SIZE', - 'GLX_ALPHA_SIZE', - 'GLX_AUX0_EXT', - 'GLX_AUX1_EXT', - 'GLX_AUX2_EXT', - 'GLX_AUX3_EXT', - 'GLX_AUX4_EXT', - 'GLX_AUX5_EXT', - 'GLX_AUX6_EXT', - 'GLX_AUX7_EXT', - 'GLX_AUX8_EXT', - 'GLX_AUX9_EXT', - 'GLX_AUX_BUFFERS', - 'GLX_AUX_BUFFERS_BIT', - 'GLX_AUX_BUFFERS_BIT_SGIX', - 'GLX_BACK_LEFT_BUFFER_BIT', - 'GLX_BACK_LEFT_BUFFER_BIT_SGIX', - 'GLX_BACK_LEFT_EXT', - 'GLX_BACK_RIGHT_BUFFER_BIT', - 'GLX_BACK_RIGHT_BUFFER_BIT_SGIX', - 'GLX_BACK_RIGHT_EXT', - 'GLX_BAD_ATTRIBUTE', - 'GLX_BAD_CONTEXT', - 'GLX_BAD_ENUM', - 'GLX_BAD_HYPERPIPE_CONFIG_SGIX', - 'GLX_BAD_HYPERPIPE_SGIX', - 'GLX_BAD_SCREEN', - 'GLX_BAD_VALUE', - 'GLX_BAD_VISUAL', - 'GLX_BIND_TO_MIPMAP_TEXTURE_EXT', - 'GLX_BIND_TO_TEXTURE_RGBA_EXT', - 'GLX_BIND_TO_TEXTURE_RGB_EXT', - 'GLX_BIND_TO_TEXTURE_TARGETS_EXT', - 'GLX_BLENDED_RGBA_SGIS', - 'GLX_BLUE_SIZE', - 'GLX_BUFFER_CLOBBER_MASK_SGIX', - 'GLX_BUFFER_SIZE', - 'GLX_COLOR_INDEX_BIT', - 'GLX_COLOR_INDEX_BIT_SGIX', - 'GLX_COLOR_INDEX_TYPE', - 'GLX_COLOR_INDEX_TYPE_SGIX', - 'GLX_CONFIG_CAVEAT', - 'GLX_DAMAGED', - 'GLX_DAMAGED_SGIX', - 'GLX_DEPTH_BUFFER_BIT', - 'GLX_DEPTH_BUFFER_BIT_SGIX', - 'GLX_DEPTH_SIZE', - 'GLX_DIGITAL_MEDIA_PBUFFER_SGIX', - 'GLX_DIRECT_COLOR', - 'GLX_DIRECT_COLOR_EXT', - 'GLX_DONT_CARE', - 'GLX_DOUBLEBUFFER', - 'GLX_DRAWABLE_TYPE', - 'GLX_DRAWABLE_TYPE_SGIX', - 'GLX_EVENT_MASK', - 'GLX_EVENT_MASK_SGIX', - 'GLX_EXTENSIONS', - 'GLX_EXTENSION_NAME', - 'GLX_FBCONFIG_ID', - 'GLX_FBCONFIG_ID_SGIX', - 'GLX_FLOAT_COMPONENTS_NV', - 'GLX_FRONT_LEFT_BUFFER_BIT', - 'GLX_FRONT_LEFT_BUFFER_BIT_SGIX', - 'GLX_FRONT_LEFT_EXT', - 'GLX_FRONT_RIGHT_BUFFER_BIT', - 'GLX_FRONT_RIGHT_BUFFER_BIT_SGIX', - 'GLX_FRONT_RIGHT_EXT', - 'GLX_GLXEXT_VERSION', - 'GLX_GRAY_SCALE', - 'GLX_GRAY_SCALE_EXT', - 'GLX_GREEN_SIZE', - 'GLX_HEIGHT', - 'GLX_HEIGHT_SGIX', - 'GLX_HYPERPIPE_DISPLAY_PIPE_SGIX', - 'GLX_HYPERPIPE_ID_SGIX', - 'GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX', - 'GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX', - 'GLX_HYPERPIPE_RENDER_PIPE_SGIX', - 'GLX_HYPERPIPE_STEREO_SGIX', - 'GLX_LARGEST_PBUFFER', - 'GLX_LARGEST_PBUFFER_SGIX', - 'GLX_LEVEL', - 'GLX_MAX_PBUFFER_HEIGHT', - 'GLX_MAX_PBUFFER_HEIGHT_SGIX', - 'GLX_MAX_PBUFFER_PIXELS', - 'GLX_MAX_PBUFFER_PIXELS_SGIX', - 'GLX_MAX_PBUFFER_WIDTH', - 'GLX_MAX_PBUFFER_WIDTH_SGIX', - 'GLX_MIPMAP_TEXTURE_EXT', - 'GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS', - 'GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS', - 'GLX_NONE', - 'GLX_NONE_EXT', - 'GLX_NON_CONFORMANT_CONFIG', - 'GLX_NON_CONFORMANT_VISUAL_EXT', - 'GLX_NO_EXTENSION', - 'GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX', - 'GLX_OPTIMAL_PBUFFER_WIDTH_SGIX', - 'GLX_PBUFFER', - 'GLX_PBUFFER_BIT', - 'GLX_PBUFFER_BIT_SGIX', - 'GLX_PBUFFER_CLOBBER_MASK', - 'GLX_PBUFFER_HEIGHT', - 'GLX_PBUFFER_SGIX', - 'GLX_PBUFFER_WIDTH', - 'GLX_PIPE_RECT_LIMITS_SGIX', - 'GLX_PIPE_RECT_SGIX', - 'GLX_PIXMAP_BIT', - 'GLX_PIXMAP_BIT_SGIX', - 'GLX_PRESERVED_CONTENTS', - 'GLX_PRESERVED_CONTENTS_SGIX', - 'GLX_PSEUDO_COLOR', - 'GLX_PSEUDO_COLOR_EXT', - 'GLX_RED_SIZE', - 'GLX_RENDER_TYPE', - 'GLX_RENDER_TYPE_SGIX', - 'GLX_RGBA', - 'GLX_RGBA_BIT', - 'GLX_RGBA_BIT_SGIX', - 'GLX_RGBA_FLOAT_BIT_ARB', - 'GLX_RGBA_FLOAT_TYPE_ARB', - 'GLX_RGBA_TYPE', - 'GLX_RGBA_TYPE_SGIX', - 'GLX_SAMPLES', - 'GLX_SAMPLES_3DFX', - 'GLX_SAMPLES_ARB', - 'GLX_SAMPLES_SGIS', - 'GLX_SAMPLE_BUFFERS', - 'GLX_SAMPLE_BUFFERS_3DFX', - 'GLX_SAMPLE_BUFFERS_ARB', - 'GLX_SAMPLE_BUFFERS_BIT_SGIX', - 'GLX_SAMPLE_BUFFERS_SGIS', - 'GLX_SAVED', - 'GLX_SAVED_SGIX', - 'GLX_SCREEN', - 'GLX_SCREEN_EXT', - 'GLX_SHARE_CONTEXT_EXT', - 'GLX_SLOW_CONFIG', - 'GLX_SLOW_VISUAL_EXT', - 'GLX_STATIC_COLOR', - 'GLX_STATIC_COLOR_EXT', - 'GLX_STATIC_GRAY', - 'GLX_STATIC_GRAY_EXT', - 'GLX_STENCIL_BUFFER_BIT', - 'GLX_STENCIL_BUFFER_BIT_SGIX', - 'GLX_STENCIL_SIZE', - 'GLX_STEREO', - 'GLX_SWAP_COPY_OML', - 'GLX_SWAP_EXCHANGE_OML', - 'GLX_SWAP_METHOD_OML', - 'GLX_SWAP_UNDEFINED_OML', - 'GLX_SYNC_FRAME_SGIX', - 'GLX_SYNC_SWAP_SGIX', - 'GLX_TEXTURE_1D_BIT_EXT', - 'GLX_TEXTURE_1D_EXT', - 'GLX_TEXTURE_2D_BIT_EXT', - 'GLX_TEXTURE_2D_EXT', - 'GLX_TEXTURE_FORMAT_EXT', - 'GLX_TEXTURE_FORMAT_NONE_EXT', - 'GLX_TEXTURE_FORMAT_RGBA_EXT', - 'GLX_TEXTURE_FORMAT_RGB_EXT', - 'GLX_TEXTURE_RECTANGLE_BIT_EXT', - 'GLX_TEXTURE_RECTANGLE_EXT', - 'GLX_TEXTURE_TARGET_EXT', - 'GLX_TRANSPARENT_ALPHA_VALUE', - 'GLX_TRANSPARENT_ALPHA_VALUE_EXT', - 'GLX_TRANSPARENT_BLUE_VALUE', - 'GLX_TRANSPARENT_BLUE_VALUE_EXT', - 'GLX_TRANSPARENT_GREEN_VALUE', - 'GLX_TRANSPARENT_GREEN_VALUE_EXT', - 'GLX_TRANSPARENT_INDEX', - 'GLX_TRANSPARENT_INDEX_EXT', - 'GLX_TRANSPARENT_INDEX_VALUE', - 'GLX_TRANSPARENT_INDEX_VALUE_EXT', - 'GLX_TRANSPARENT_RED_VALUE', - 'GLX_TRANSPARENT_RED_VALUE_EXT', - 'GLX_TRANSPARENT_RGB', - 'GLX_TRANSPARENT_RGB_EXT', - 'GLX_TRANSPARENT_TYPE', - 'GLX_TRANSPARENT_TYPE_EXT', - 'GLX_TRUE_COLOR', - 'GLX_TRUE_COLOR_EXT', - 'GLX_USE_GL', - 'GLX_VENDOR', - 'GLX_VERSION', - 'GLX_VERSION_1_1', - 'GLX_VERSION_1_2', - 'GLX_VERSION_1_3', - 'GLX_VERSION_1_4', - 'GLX_VISUAL_CAVEAT_EXT', - 'GLX_VISUAL_ID', - 'GLX_VISUAL_ID_EXT', - 'GLX_VISUAL_SELECT_GROUP_SGIX', - 'GLX_WIDTH', - 'GLX_WIDTH_SGIX', - 'GLX_WINDOW', - 'GLX_WINDOW_BIT', - 'GLX_WINDOW_BIT_SGIX', - 'GLX_WINDOW_SGIX', - 'GLX_X_RENDERABLE', - 'GLX_X_RENDERABLE_SGIX', - 'GLX_X_VISUAL_TYPE', - 'GLX_X_VISUAL_TYPE_EXT', - 'GLX_Y_INVERTED_EXT', - 'GL_ALL_CLIENT_ATTRIB_BITS', - 'GL_ALPHA_BLEND_EQUATION_ATI', - 'GL_BYTE', - 'GL_DEBUG_ASSERT_MESA', - 'GL_DEBUG_OBJECT_MESA', - 'GL_DEBUG_PRINT_MESA', - 'GL_DEPTH_STENCIL_MESA', - 'GL_DOUBLE', - 'GL_FALSE', - 'GL_FLOAT', - 'GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA', - 'GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA', - 'GL_FRAGMENT_PROGRAM_CALLBACK_MESA', - 'GL_FRAGMENT_PROGRAM_POSITION_MESA', - 'GL_INT', - 'GL_SHORT', - 'GL_TRACE_ALL_BITS_MESA', - 'GL_TRACE_ARRAYS_BIT_MESA', - 'GL_TRACE_ERRORS_BIT_MESA', - 'GL_TRACE_MASK_MESA', - 'GL_TRACE_NAME_MESA', - 'GL_TRACE_OPERATIONS_BIT_MESA', - 'GL_TRACE_PIXELS_BIT_MESA', - 'GL_TRACE_PRIMITIVES_BIT_MESA', - 'GL_TRACE_TEXTURES_BIT_MESA', - 'GL_TRUE', - 'GL_UNSIGNED_BYTE', - 'GL_UNSIGNED_INT', - 'GL_UNSIGNED_INT_24_8_MESA', - 'GL_UNSIGNED_INT_8_24_REV_MESA', - 'GL_UNSIGNED_SHORT', - 'GL_UNSIGNED_SHORT_15_1_MESA', - 'GL_UNSIGNED_SHORT_1_15_REV_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_MESA', - 'GL_VERTEX_PROGRAM_POSITION_MESA', - 'XCNOENT', - 'XCNOMEM', - 'XCSUCCESS', - 'XK_0', - 'XK_1', - 'XK_2', - 'XK_3', - 'XK_4', - 'XK_5', - 'XK_6', - 'XK_7', - 'XK_8', - 'XK_9', - 'XK_A', - 'XK_AE', - 'XK_B', - 'XK_C', - 'XK_D', - 'XK_E', - 'XK_ENG', - 'XK_ETH', - 'XK_F', - 'XK_F1', - 'XK_F10', - 'XK_F11', - 'XK_F12', - 'XK_F13', - 'XK_F14', - 'XK_F15', - 'XK_F16', - 'XK_F17', - 'XK_F18', - 'XK_F19', - 'XK_F2', - 'XK_F20', - 'XK_F21', - 'XK_F22', - 'XK_F23', - 'XK_F24', - 'XK_F25', - 'XK_F26', - 'XK_F27', - 'XK_F28', - 'XK_F29', - 'XK_F3', - 'XK_F30', - 'XK_F31', - 'XK_F32', - 'XK_F33', - 'XK_F34', - 'XK_F35', - 'XK_F4', - 'XK_F5', - 'XK_F6', - 'XK_F7', - 'XK_F8', - 'XK_F9', - 'XK_G', - 'XK_H', - 'XK_I', - 'XK_J', - 'XK_K', - 'XK_KP_0', - 'XK_KP_1', - 'XK_KP_2', - 'XK_KP_3', - 'XK_KP_4', - 'XK_KP_5', - 'XK_KP_6', - 'XK_KP_7', - 'XK_KP_8', - 'XK_KP_9', - 'XK_KP_F1', - 'XK_KP_F2', - 'XK_KP_F3', - 'XK_KP_F4', - 'XK_L', - 'XK_L1', - 'XK_L10', - 'XK_L2', - 'XK_L3', - 'XK_L4', - 'XK_L5', - 'XK_L6', - 'XK_L7', - 'XK_L8', - 'XK_L9', - 'XK_M', - 'XK_N', - 'XK_O', - 'XK_OE', - 'XK_P', - 'XK_Q', - 'XK_R', - 'XK_R1', - 'XK_R10', - 'XK_R11', - 'XK_R12', - 'XK_R13', - 'XK_R14', - 'XK_R15', - 'XK_R2', - 'XK_R3', - 'XK_R4', - 'XK_R5', - 'XK_R6', - 'XK_R7', - 'XK_R8', - 'XK_R9', - 'XK_S', - 'XK_SCHWA', - 'XK_T', - 'XK_THORN', - 'XK_U', - 'XK_V', - 'XK_W', - 'XK_X', - 'XK_Y', - 'XK_Z', - 'X_HAVE_UTF8_STRING', - 'X_PROTOCOL', - 'X_PROTOCOL_REVISION', - '_ATFILE_SOURCE', - '_BITS_PTHREADTYPES_H', - '_BITS_TYPESIZES_H', - '_BITS_TYPES_H', - '_BITS_WCHAR_H', - '_BSD_SOURCE', - '_ENDIAN_H', - '_FEATURES_H', - '_INTTYPES_H', - '_ISOC99_SOURCE', - '_LARGEFILE64_SOURCE', - '_LARGEFILE_SOURCE', - '_POSIX_C_SOURCE', - '_POSIX_SOURCE', - '_SIGSET_NWORDS', - '_STDINT_H', - '_STRUCT_TIMEVAL', - '_SVID_SOURCE', - '_SYS_CDEFS_H', - '_SYS_SELECT_H', - '_SYS_SYSMACROS_H', - '_SYS_TYPES_H', - '_XOPEN_SOURCE', - '_XOPEN_SOURCE_EXTENDED', - '__BIG_ENDIAN', - '__BIT_TYPES_DEFINED__', - '__FD_SETSIZE', - '__GLIBC_HAVE_LONG_LONG', - '__GLIBC_MINOR__', - '__GLIBC__', - '__GNU_LIBRARY__', - '__LITTLE_ENDIAN', - '__NFDBITS', - '__PDP_ENDIAN', - '__PTHREAD_MUTEX_HAVE_PREV', - '__SIZEOF_PTHREAD_ATTR_T', - '__SIZEOF_PTHREAD_BARRIERATTR_T', - '__SIZEOF_PTHREAD_BARRIER_T', - '__SIZEOF_PTHREAD_CONDATTR_T', - '__SIZEOF_PTHREAD_COND_T', - '__SIZEOF_PTHREAD_MUTEXATTR_T', - '__SIZEOF_PTHREAD_MUTEX_T', - '__SIZEOF_PTHREAD_RWLOCKATTR_T', - '__SIZEOF_PTHREAD_RWLOCK_T', - '__STDC_IEC_559_COMPLEX__', - '__STDC_IEC_559__', - '__STDC_ISO_10646__', - '__USE_ANSI', - '__USE_ATFILE', - '__USE_BSD', - '__USE_FORTIFY_LEVEL', - '__USE_GNU', - '__USE_ISOC99', - '__USE_LARGEFILE', - '__USE_LARGEFILE64', - '__USE_MISC', - '__USE_POSIX', - '__USE_POSIX199309', - '__USE_POSIX199506', - '__USE_POSIX2', - '__USE_SVID', - '__USE_UNIX98', - '__USE_XOPEN', - '__USE_XOPEN2K', - '__USE_XOPEN_EXTENDED', - '__WCHAR_MAX', - '__WCHAR_MIN', - '__WORDSIZE', - '__WORDSIZE_COMPAT32' -] - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/raw/GLX/__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/raw/GLX/__init__.py --- pyopengl-3.0.0~b6/OpenGL/raw/GLX/__init__.py 2006-11-20 07:25:45.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/raw/GLX/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,8542 +0,0 @@ -# -*- coding: iso-8859-1 -*- -"""Raw (C-style) API for OpenGL.GLX - -Automatically generated by the generateraw script, do not edit! -""" -from OpenGL.raw.GLX.constants import * - -from ctypes import * -from OpenGL import platform, arrays -from OpenGL.constant import Constant -from OpenGL import constants as GLconstants -GLvoid = GLconstants.GLvoid - -from OpenGL.constants import GL_BYTE -from OpenGL.constants import GL_DOUBLE -from OpenGL.constants import GL_FALSE -from OpenGL.constants import GL_FLOAT -from OpenGL.constants import GL_INT -from OpenGL.constants import GL_SHORT -from OpenGL.constants import GL_TRUE -from OpenGL.constants import GL_UNSIGNED_BYTE -from OpenGL.constants import GL_UNSIGNED_INT -from OpenGL.constants import GL_UNSIGNED_SHORT -from OpenGL.constants import GLbitfield -from OpenGL.constants import GLboolean -from OpenGL.constants import GLbyte -from OpenGL.constants import GLchar -from OpenGL.constants import GLcharARB -from OpenGL.constants import GLclampd -from OpenGL.constants import GLclampf -from OpenGL.constants import GLdouble -from OpenGL.constants import GLenum -from OpenGL.constants import GLfloat -from OpenGL.constants import GLhalfARB -from OpenGL.constants import GLhalfNV -from OpenGL.constants import GLhandleARB -from OpenGL.constants import GLint -from OpenGL.constants import GLintptr -from OpenGL.constants import GLintptrARB -from OpenGL.constants import GLshort -from OpenGL.constants import GLsizei -from OpenGL.constants import GLsizeiptr -from OpenGL.constants import GLsizeiptrARB -from OpenGL.constants import GLubyte -from OpenGL.constants import GLuint -from OpenGL.constants import GLushort -STRING = c_char_p -WSTRING = c_wchar_p -from OpenGL.constants import size_t - - -#APIENTRY = GLAPIENTRY # alias - -Atom = c_ulong -BIG_ENDIAN = __BIG_ENDIAN # alias -__BYTE_ORDER = __LITTLE_ENDIAN # alias -BYTE_ORDER = __BYTE_ORDER # alias -#def BitmapBitOrder(dpy): return (((_XPrivDisplay)dpy)->bitmap_bit_order) # macro -#def BitmapPad(dpy): return (((_XPrivDisplay)dpy)->bitmap_pad) # macro -#def BitmapUnit(dpy): return (((_XPrivDisplay)dpy)->bitmap_unit) # macro -#def BlackPixel(dpy,scr): return (ScreenOfDisplay(dpy,scr)->black_pixel) # macro -#def BlackPixelOfScreen(s): return ((s)->black_pixel) # macro -#Bool = int # alias -#def CellsOfScreen(s): return (DefaultVisualOfScreen((s))->map_entries) # macro -XID = c_ulong -Colormap = XID -#def ConnectionNumber(dpy): return (((_XPrivDisplay)dpy)->fd) # macro -Cursor = XID -#def DefaultColormap(dpy,scr): return (ScreenOfDisplay(dpy,scr)->cmap) # macro -#def DefaultColormapOfScreen(s): return ((s)->cmap) # macro -#def DefaultDepth(dpy,scr): return (ScreenOfDisplay(dpy,scr)->root_depth) # macro -#def DefaultDepthOfScreen(s): return ((s)->root_depth) # macro -#def DefaultGC(dpy,scr): return (ScreenOfDisplay(dpy,scr)->default_gc) # macro -#def DefaultGCOfScreen(s): return ((s)->default_gc) # macro -#def DefaultRootWindow(dpy): return (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root) # macro -#def DefaultScreen(dpy): return (((_XPrivDisplay)dpy)->default_screen) # macro -def DefaultScreenOfDisplay(dpy): return ScreenOfDisplay(dpy,DefaultScreen(dpy)) # macro -#def DefaultVisual(dpy,scr): return (ScreenOfDisplay(dpy,scr)->root_visual) # macro -#def DefaultVisualOfScreen(s): return ((s)->root_visual) # macro -class Depth(Structure): - pass - -class Visual(Structure): - pass -Depth._fields_ = [ - # /usr/include/X11/Xlib.h 279 - ('depth', c_int), - ('nvisuals', c_int), - ('visuals', POINTER(Visual)), -] -class _XDisplay(Structure): - pass -Display = _XDisplay -#def DisplayCells(dpy,scr): return (DefaultVisual(dpy,scr)->map_entries) # macro -#def DisplayHeight(dpy,scr): return (ScreenOfDisplay(dpy,scr)->height) # macro -#def DisplayHeightMM(dpy,scr): return (ScreenOfDisplay(dpy,scr)->mheight) # macro -#def DisplayOfScreen(s): return ((s)->display) # macro -#def DisplayPlanes(dpy,scr): return (ScreenOfDisplay(dpy,scr)->root_depth) # macro -#def DisplayString(dpy): return (((_XPrivDisplay)dpy)->display_name) # macro -#def DisplayWidth(dpy,scr): return (ScreenOfDisplay(dpy,scr)->width) # macro -#def DisplayWidthMM(dpy,scr): return (ScreenOfDisplay(dpy,scr)->mwidth) # macro -#def DoesBackingStore(s): return ((s)->backing_store) # macro -#def DoesSaveUnders(s): return ((s)->save_unders) # macro -Drawable = XID -#def EventMaskOfScreen(s): return ((s)->root_input_mask) # macro -def FD_CLR(fd,fdsetp): return __FD_CLR (fd, fdsetp) # macro -def FD_ISSET(fd,fdsetp): return __FD_ISSET (fd, fdsetp) # macro -def FD_SET(fd,fdsetp): return __FD_SET (fd, fdsetp) # macro -FD_SETSIZE = __FD_SETSIZE # alias -def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp) # macro -Font = XID -class _XGC(Structure): - pass -GC = POINTER(_XGC) -GContext = XID -class GLXBufferClobberEventSGIX(Structure): - pass - -GLXDrawable = XID - -GLXBufferClobberEventSGIX._fields_ = [ - # /usr/include/GL/glxext.h 340 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('drawable', GLXDrawable), - ('event_type', c_int), - ('draw_type', c_int), - ('mask', c_uint), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('count', c_int), -] -class __GLXcontextRec(Structure): - pass -GLXContext = POINTER(__GLXcontextRec) -GLXContextID = XID -class __GLXEvent(Union): - pass -GLXEvent = __GLXEvent -class __GLXFBConfigRec(Structure): - pass -GLXFBConfig = POINTER(__GLXFBConfigRec) -GLXFBConfigID = XID -GLXFBConfigIDSGIX = XID -GLXFBConfigSGIX = POINTER(__GLXFBConfigRec) -class GLXHyperpipeConfigSGIX(Structure): - pass - -GLXHyperpipeConfigSGIX._fields_ = [ - # /usr/include/GL/glxext.h 660 - ('pipeName', c_char * 80), - ('channel', c_int), - ('participationType', c_uint), - ('timeSlice', c_int), -] -class GLXHyperpipeNetworkSGIX(Structure): - pass -GLXHyperpipeNetworkSGIX._fields_ = [ - # /usr/include/GL/glxext.h 652 - ('pipeName', c_char * 80), - ('networkId', c_int), -] -GLXPbuffer = XID -class GLXPbufferClobberEvent(Structure): - pass -GLXPbufferClobberEvent._fields_ = [ - # /usr/include/GL/glx.h 489 - ('event_type', c_int), - ('draw_type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('drawable', GLXDrawable), - ('buffer_mask', c_uint), - ('aux_buffer', c_uint), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('count', c_int), -] -GLXPbufferSGIX = XID -class GLXPipeRect(Structure): - pass -GLXPipeRect._fields_ = [ - # /usr/include/GL/glxext.h 666 - ('pipeName', c_char * 80), - ('srcXOrigin', c_int), - ('srcYOrigin', c_int), - ('srcWidth', c_int), - ('srcHeight', c_int), - ('destXOrigin', c_int), - ('destYOrigin', c_int), - ('destWidth', c_int), - ('destHeight', c_int), -] -class GLXPipeRectLimits(Structure): - pass -GLXPipeRectLimits._fields_ = [ - # /usr/include/GL/glxext.h 671 - ('pipeName', c_char * 80), - ('XOrigin', c_int), - ('YOrigin', c_int), - ('maxHeight', c_int), - ('maxWidth', c_int), -] -GLXPixmap = XID -GLXVideoSourceSGIX = XID -GLXWindow = XID -GLX_BACK_EXT = GLX_BACK_LEFT_EXT # alias -GLX_FRONT_EXT = GLX_FRONT_LEFT_EXT # alias - -GLvoid = None -GLprogramcallbackMESA = CFUNCTYPE(None, c_uint, POINTER(GLvoid)) -#def HeightMMOfScreen(s): return ((s)->mheight) # macro -#def HeightOfScreen(s): return ((s)->height) # macro -#def ImageByteOrder(dpy): return (((_XPrivDisplay)dpy)->byte_order) # macro -#def IsCursorKey(keysym): return (((KeySym)(keysym) >= XK_Home) && ((KeySym)(keysym) < XK_Select)) # macro -#def IsFunctionKey(keysym): return (((KeySym)(keysym) >= XK_F1) && ((KeySym)(keysym) <= XK_F35)) # macro -#def IsKeypadKey(keysym): return (((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal)) # macro -#def IsMiscFunctionKey(keysym): return (((KeySym)(keysym) >= XK_Select) && ((KeySym)(keysym) <= XK_Break)) # macro -#def IsModifierKey(keysym): return ((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) || (((KeySym)(keysym) >= XK_ISO_Lock) && ((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) || ((KeySym)(keysym) == XK_Mode_switch) || ((KeySym)(keysym) == XK_Num_Lock)) # macro -#def IsPFKey(keysym): return (((KeySym)(keysym) >= XK_KP_F1) && ((KeySym)(keysym) <= XK_KP_F4)) # macro -#def IsPrivateKeypadKey(keysym): return (((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF)) # macro - -KeyCode = c_ubyte -KeySym = XID -LITTLE_ENDIAN = __LITTLE_ENDIAN # alias -#def LastKnownRequestProcessed(dpy): return (((_XPrivDisplay)dpy)->last_request_read) # macro -Mask = c_ulong -#def MaxCmapsOfScreen(s): return ((s)->max_maps) # macro -#def MinCmapsOfScreen(s): return ((s)->min_maps) # macro -class N10XSizeHints4DOT_93E(Structure): - pass -N10XSizeHints4DOT_93E._fields_ = [ - # /usr/include/X11/Xutil.h 82 - ('x', c_int), - ('y', c_int), -] -class N14pthread_cond_t3DOT_7E(Structure): - pass - - -N14pthread_cond_t3DOT_7E._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 118 - ('__lock', c_int), - ('__futex', c_uint), - ('__total_seq', c_ulonglong), - ('__wakeup_seq', c_ulonglong), - ('__woken_seq', c_ulonglong), - ('__mutex', c_void_p), - ('__nwaiters', c_uint), - ('__broadcast_seq', c_uint), -] -class N16pthread_rwlock_t4DOT_10E(Structure): - pass -N16pthread_rwlock_t4DOT_10E._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 154 - ('__lock', c_int), - ('__nr_readers', c_uint), - ('__readers_wakeup', c_uint), - ('__writer_wakeup', c_uint), - ('__nr_readers_queued', c_uint), - ('__nr_writers_queued', c_uint), - ('__writer', c_int), - ('__pad1', c_int), - ('__pad2', c_ulong), - ('__pad3', c_ulong), - ('__flags', c_uint), -] -class N19XClientMessageEvent4DOT_64E(Union): - pass - - - -N19XClientMessageEvent4DOT_64E._fields_ = [ - # /usr/include/X11/Xlib.h 937 - ('b', c_char * 20), - ('s', c_short * 10), - ('l', c_long * 5), -] -class N24_XIMStringConversionText4DOT_86E(Union): - pass - - -N24_XIMStringConversionText4DOT_86E._fields_ = [ - # /usr/include/X11/Xlib.h 1298 - ('mbs', STRING), - ('wcs', WSTRING), -] -class N28_XIMStatusDrawCallbackStruct4DOT_90E(Union): - pass -class _XIMText(Structure): - pass -XIMText = _XIMText -Pixmap = XID -N28_XIMStatusDrawCallbackStruct4DOT_90E._fields_ = [ - # /usr/include/X11/Xlib.h 1362 - ('text', POINTER(XIMText)), - ('bitmap', Pixmap), -] -class N8_XIMText4DOT_85E(Union): - pass -N8_XIMText4DOT_85E._fields_ = [ - # /usr/include/X11/Xlib.h 1264 - ('multi_byte', STRING), - ('wide_char', WSTRING), -] -NFDBITS = __NFDBITS # alias -#NULL = __null # alias -#def NextRequest(dpy): return (((_XPrivDisplay)dpy)->request + 1) # macro -PDP_ENDIAN = __PDP_ENDIAN # alias -#def PlanesOfScreen(s): return ((s)->root_depth) # macro -#def ProtocolRevision(dpy): return (((_XPrivDisplay)dpy)->proto_minor_version) # macro -#def ProtocolVersion(dpy): return (((_XPrivDisplay)dpy)->proto_major_version) # macro -#def QLength(dpy): return (((_XPrivDisplay)dpy)->qlen) # macro -class _XRegion(Structure): - pass -Region = POINTER(_XRegion) -#def RootWindow(dpy,scr): return (ScreenOfDisplay(dpy,scr)->root) # macro -#def RootWindowOfScreen(s): return ((s)->root) # macro -class Screen(Structure): - pass -class _XExtData(Structure): - pass -XExtData = _XExtData - -Window = XID - -Screen._fields_ = [ - # /usr/include/X11/Xlib.h 307 - ('ext_data', POINTER(XExtData)), - ('display', POINTER(_XDisplay)), - ('root', Window), - ('width', c_int), - ('height', c_int), - ('mwidth', c_int), - ('mheight', c_int), - ('ndepths', c_int), - ('depths', POINTER(Depth)), - ('root_depth', c_int), - ('root_visual', POINTER(Visual)), - ('default_gc', GC), - ('cmap', Colormap), - ('white_pixel', c_ulong), - ('black_pixel', c_ulong), - ('max_maps', c_int), - ('min_maps', c_int), - ('backing_store', c_int), - ('save_unders', c_int), - ('root_input_mask', c_long), -] -#def ScreenCount(dpy): return (((_XPrivDisplay)dpy)->nscreens) # macro -class ScreenFormat(Structure): - pass -ScreenFormat._fields_ = [ - # /usr/include/X11/Xlib.h 317 - ('ext_data', POINTER(XExtData)), - ('depth', c_int), - ('bits_per_pixel', c_int), - ('scanline_pad', c_int), -] -#def ScreenOfDisplay(dpy,scr): return (&((_XPrivDisplay)dpy)->screens[scr]) # macro -#def ServerVendor(dpy): return (((_XPrivDisplay)dpy)->vendor) # macro -#Status = int # alias -Time = c_ulong -#def VendorRelease(dpy): return (((_XPrivDisplay)dpy)->release) # macro -VisualID = c_ulong -Visual._fields_ = [ - # /usr/include/X11/Xlib.h 270 - ('ext_data', POINTER(XExtData)), - ('visualid', VisualID), - ('c_class', c_int), - ('red_mask', c_ulong), - ('green_mask', c_ulong), - ('blue_mask', c_ulong), - ('bits_per_rgb', c_int), - ('map_entries', c_int), -] -#def WhitePixel(dpy,scr): return (ScreenOfDisplay(dpy,scr)->white_pixel) # macro -#def WhitePixelOfScreen(s): return ((s)->white_pixel) # macro -#def WidthMMOfScreen(s): return ((s)->mwidth) # macro -#def WidthOfScreen(s): return ((s)->width) # macro - -# /usr/include/X11/Xlib.h 1937 -XActivateScreenSaver = platform.createBaseFunction( - 'XActivateScreenSaver', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XActivateScreenSaver( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -XPointer = STRING -XConnectionWatchProc = CFUNCTYPE(None, POINTER(Display), STRING, c_int, c_int, POINTER(XPointer)) -# /usr/include/X11/Xlib.h 3975 -XAddConnectionWatch = platform.createBaseFunction( - 'XAddConnectionWatch', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XConnectionWatchProc,XPointer], - doc='XAddConnectionWatch( POINTER(Display)(None), XConnectionWatchProc(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XExtCodes(Structure): - pass - -# /usr/include/X11/Xlib.h 1757 -XAddExtension = platform.createBaseFunction( - 'XAddExtension', dll=platform.GL, resultType=POINTER(XExtCodes), - argTypes=[POINTER(Display)], - doc='XAddExtension( POINTER(Display)(None) ) -> POINTER(XExtCodes)', - argNames=('None',), -) - -class XHostAddress(Structure): - pass -# /usr/include/X11/Xlib.h 1942 -XAddHost = platform.createBaseFunction( - 'XAddHost', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XHostAddress)], - doc='XAddHost( POINTER(Display)(None), POINTER(XHostAddress)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1948 -XAddHosts = platform.createBaseFunction( - 'XAddHosts', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XHostAddress),c_int], - doc='XAddHosts( POINTER(Display)(None), POINTER(XHostAddress)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -#def XAddPixel(ximage,value): return ((*((ximage)->f.add_pixel))((ximage), (value))) # macro - -# /usr/include/X11/Xlib.h 1953 -XAddToExtensionList = platform.createBaseFunction( - 'XAddToExtensionList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(POINTER(_XExtData)),POINTER(XExtData)], - doc='XAddToExtensionList( POINTER(POINTER(_XExtData))(None), POINTER(XExtData)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1958 -XAddToSaveSet = platform.createBaseFunction( - 'XAddToSaveSet', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XAddToSaveSet( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1801 -XAllPlanes = platform.createBaseFunction( - 'XAllPlanes', dll=platform.GL, resultType=c_ulong, - argTypes=[], - doc='XAllPlanes( ) -> c_ulong', - argNames=(), -) - -class XClassHint(Structure): - pass - -# /usr/include/X11/Xutil.h 362 -XAllocClassHint = platform.createBaseFunction( - 'XAllocClassHint', dll=platform.GL, resultType=POINTER(XClassHint), - argTypes=[], - doc='XAllocClassHint( ) -> POINTER(XClassHint)', - argNames=(), -) - -class XColor(Structure): - pass -# /usr/include/X11/Xlib.h 1964 -XAllocColor = platform.createBaseFunction( - 'XAllocColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(XColor)], - doc='XAllocColor( POINTER(Display)(None), Colormap(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1974 -XAllocColorCells = platform.createBaseFunction( - 'XAllocColorCells', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,c_int,POINTER(c_ulong),c_uint,POINTER(c_ulong),c_uint], - doc='XAllocColorCells( POINTER(Display)(None), Colormap(None), c_int(None), POINTER(c_ulong)(None), c_uint(None), POINTER(c_ulong)(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1988 -XAllocColorPlanes = platform.createBaseFunction( - 'XAllocColorPlanes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,c_int,POINTER(c_ulong),c_int,c_int,c_int,c_int,POINTER(c_ulong),POINTER(c_ulong),POINTER(c_ulong)], - doc='XAllocColorPlanes( POINTER(Display)(None), Colormap(None), c_int(None), POINTER(c_ulong)(None), c_int(None), c_int(None), c_int(None), c_int(None), POINTER(c_ulong)(None), POINTER(c_ulong)(None), POINTER(c_ulong)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -#def XAllocID(dpy): return ((*((_XPrivDisplay)dpy)->resource_alloc)((dpy))) # macro -class XIconSize(Structure): - pass - -# /usr/include/X11/Xutil.h 366 -XAllocIconSize = platform.createBaseFunction( - 'XAllocIconSize', dll=platform.GL, resultType=POINTER(XIconSize), - argTypes=[], - doc='XAllocIconSize( ) -> POINTER(XIconSize)', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 1996 -XAllocNamedColor = platform.createBaseFunction( - 'XAllocNamedColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,STRING,POINTER(XColor),POINTER(XColor)], - doc='XAllocNamedColor( POINTER(Display)(None), Colormap(None), STRING(None), POINTER(XColor)(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -class XSizeHints(Structure): - pass - -# /usr/include/X11/Xutil.h 370 -XAllocSizeHints = platform.createBaseFunction( - 'XAllocSizeHints', dll=platform.GL, resultType=POINTER(XSizeHints), - argTypes=[], - doc='XAllocSizeHints( ) -> POINTER(XSizeHints)', - argNames=(), -) - -class XStandardColormap(Structure): - pass - -# /usr/include/X11/Xutil.h 374 -XAllocStandardColormap = platform.createBaseFunction( - 'XAllocStandardColormap', dll=platform.GL, resultType=POINTER(XStandardColormap), - argTypes=[], - doc='XAllocStandardColormap( ) -> POINTER(XStandardColormap)', - argNames=(), -) - -class XWMHints(Structure): - pass - -# /usr/include/X11/Xutil.h 378 -XAllocWMHints = platform.createBaseFunction( - 'XAllocWMHints', dll=platform.GL, resultType=POINTER(XWMHints), - argTypes=[], - doc='XAllocWMHints( ) -> POINTER(XWMHints)', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 2002 -XAllowEvents = platform.createBaseFunction( - 'XAllowEvents', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,Time], - doc='XAllowEvents( POINTER(Display)(None), c_int(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XAnyEvent(Structure): - pass -XAnyEvent._fields_ = [ - # /usr/include/X11/Xlib.h 972 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), -] -class XArc(Structure): - pass - -XArc._fields_ = [ - # /usr/include/X11/Xlib.h 471 - ('x', c_short), - ('y', c_short), - ('width', c_ushort), - ('height', c_ushort), - ('angle1', c_short), - ('angle2', c_short), -] - -# /usr/include/X11/Xlib.h 2006 -XAutoRepeatOff = platform.createBaseFunction( - 'XAutoRepeatOff', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XAutoRepeatOff( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2010 -XAutoRepeatOn = platform.createBaseFunction( - 'XAutoRepeatOn', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XAutoRepeatOn( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class _XOC(Structure): - pass -XFontSet = POINTER(_XOC) -# /usr/include/X11/Xlib.h 3632 -XBaseFontNameListOfFontSet = platform.createBaseFunction( - 'XBaseFontNameListOfFontSet', dll=platform.GL, resultType=STRING, - argTypes=[XFontSet], - doc='XBaseFontNameListOfFontSet( XFontSet(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2015 -XBell = platform.createBaseFunction( - 'XBell', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XBell( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2019 -XBitmapBitOrder = platform.createBaseFunction( - 'XBitmapBitOrder', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XBitmapBitOrder( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2023 -XBitmapPad = platform.createBaseFunction( - 'XBitmapPad', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XBitmapPad( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2027 -XBitmapUnit = platform.createBaseFunction( - 'XBitmapUnit', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XBitmapUnit( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1794 -XBlackPixel = platform.createBaseFunction( - 'XBlackPixel', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Display),c_int], - doc='XBlackPixel( POINTER(Display)(None), c_int(None) ) -> c_ulong', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1804 -XBlackPixelOfScreen = platform.createBaseFunction( - 'XBlackPixelOfScreen', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Screen)], - doc='XBlackPixelOfScreen( POINTER(Screen)(None) ) -> c_ulong', - argNames=('None',), -) - -class XButtonEvent(Structure): - pass -XButtonEvent._fields_ = [ - # /usr/include/X11/Xlib.h 621 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('root', Window), - ('subwindow', Window), - ('time', Time), - ('x', c_int), - ('y', c_int), - ('x_root', c_int), - ('y_root', c_int), - ('state', c_uint), - ('button', c_uint), - ('same_screen', c_int), -] -XButtonPressedEvent = XButtonEvent -XButtonReleasedEvent = XButtonEvent - -# /usr/include/X11/Xlib.h 2031 -XCellsOfScreen = platform.createBaseFunction( - 'XCellsOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XCellsOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2038 -XChangeActivePointerGrab = platform.createBaseFunction( - 'XChangeActivePointerGrab', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_uint,Cursor,Time], - doc='XChangeActivePointerGrab( POINTER(Display)(None), c_uint(None), Cursor(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - -class XGCValues(Structure): - pass -# /usr/include/X11/Xlib.h 2045 -XChangeGC = platform.createBaseFunction( - 'XChangeGC', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong,POINTER(XGCValues)], - doc='XChangeGC( POINTER(Display)(None), GC(None), c_ulong(None), POINTER(XGCValues)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - -class XKeyboardControl(Structure): - pass -# /usr/include/X11/Xlib.h 2051 -XChangeKeyboardControl = platform.createBaseFunction( - 'XChangeKeyboardControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_ulong,POINTER(XKeyboardControl)], - doc='XChangeKeyboardControl( POINTER(Display)(None), c_ulong(None), POINTER(XKeyboardControl)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2059 -XChangeKeyboardMapping = platform.createBaseFunction( - 'XChangeKeyboardMapping', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_int,POINTER(KeySym),c_int], - doc='XChangeKeyboardMapping( POINTER(Display)(None), c_int(None), c_int(None), POINTER(KeySym)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2068 -XChangePointerControl = platform.createBaseFunction( - 'XChangePointerControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_int,c_int,c_int,c_int], - doc='XChangePointerControl( POINTER(Display)(None), c_int(None), c_int(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2079 -XChangeProperty = platform.createBaseFunction( - 'XChangeProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Atom,Atom,c_int,c_int,POINTER(c_ubyte),c_int], - doc='XChangeProperty( POINTER(Display)(None), Window(None), Atom(None), Atom(None), c_int(None), c_int(None), POINTER(c_ubyte)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2085 -XChangeSaveSet = platform.createBaseFunction( - 'XChangeSaveSet', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int], - doc='XChangeSaveSet( POINTER(Display)(None), Window(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XSetWindowAttributes(Structure): - pass -# /usr/include/X11/Xlib.h 2092 -XChangeWindowAttributes = platform.createBaseFunction( - 'XChangeWindowAttributes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_ulong,POINTER(XSetWindowAttributes)], - doc='XChangeWindowAttributes( POINTER(Display)(None), Window(None), c_ulong(None), POINTER(XSetWindowAttributes)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - -class XChar2b(Structure): - pass -XChar2b._fields_ = [ - # /usr/include/X11/Xlib.h 1070 - ('byte1', c_ubyte), - ('byte2', c_ubyte), -] -class XCharStruct(Structure): - pass -XCharStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1027 - ('lbearing', c_short), - ('rbearing', c_short), - ('width', c_short), - ('ascent', c_short), - ('descent', c_short), - ('attributes', c_ushort), -] -class _XEvent(Union): - pass -XEvent = _XEvent -# /usr/include/X11/Xlib.h 2103 -XCheckIfEvent = platform.createBaseFunction( - 'XCheckIfEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent),CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING),XPointer], - doc='XCheckIfEvent( POINTER(Display)(None), POINTER(XEvent)(None), CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING)(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2109 -XCheckMaskEvent = platform.createBaseFunction( - 'XCheckMaskEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_long,POINTER(XEvent)], - doc='XCheckMaskEvent( POINTER(Display)(None), c_long(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2115 -XCheckTypedEvent = platform.createBaseFunction( - 'XCheckTypedEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,POINTER(XEvent)], - doc='XCheckTypedEvent( POINTER(Display)(None), c_int(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2122 -XCheckTypedWindowEvent = platform.createBaseFunction( - 'XCheckTypedWindowEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,POINTER(XEvent)], - doc='XCheckTypedWindowEvent( POINTER(Display)(None), Window(None), c_int(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2129 -XCheckWindowEvent = platform.createBaseFunction( - 'XCheckWindowEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_long,POINTER(XEvent)], - doc='XCheckWindowEvent( POINTER(Display)(None), Window(None), c_long(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - -class XCirculateEvent(Structure): - pass -XCirculateEvent._fields_ = [ - # /usr/include/X11/Xlib.h 856 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('place', c_int), -] -class XCirculateRequestEvent(Structure): - pass -XCirculateRequestEvent._fields_ = [ - # /usr/include/X11/Xlib.h 866 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('parent', Window), - ('window', Window), - ('place', c_int), -] - -# /usr/include/X11/Xlib.h 2135 -XCirculateSubwindows = platform.createBaseFunction( - 'XCirculateSubwindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int], - doc='XCirculateSubwindows( POINTER(Display)(None), Window(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2140 -XCirculateSubwindowsDown = platform.createBaseFunction( - 'XCirculateSubwindowsDown', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XCirculateSubwindowsDown( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2145 -XCirculateSubwindowsUp = platform.createBaseFunction( - 'XCirculateSubwindowsUp', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XCirculateSubwindowsUp( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -XClassHint._fields_ = [ - # /usr/include/X11/Xutil.h 186 - ('res_name', STRING), - ('res_class', STRING), -] - -# /usr/include/X11/Xlib.h 2155 -XClearArea = platform.createBaseFunction( - 'XClearArea', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_int,c_uint,c_uint,c_int], - doc='XClearArea( POINTER(Display)(None), Window(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2160 -XClearWindow = platform.createBaseFunction( - 'XClearWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XClearWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XClientMessageEvent(Structure): - pass -XClientMessageEvent._fields_ = [ - # /usr/include/X11/Xlib.h 942 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('message_type', Atom), - ('format', c_int), - ('data', N19XClientMessageEvent4DOT_64E), -] -class XRectangle(Structure): - pass -# /usr/include/X11/Xutil.h 383 -XClipBox = platform.createBaseFunction( - 'XClipBox', dll=platform.GL, resultType=c_int, - argTypes=[Region,POINTER(XRectangle)], - doc='XClipBox( Region(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2164 -XCloseDisplay = platform.createBaseFunction( - 'XCloseDisplay', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XCloseDisplay( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class _XIM(Structure): - pass -XIM = POINTER(_XIM) -# /usr/include/X11/Xlib.h 3837 -XCloseIM = platform.createBaseFunction( - 'XCloseIM', dll=platform.GL, resultType=c_int, - argTypes=[XIM], - doc='XCloseIM( XIM(None) ) -> c_int', - argNames=('None',), -) - -class _XOM(Structure): - pass -XOM = POINTER(_XOM) -# /usr/include/X11/Xlib.h 3568 -XCloseOM = platform.createBaseFunction( - 'XCloseOM', dll=platform.GL, resultType=c_int, - argTypes=[XOM], - doc='XCloseOM( XOM(None) ) -> c_int', - argNames=('None',), -) - -XColor._fields_ = [ - # /usr/include/X11/Xlib.h 447 - ('pixel', c_ulong), - ('red', c_ushort), - ('green', c_ushort), - ('blue', c_ushort), - ('flags', c_char), - ('pad', c_char), -] -class XColormapEvent(Structure): - pass -XColormapEvent._fields_ = [ - # /usr/include/X11/Xlib.h 927 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('colormap', Colormap), - ('c_new', c_int), - ('state', c_int), -] -class _XComposeStatus(Structure): - pass -XComposeStatus = _XComposeStatus -XCompoundTextStyle = 1 -class XConfigureEvent(Structure): - pass -XConfigureEvent._fields_ = [ - # /usr/include/X11/Xlib.h 812 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('border_width', c_int), - ('above', Window), - ('override_redirect', c_int), -] -class XConfigureRequestEvent(Structure): - pass -XConfigureRequestEvent._fields_ = [ - # /usr/include/X11/Xlib.h 846 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('parent', Window), - ('window', Window), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('border_width', c_int), - ('above', Window), - ('detail', c_int), - ('value_mask', c_ulong), -] -class XWindowChanges(Structure): - pass -# /usr/include/X11/Xlib.h 2171 -XConfigureWindow = platform.createBaseFunction( - 'XConfigureWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_uint,POINTER(XWindowChanges)], - doc='XConfigureWindow( POINTER(Display)(None), Window(None), c_uint(None), POINTER(XWindowChanges)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2175 -XConnectionNumber = platform.createBaseFunction( - 'XConnectionNumber', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XConnectionNumber( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -XContext = c_int - -# /usr/include/X11/Xlib.h 3640 -XContextDependentDrawing = platform.createBaseFunction( - 'XContextDependentDrawing', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet], - doc='XContextDependentDrawing( XFontSet(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3648 -XContextualDrawing = platform.createBaseFunction( - 'XContextualDrawing', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet], - doc='XContextualDrawing( XFontSet(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 526 -XConvertCase = platform.createBaseFunction( - 'XConvertCase', dll=platform.GL, resultType=None, - argTypes=[KeySym,POINTER(KeySym),POINTER(KeySym)], - doc='XConvertCase( KeySym(None), POINTER(KeySym)(None), POINTER(KeySym)(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2184 -XConvertSelection = platform.createBaseFunction( - 'XConvertSelection', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Atom,Atom,Atom,Window,Time], - doc='XConvertSelection( POINTER(Display)(None), Atom(None), Atom(None), Atom(None), Window(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2197 -XCopyArea = platform.createBaseFunction( - 'XCopyArea', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,Drawable,GC,c_int,c_int,c_uint,c_uint,c_int,c_int], - doc='XCopyArea( POINTER(Display)(None), Drawable(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1554 -XCopyColormapAndFree = platform.createBaseFunction( - 'XCopyColormapAndFree', dll=platform.GL, resultType=Colormap, - argTypes=[POINTER(Display),Colormap], - doc='XCopyColormapAndFree( POINTER(Display)(None), Colormap(None) ) -> Colormap', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2204 -XCopyGC = platform.createBaseFunction( - 'XCopyGC', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong,GC], - doc='XCopyGC( POINTER(Display)(None), GC(None), c_ulong(None), GC(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2218 -XCopyPlane = platform.createBaseFunction( - 'XCopyPlane', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,Drawable,GC,c_int,c_int,c_uint,c_uint,c_int,c_int,c_ulong], - doc='XCopyPlane( POINTER(Display)(None), Drawable(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None), c_int(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1613 -XCreateBitmapFromData = platform.createBaseFunction( - 'XCreateBitmapFromData', dll=platform.GL, resultType=Pixmap, - argTypes=[POINTER(Display),Drawable,STRING,c_uint,c_uint], - doc='XCreateBitmapFromData( POINTER(Display)(None), Drawable(None), STRING(None), c_uint(None), c_uint(None) ) -> Pixmap', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1560 -XCreateColormap = platform.createBaseFunction( - 'XCreateColormap', dll=platform.GL, resultType=Colormap, - argTypes=[POINTER(Display),Window,POINTER(Visual),c_int], - doc='XCreateColormap( POINTER(Display)(None), Window(None), POINTER(Visual)(None), c_int(None) ) -> Colormap', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1582 -XCreateFontCursor = platform.createBaseFunction( - 'XCreateFontCursor', dll=platform.GL, resultType=Cursor, - argTypes=[POINTER(Display),c_uint], - doc='XCreateFontCursor( POINTER(Display)(None), c_uint(None) ) -> Cursor', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3617 -XCreateFontSet = platform.createBaseFunction( - 'XCreateFontSet', dll=platform.GL, resultType=XFontSet, - argTypes=[POINTER(Display),STRING,POINTER(POINTER(STRING)),POINTER(c_int),POINTER(STRING)], - doc='XCreateFontSet( POINTER(Display)(None), STRING(None), POINTER(POINTER(STRING))(None), POINTER(c_int)(None), POINTER(STRING)(None) ) -> XFontSet', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1592 -XCreateGC = platform.createBaseFunction( - 'XCreateGC', dll=platform.GL, resultType=GC, - argTypes=[POINTER(Display),Drawable,c_ulong,POINTER(XGCValues)], - doc='XCreateGC( POINTER(Display)(None), Drawable(None), c_ulong(None), POINTER(XGCValues)(None) ) -> GC', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1578 -XCreateGlyphCursor = platform.createBaseFunction( - 'XCreateGlyphCursor', dll=platform.GL, resultType=Cursor, - argTypes=[POINTER(Display),Font,Font,c_uint,c_uint,POINTER(XColor),POINTER(XColor)], - doc='XCreateGlyphCursor( POINTER(Display)(None), Font(None), Font(None), c_uint(None), c_uint(None), POINTER(XColor)(None), POINTER(XColor)(None) ) -> Cursor', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class _XIC(Structure): - pass -XIC = POINTER(_XIC) - -# /usr/include/X11/Xlib.h 3857 -XCreateIC = platform.createBaseFunction( - 'XCreateIC', dll=platform.GL, resultType=XIC, - argTypes=[XIM], - doc='XCreateIC( XIM(None) ) -> XIC', - argNames=('None',), -) - -class _XImage(Structure): - pass -XImage = _XImage - -# /usr/include/X11/Xlib.h 1455 -XCreateImage = platform.createBaseFunction( - 'XCreateImage', dll=platform.GL, resultType=POINTER(XImage), - argTypes=[POINTER(Display),POINTER(Visual),c_uint,c_int,c_int,STRING,c_uint,c_uint,c_int,c_int], - doc='XCreateImage( POINTER(Display)(None), POINTER(Visual)(None), c_uint(None), c_int(None), c_int(None), STRING(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> POINTER(XImage)', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -XOC = POINTER(_XOC) - -# /usr/include/X11/Xlib.h 3591 -XCreateOC = platform.createBaseFunction( - 'XCreateOC', dll=platform.GL, resultType=XOC, - argTypes=[XOM], - doc='XCreateOC( XOM(None) ) -> XOC', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1606 -XCreatePixmap = platform.createBaseFunction( - 'XCreatePixmap', dll=platform.GL, resultType=Pixmap, - argTypes=[POINTER(Display),Drawable,c_uint,c_uint,c_uint], - doc='XCreatePixmap( POINTER(Display)(None), Drawable(None), c_uint(None), c_uint(None), c_uint(None) ) -> Pixmap', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1569 -XCreatePixmapCursor = platform.createBaseFunction( - 'XCreatePixmapCursor', dll=platform.GL, resultType=Cursor, - argTypes=[POINTER(Display),Pixmap,Pixmap,POINTER(XColor),POINTER(XColor),c_uint,c_uint], - doc='XCreatePixmapCursor( POINTER(Display)(None), Pixmap(None), Pixmap(None), POINTER(XColor)(None), POINTER(XColor)(None), c_uint(None), c_uint(None) ) -> Cursor', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1623 -XCreatePixmapFromBitmapData = platform.createBaseFunction( - 'XCreatePixmapFromBitmapData', dll=platform.GL, resultType=Pixmap, - argTypes=[POINTER(Display),Drawable,STRING,c_uint,c_uint,c_ulong,c_ulong,c_uint], - doc='XCreatePixmapFromBitmapData( POINTER(Display)(None), Drawable(None), STRING(None), c_uint(None), c_uint(None), c_ulong(None), c_ulong(None), c_uint(None) ) -> Pixmap', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 387 -XCreateRegion = platform.createBaseFunction( - 'XCreateRegion', dll=platform.GL, resultType=Region, - argTypes=[], - doc='XCreateRegion( ) -> Region', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 1634 -XCreateSimpleWindow = platform.createBaseFunction( - 'XCreateSimpleWindow', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Display),Window,c_int,c_int,c_uint,c_uint,c_uint,c_ulong,c_ulong], - doc='XCreateSimpleWindow( POINTER(Display)(None), Window(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_uint(None), c_ulong(None), c_ulong(None) ) -> Window', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1652 -XCreateWindow = platform.createBaseFunction( - 'XCreateWindow', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Display),Window,c_int,c_int,c_uint,c_uint,c_uint,c_int,c_uint,POINTER(Visual),c_ulong,POINTER(XSetWindowAttributes)], - doc='XCreateWindow( POINTER(Display)(None), Window(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_uint(None), c_int(None), c_uint(None), POINTER(Visual)(None), c_ulong(None), POINTER(XSetWindowAttributes)(None) ) -> Window', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XCreateWindowEvent(Structure): - pass -XCreateWindowEvent._fields_ = [ - # /usr/include/X11/Xlib.h 748 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('parent', Window), - ('window', Window), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('border_width', c_int), - ('override_redirect', c_int), -] -class XCrossingEvent(Structure): - pass -XCrossingEvent._fields_ = [ - # /usr/include/X11/Xlib.h 662 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('root', Window), - ('subwindow', Window), - ('time', Time), - ('x', c_int), - ('y', c_int), - ('x_root', c_int), - ('y_root', c_int), - ('mode', c_int), - ('detail', c_int), - ('same_screen', c_int), - ('focus', c_int), - ('state', c_uint), -] - -# /usr/include/X11/Xlib.h 1823 -XDefaultColormap = platform.createBaseFunction( - 'XDefaultColormap', dll=platform.GL, resultType=Colormap, - argTypes=[POINTER(Display),c_int], - doc='XDefaultColormap( POINTER(Display)(None), c_int(None) ) -> Colormap', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1826 -XDefaultColormapOfScreen = platform.createBaseFunction( - 'XDefaultColormapOfScreen', dll=platform.GL, resultType=Colormap, - argTypes=[POINTER(Screen)], - doc='XDefaultColormapOfScreen( POINTER(Screen)(None) ) -> Colormap', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2223 -XDefaultDepth = platform.createBaseFunction( - 'XDefaultDepth', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDefaultDepth( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2227 -XDefaultDepthOfScreen = platform.createBaseFunction( - 'XDefaultDepthOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XDefaultDepthOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1787 -XDefaultGC = platform.createBaseFunction( - 'XDefaultGC', dll=platform.GL, resultType=GC, - argTypes=[POINTER(Display),c_int], - doc='XDefaultGC( POINTER(Display)(None), c_int(None) ) -> GC', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1790 -XDefaultGCOfScreen = platform.createBaseFunction( - 'XDefaultGCOfScreen', dll=platform.GL, resultType=GC, - argTypes=[POINTER(Screen)], - doc='XDefaultGCOfScreen( POINTER(Screen)(None) ) -> GC', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1773 -XDefaultRootWindow = platform.createBaseFunction( - 'XDefaultRootWindow', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Display)], - doc='XDefaultRootWindow( POINTER(Display)(None) ) -> Window', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2231 -XDefaultScreen = platform.createBaseFunction( - 'XDefaultScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XDefaultScreen( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1836 -XDefaultScreenOfDisplay = platform.createBaseFunction( - 'XDefaultScreenOfDisplay', dll=platform.GL, resultType=POINTER(Screen), - argTypes=[POINTER(Display)], - doc='XDefaultScreenOfDisplay( POINTER(Display)(None) ) -> POINTER(Screen)', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 389 -XDefaultString = platform.createBaseFunction( - 'XDefaultString', dll=platform.GL, resultType=STRING, - argTypes=[], - doc='XDefaultString( ) -> STRING', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 1780 -XDefaultVisual = platform.createBaseFunction( - 'XDefaultVisual', dll=platform.GL, resultType=POINTER(Visual), - argTypes=[POINTER(Display),c_int], - doc='XDefaultVisual( POINTER(Display)(None), c_int(None) ) -> POINTER(Visual)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1783 -XDefaultVisualOfScreen = platform.createBaseFunction( - 'XDefaultVisualOfScreen', dll=platform.GL, resultType=POINTER(Visual), - argTypes=[POINTER(Screen)], - doc='XDefaultVisualOfScreen( POINTER(Screen)(None) ) -> POINTER(Visual)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2237 -XDefineCursor = platform.createBaseFunction( - 'XDefineCursor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Cursor], - doc='XDefineCursor( POINTER(Display)(None), Window(None), Cursor(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 395 -XDeleteContext = platform.createBaseFunction( - 'XDeleteContext', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID,XContext], - doc='XDeleteContext( POINTER(Display)(None), XID(None), XContext(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XModifierKeymap(Structure): - pass - -# /usr/include/X11/Xlib.h 1424 -XDeleteModifiermapEntry = platform.createBaseFunction( - 'XDeleteModifiermapEntry', dll=platform.GL, resultType=POINTER(XModifierKeymap), - argTypes=[POINTER(XModifierKeymap),KeyCode,c_int], - doc='XDeleteModifiermapEntry( POINTER(XModifierKeymap)(None), KeyCode(None), c_int(None) ) -> POINTER(XModifierKeymap)', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2243 -XDeleteProperty = platform.createBaseFunction( - 'XDeleteProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Atom], - doc='XDeleteProperty( POINTER(Display)(None), Window(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3861 -XDestroyIC = platform.createBaseFunction( - 'XDestroyIC', dll=platform.GL, resultType=None, - argTypes=[XIC], - doc='XDestroyIC( XIC(None) ) -> None', - argNames=('None',), -) - -#def XDestroyImage(ximage): return ((*((ximage)->f.destroy_image))((ximage))) # macro - -# /usr/include/X11/Xlib.h 3595 -XDestroyOC = platform.createBaseFunction( - 'XDestroyOC', dll=platform.GL, resultType=None, - argTypes=[XOC], - doc='XDestroyOC( XOC(None) ) -> None', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 399 -XDestroyRegion = platform.createBaseFunction( - 'XDestroyRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region], - doc='XDestroyRegion( Region(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2253 -XDestroySubwindows = platform.createBaseFunction( - 'XDestroySubwindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XDestroySubwindows( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2248 -XDestroyWindow = platform.createBaseFunction( - 'XDestroyWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XDestroyWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XDestroyWindowEvent(Structure): - pass -XDestroyWindowEvent._fields_ = [ - # /usr/include/X11/Xlib.h 757 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), -] - -# /usr/include/X11/Xlib.h 3644 -XDirectionalDependentDrawing = platform.createBaseFunction( - 'XDirectionalDependentDrawing', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet], - doc='XDirectionalDependentDrawing( XFontSet(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2265 -XDisableAccessControl = platform.createBaseFunction( - 'XDisableAccessControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XDisableAccessControl( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2271 -XDisplayCells = platform.createBaseFunction( - 'XDisplayCells', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayCells( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2276 -XDisplayHeight = platform.createBaseFunction( - 'XDisplayHeight', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayHeight( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2281 -XDisplayHeightMM = platform.createBaseFunction( - 'XDisplayHeightMM', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayHeightMM( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2287 -XDisplayKeycodes = platform.createBaseFunction( - 'XDisplayKeycodes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int)], - doc='XDisplayKeycodes( POINTER(Display)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1729 -XDisplayMotionBufferSize = platform.createBaseFunction( - 'XDisplayMotionBufferSize', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Display)], - doc='XDisplayMotionBufferSize( POINTER(Display)(None) ) -> c_ulong', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1520 -XDisplayName = platform.createBaseFunction( - 'XDisplayName', dll=platform.GL, resultType=STRING, - argTypes=[STRING], - doc='XDisplayName( STRING(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3849 -XDisplayOfIM = platform.createBaseFunction( - 'XDisplayOfIM', dll=platform.GL, resultType=POINTER(Display), - argTypes=[XIM], - doc='XDisplayOfIM( XIM(None) ) -> POINTER(Display)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3582 -XDisplayOfOM = platform.createBaseFunction( - 'XDisplayOfOM', dll=platform.GL, resultType=POINTER(Display), - argTypes=[XOM], - doc='XDisplayOfOM( XOM(None) ) -> POINTER(Display)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1829 -XDisplayOfScreen = platform.createBaseFunction( - 'XDisplayOfScreen', dll=platform.GL, resultType=POINTER(Display), - argTypes=[POINTER(Screen)], - doc='XDisplayOfScreen( POINTER(Screen)(None) ) -> POINTER(Display)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2292 -XDisplayPlanes = platform.createBaseFunction( - 'XDisplayPlanes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayPlanes( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1819 -XDisplayString = platform.createBaseFunction( - 'XDisplayString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display)], - doc='XDisplayString( POINTER(Display)(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2297 -XDisplayWidth = platform.createBaseFunction( - 'XDisplayWidth', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayWidth( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2302 -XDisplayWidthMM = platform.createBaseFunction( - 'XDisplayWidthMM', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XDisplayWidthMM( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2257 -XDoesBackingStore = platform.createBaseFunction( - 'XDoesBackingStore', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XDoesBackingStore( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2261 -XDoesSaveUnders = platform.createBaseFunction( - 'XDoesSaveUnders', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XDoesSaveUnders( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2314 -XDrawArc = platform.createBaseFunction( - 'XDrawArc', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,c_uint,c_uint,c_int,c_int], - doc='XDrawArc( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2322 -XDrawArcs = platform.createBaseFunction( - 'XDrawArcs', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XArc),c_int], - doc='XDrawArcs( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XArc)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2332 -XDrawImageString = platform.createBaseFunction( - 'XDrawImageString', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,STRING,c_int], - doc='XDrawImageString( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2342 -XDrawImageString16 = platform.createBaseFunction( - 'XDrawImageString16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XChar2b),c_int], - doc='XDrawImageString16( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XChar2b)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2352 -XDrawLine = platform.createBaseFunction( - 'XDrawLine', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,c_int,c_int], - doc='XDrawLine( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XPoint(Structure): - pass -# /usr/include/X11/Xlib.h 2361 -XDrawLines = platform.createBaseFunction( - 'XDrawLines', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XPoint),c_int,c_int], - doc='XDrawLines( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XPoint)(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2369 -XDrawPoint = platform.createBaseFunction( - 'XDrawPoint', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int], - doc='XDrawPoint( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2378 -XDrawPoints = platform.createBaseFunction( - 'XDrawPoints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XPoint),c_int,c_int], - doc='XDrawPoints( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XPoint)(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2388 -XDrawRectangle = platform.createBaseFunction( - 'XDrawRectangle', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,c_uint,c_uint], - doc='XDrawRectangle( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2396 -XDrawRectangles = platform.createBaseFunction( - 'XDrawRectangles', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XRectangle),c_int], - doc='XDrawRectangles( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XRectangle)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -class XSegment(Structure): - pass -# /usr/include/X11/Xlib.h 2404 -XDrawSegments = platform.createBaseFunction( - 'XDrawSegments', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XSegment),c_int], - doc='XDrawSegments( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XSegment)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2414 -XDrawString = platform.createBaseFunction( - 'XDrawString', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,STRING,c_int], - doc='XDrawString( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2424 -XDrawString16 = platform.createBaseFunction( - 'XDrawString16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XChar2b),c_int], - doc='XDrawString16( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XChar2b)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XTextItem(Structure): - pass -# /usr/include/X11/Xlib.h 2434 -XDrawText = platform.createBaseFunction( - 'XDrawText', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XTextItem),c_int], - doc='XDrawText( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XTextItem)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XTextItem16(Structure): - pass -# /usr/include/X11/Xlib.h 2444 -XDrawText16 = platform.createBaseFunction( - 'XDrawText16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XTextItem16),c_int], - doc='XDrawText16( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XTextItem16)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XEDataObject(Union): - pass - -class XFontStruct(Structure): - pass -XEDataObject._fields_ = [ - # /usr/include/X11/Xlib.h 1085 - ('display', POINTER(Display)), - ('gc', GC), - ('visual', POINTER(Visual)), - ('screen', POINTER(Screen)), - ('pixmap_format', POINTER(ScreenFormat)), - ('font', POINTER(XFontStruct)), -] - - -# /usr/include/X11/Xlib.h 1764 -XEHeadOfExtensionList = platform.createBaseFunction( - 'XEHeadOfExtensionList', dll=platform.GL, resultType=POINTER(POINTER(XExtData)), - argTypes=[XEDataObject], - doc='XEHeadOfExtensionList( XEDataObject(None) ) -> POINTER(POINTER(XExtData))', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 403 -XEmptyRegion = platform.createBaseFunction( - 'XEmptyRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region], - doc='XEmptyRegion( Region(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2448 -XEnableAccessControl = platform.createBaseFunction( - 'XEnableAccessControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XEnableAccessControl( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -XEnterWindowEvent = XCrossingEvent - -# /usr/include/X11/Xutil.h 408 -XEqualRegion = platform.createBaseFunction( - 'XEqualRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,Region], - doc='XEqualRegion( Region(None), Region(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XErrorEvent(Structure): - pass -XErrorEvent._fields_ = [ - # /usr/include/X11/Xlib.h 964 - ('type', c_int), - ('display', POINTER(Display)), - ('resourceid', XID), - ('serial', c_ulong), - ('error_code', c_ubyte), - ('request_code', c_ubyte), - ('minor_code', c_ubyte), -] - -XErrorHandler = CFUNCTYPE(c_int, POINTER(Display), POINTER(XErrorEvent)) - -# /usr/include/X11/Xlib.h 1839 -XEventMaskOfScreen = platform.createBaseFunction( - 'XEventMaskOfScreen', dll=platform.GL, resultType=c_long, - argTypes=[POINTER(Screen)], - doc='XEventMaskOfScreen( POINTER(Screen)(None) ) -> c_long', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2453 -XEventsQueued = platform.createBaseFunction( - 'XEventsQueued', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XEventsQueued( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XExposeEvent(Structure): - pass -XExposeEvent._fields_ = [ - # /usr/include/X11/Xlib.h 703 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('count', c_int), -] -XExtCodes._fields_ = [ - # /usr/include/X11/Xlib.h 197 - ('extension', c_int), - ('major_opcode', c_int), - ('first_event', c_int), - ('first_error', c_int), -] - -# /usr/include/X11/Xlib.h 1720 -XExtendedMaxRequestSize = platform.createBaseFunction( - 'XExtendedMaxRequestSize', dll=platform.GL, resultType=c_long, - argTypes=[POINTER(Display)], - doc='XExtendedMaxRequestSize( POINTER(Display)(None) ) -> c_long', - argNames=('None',), -) - -class XFontSetExtents(Structure): - pass - -# /usr/include/X11/Xlib.h 3652 -XExtentsOfFontSet = platform.createBaseFunction( - 'XExtentsOfFontSet', dll=platform.GL, resultType=POINTER(XFontSetExtents), - argTypes=[XFontSet], - doc='XExtentsOfFontSet( XFontSet(None) ) -> POINTER(XFontSetExtents)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1502 -XFetchBuffer = platform.createBaseFunction( - 'XFetchBuffer', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),POINTER(c_int),c_int], - doc='XFetchBuffer( POINTER(Display)(None), POINTER(c_int)(None), c_int(None) ) -> STRING', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1497 -XFetchBytes = platform.createBaseFunction( - 'XFetchBytes', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),POINTER(c_int)], - doc='XFetchBytes( POINTER(Display)(None), POINTER(c_int)(None) ) -> STRING', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2459 -XFetchName = platform.createBaseFunction( - 'XFetchName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(STRING)], - doc='XFetchName( POINTER(Display)(None), Window(None), POINTER(STRING)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2471 -XFillArc = platform.createBaseFunction( - 'XFillArc', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,c_uint,c_uint,c_int,c_int], - doc='XFillArc( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2479 -XFillArcs = platform.createBaseFunction( - 'XFillArcs', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XArc),c_int], - doc='XFillArcs( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XArc)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2489 -XFillPolygon = platform.createBaseFunction( - 'XFillPolygon', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XPoint),c_int,c_int,c_int], - doc='XFillPolygon( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XPoint)(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2499 -XFillRectangle = platform.createBaseFunction( - 'XFillRectangle', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,c_uint,c_uint], - doc='XFillRectangle( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2507 -XFillRectangles = platform.createBaseFunction( - 'XFillRectangles', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XRectangle),c_int], - doc='XFillRectangles( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XRectangle)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3898 -XFilterEvent = platform.createBaseFunction( - 'XFilterEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XEvent),Window], - doc='XFilterEvent( POINTER(XEvent)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 415 -XFindContext = platform.createBaseFunction( - 'XFindContext', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID,XContext,POINTER(XPointer)], - doc='XFindContext( POINTER(Display)(None), XID(None), XContext(None), POINTER(XPointer)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1761 -XFindOnExtensionList = platform.createBaseFunction( - 'XFindOnExtensionList', dll=platform.GL, resultType=POINTER(XExtData), - argTypes=[POINTER(POINTER(XExtData)),c_int], - doc='XFindOnExtensionList( POINTER(POINTER(XExtData))(None), c_int(None) ) -> POINTER(XExtData)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2511 -XFlush = platform.createBaseFunction( - 'XFlush', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XFlush( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1599 -XFlushGC = platform.createBaseFunction( - 'XFlushGC', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GC], - doc='XFlushGC( POINTER(Display)(None), GC(None) ) -> None', - argNames=('None', 'None'), -) - -class XFocusChangeEvent(Structure): - pass -XFocusChangeEvent._fields_ = [ - # /usr/include/X11/Xlib.h 680 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('mode', c_int), - ('detail', c_int), -] -XFocusInEvent = XFocusChangeEvent -XFocusOutEvent = XFocusChangeEvent -class XFontProp(Structure): - pass -XFontProp._fields_ = [ - # /usr/include/X11/Xlib.h 1036 - ('name', Atom), - ('card32', c_ulong), -] -XRectangle._fields_ = [ - # /usr/include/X11/Xlib.h 465 - ('x', c_short), - ('y', c_short), - ('width', c_ushort), - ('height', c_ushort), -] -XFontSetExtents._fields_ = [ - # /usr/include/X11/Xlib.h 1090 - ('max_ink_extent', XRectangle), - ('max_logical_extent', XRectangle), -] - - -XFontStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1055 - ('ext_data', POINTER(XExtData)), - ('fid', Font), - ('direction', c_uint), - ('min_char_or_byte2', c_uint), - ('max_char_or_byte2', c_uint), - ('min_byte1', c_uint), - ('max_byte1', c_uint), - ('all_chars_exist', c_int), - ('default_char', c_uint), - ('n_properties', c_int), - ('properties', POINTER(XFontProp)), - ('min_bounds', XCharStruct), - ('max_bounds', XCharStruct), - ('per_char', POINTER(XCharStruct)), - ('ascent', c_int), - ('descent', c_int), -] - -# /usr/include/X11/Xlib.h 3628 -XFontsOfFontSet = platform.createBaseFunction( - 'XFontsOfFontSet', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,POINTER(POINTER(POINTER(XFontStruct))),POINTER(POINTER(STRING))], - doc='XFontsOfFontSet( XFontSet(None), POINTER(POINTER(POINTER(XFontStruct)))(None), POINTER(POINTER(STRING))(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2516 -XForceScreenSaver = platform.createBaseFunction( - 'XForceScreenSaver', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XForceScreenSaver( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2520 -XFree = platform.createBaseFunction( - 'XFree', dll=platform.GL, resultType=c_int, - argTypes=[c_void_p], - doc='XFree( c_void_p(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2525 -XFreeColormap = platform.createBaseFunction( - 'XFreeColormap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap], - doc='XFreeColormap( POINTER(Display)(None), Colormap(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2533 -XFreeColors = platform.createBaseFunction( - 'XFreeColors', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(c_ulong),c_int,c_ulong], - doc='XFreeColors( POINTER(Display)(None), Colormap(None), POINTER(c_ulong)(None), c_int(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2538 -XFreeCursor = platform.createBaseFunction( - 'XFreeCursor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Cursor], - doc='XFreeCursor( POINTER(Display)(None), Cursor(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2542 -XFreeExtensionList = platform.createBaseFunction( - 'XFreeExtensionList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(STRING)], - doc='XFreeExtensionList( POINTER(STRING)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2547 -XFreeFont = platform.createBaseFunction( - 'XFreeFont', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XFontStruct)], - doc='XFreeFont( POINTER(Display)(None), POINTER(XFontStruct)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2553 -XFreeFontInfo = platform.createBaseFunction( - 'XFreeFontInfo', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(STRING),POINTER(XFontStruct),c_int], - doc='XFreeFontInfo( POINTER(STRING)(None), POINTER(XFontStruct)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2557 -XFreeFontNames = platform.createBaseFunction( - 'XFreeFontNames', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(STRING)], - doc='XFreeFontNames( POINTER(STRING)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2561 -XFreeFontPath = platform.createBaseFunction( - 'XFreeFontPath', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(STRING)], - doc='XFreeFontPath( POINTER(STRING)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3622 -XFreeFontSet = platform.createBaseFunction( - 'XFreeFontSet', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),XFontSet], - doc='XFreeFontSet( POINTER(Display)(None), XFontSet(None) ) -> None', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2566 -XFreeGC = platform.createBaseFunction( - 'XFreeGC', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC], - doc='XFreeGC( POINTER(Display)(None), GC(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2570 -XFreeModifiermap = platform.createBaseFunction( - 'XFreeModifiermap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XModifierKeymap)], - doc='XFreeModifiermap( POINTER(XModifierKeymap)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2575 -XFreePixmap = platform.createBaseFunction( - 'XFreePixmap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Pixmap], - doc='XFreePixmap( POINTER(Display)(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1926 -XFreeStringList = platform.createBaseFunction( - 'XFreeStringList', dll=platform.GL, resultType=None, - argTypes=[POINTER(STRING)], - doc='XFreeStringList( POINTER(STRING)(None) ) -> None', - argNames=('None',), -) - -XGCValues._fields_ = [ - # /usr/include/X11/Xlib.h 239 - ('function', c_int), - ('plane_mask', c_ulong), - ('foreground', c_ulong), - ('background', c_ulong), - ('line_width', c_int), - ('line_style', c_int), - ('cap_style', c_int), - ('join_style', c_int), - ('fill_style', c_int), - ('fill_rule', c_int), - ('arc_mode', c_int), - ('tile', Pixmap), - ('stipple', Pixmap), - ('ts_x_origin', c_int), - ('ts_y_origin', c_int), - ('font', Font), - ('subwindow_mode', c_int), - ('graphics_exposures', c_int), - ('clip_x_origin', c_int), - ('clip_y_origin', c_int), - ('clip_mask', Pixmap), - ('dash_offset', c_int), - ('dashes', c_char), -] - -# /usr/include/X11/Xlib.h 1595 -XGContextFromGC = platform.createBaseFunction( - 'XGContextFromGC', dll=platform.GL, resultType=GContext, - argTypes=[GC], - doc='XGContextFromGC( GC(None) ) -> GContext', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2591 -XGeometry = platform.createBaseFunction( - 'XGeometry', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,STRING,STRING,c_uint,c_uint,c_uint,c_int,c_int,POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_int)], - doc='XGeometry( POINTER(Display)(None), c_int(None), STRING(None), STRING(None), c_uint(None), c_uint(None), c_uint(None), c_int(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1506 -XGetAtomName = platform.createBaseFunction( - 'XGetAtomName', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),Atom], - doc='XGetAtomName( POINTER(Display)(None), Atom(None) ) -> STRING', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1512 -XGetAtomNames = platform.createBaseFunction( - 'XGetAtomNames', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(Atom),c_int,POINTER(STRING)], - doc='XGetAtomNames( POINTER(Display)(None), POINTER(Atom)(None), c_int(None), POINTER(STRING)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 421 -XGetClassHint = platform.createBaseFunction( - 'XGetClassHint', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XClassHint)], - doc='XGetClassHint( POINTER(Display)(None), Window(None), POINTER(XClassHint)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1911 -XGetCommand = platform.createBaseFunction( - 'XGetCommand', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(POINTER(STRING)),POINTER(c_int)], - doc='XGetCommand( POINTER(Display)(None), Window(None), POINTER(POINTER(STRING))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1517 -XGetDefault = platform.createBaseFunction( - 'XGetDefault', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),STRING,STRING], - doc='XGetDefault( POINTER(Display)(None), STRING(None), STRING(None) ) -> STRING', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2600 -XGetErrorDatabaseText = platform.createBaseFunction( - 'XGetErrorDatabaseText', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING,STRING,STRING,STRING,c_int], - doc='XGetErrorDatabaseText( POINTER(Display)(None), STRING(None), STRING(None), STRING(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2607 -XGetErrorText = platform.createBaseFunction( - 'XGetErrorText', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,STRING,c_int], - doc='XGetErrorText( POINTER(Display)(None), c_int(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1674 -XGetFontPath = platform.createBaseFunction( - 'XGetFontPath', dll=platform.GL, resultType=POINTER(STRING), - argTypes=[POINTER(Display),POINTER(c_int)], - doc='XGetFontPath( POINTER(Display)(None), POINTER(c_int)(None) ) -> POINTER(STRING)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2613 -XGetFontProperty = platform.createBaseFunction( - 'XGetFontProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XFontStruct),Atom,POINTER(c_ulong)], - doc='XGetFontProperty( POINTER(XFontStruct)(None), Atom(None), POINTER(c_ulong)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2620 -XGetGCValues = platform.createBaseFunction( - 'XGetGCValues', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong,POINTER(XGCValues)], - doc='XGetGCValues( POINTER(Display)(None), GC(None), c_ulong(None), POINTER(XGCValues)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2632 -XGetGeometry = platform.createBaseFunction( - 'XGetGeometry', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,POINTER(Window),POINTER(c_int),POINTER(c_int),POINTER(c_uint),POINTER(c_uint),POINTER(c_uint),POINTER(c_uint)], - doc='XGetGeometry( POINTER(Display)(None), Drawable(None), POINTER(Window)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_uint)(None), POINTER(c_uint)(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3889 -XGetICValues = platform.createBaseFunction( - 'XGetICValues', dll=platform.GL, resultType=STRING, - argTypes=[XIC], - doc='XGetICValues( XIC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3841 -XGetIMValues = platform.createBaseFunction( - 'XGetIMValues', dll=platform.GL, resultType=STRING, - argTypes=[XIM], - doc='XGetIMValues( XIM(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2638 -XGetIconName = platform.createBaseFunction( - 'XGetIconName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(STRING)], - doc='XGetIconName( POINTER(Display)(None), Window(None), POINTER(STRING)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 428 -XGetIconSizes = platform.createBaseFunction( - 'XGetIconSizes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(POINTER(XIconSize)),POINTER(c_int)], - doc='XGetIconSizes( POINTER(Display)(None), Window(None), POINTER(POINTER(XIconSize))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1468 -XGetImage = platform.createBaseFunction( - 'XGetImage', dll=platform.GL, resultType=POINTER(XImage), - argTypes=[POINTER(Display),Drawable,c_int,c_int,c_uint,c_uint,c_ulong,c_int], - doc='XGetImage( POINTER(Display)(None), Drawable(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_ulong(None), c_int(None) ) -> POINTER(XImage)', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2644 -XGetInputFocus = platform.createBaseFunction( - 'XGetInputFocus', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(Window),POINTER(c_int)], - doc='XGetInputFocus( POINTER(Display)(None), POINTER(Window)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XKeyboardState(Structure): - pass -# /usr/include/X11/Xlib.h 2649 -XGetKeyboardControl = platform.createBaseFunction( - 'XGetKeyboardControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XKeyboardState)], - doc='XGetKeyboardControl( POINTER(Display)(None), POINTER(XKeyboardState)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1711 -XGetKeyboardMapping = platform.createBaseFunction( - 'XGetKeyboardMapping', dll=platform.GL, resultType=POINTER(KeySym), - argTypes=[POINTER(Display),KeyCode,c_int,POINTER(c_int)], - doc='XGetKeyboardMapping( POINTER(Display)(None), KeyCode(None), c_int(None), POINTER(c_int)(None) ) -> POINTER(KeySym)', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1428 -XGetModifierMapping = platform.createBaseFunction( - 'XGetModifierMapping', dll=platform.GL, resultType=POINTER(XModifierKeymap), - argTypes=[POINTER(Display)], - doc='XGetModifierMapping( POINTER(Display)(None) ) -> POINTER(XModifierKeymap)', - argNames=('None',), -) - -class XTimeCoord(Structure): - pass - -# /usr/include/X11/Xlib.h 1414 -XGetMotionEvents = platform.createBaseFunction( - 'XGetMotionEvents', dll=platform.GL, resultType=POINTER(XTimeCoord), - argTypes=[POINTER(Display),Window,Time,Time,POINTER(c_int)], - doc='XGetMotionEvents( POINTER(Display)(None), Window(None), Time(None), Time(None), POINTER(c_int)(None) ) -> POINTER(XTimeCoord)', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 434 -XGetNormalHints = platform.createBaseFunction( - 'XGetNormalHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints)], - doc='XGetNormalHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3609 -XGetOCValues = platform.createBaseFunction( - 'XGetOCValues', dll=platform.GL, resultType=STRING, - argTypes=[XOC], - doc='XGetOCValues( XOC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3578 -XGetOMValues = platform.createBaseFunction( - 'XGetOMValues', dll=platform.GL, resultType=STRING, - argTypes=[XOM], - doc='XGetOMValues( XOM(None) ) -> STRING', - argNames=('None',), -) - -#def XGetPixel(ximage,x,y): return ((*((ximage)->f.get_pixel))((ximage), (x), (y))) # macro - -# /usr/include/X11/Xlib.h 2656 -XGetPointerControl = platform.createBaseFunction( - 'XGetPointerControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int),POINTER(c_int)], - doc='XGetPointerControl( POINTER(Display)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2662 -XGetPointerMapping = platform.createBaseFunction( - 'XGetPointerMapping', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_ubyte),c_int], - doc='XGetPointerMapping( POINTER(Display)(None), POINTER(c_ubyte)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 442 -XGetRGBColormaps = platform.createBaseFunction( - 'XGetRGBColormaps', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(POINTER(XStandardColormap)),POINTER(c_int),Atom], - doc='XGetRGBColormaps( POINTER(Display)(None), Window(None), POINTER(POINTER(XStandardColormap))(None), POINTER(c_int)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2670 -XGetScreenSaver = platform.createBaseFunction( - 'XGetScreenSaver', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_int)], - doc='XGetScreenSaver( POINTER(Display)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1638 -XGetSelectionOwner = platform.createBaseFunction( - 'XGetSelectionOwner', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Display),Atom], - doc='XGetSelectionOwner( POINTER(Display)(None), Atom(None) ) -> Window', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 449 -XGetSizeHints = platform.createBaseFunction( - 'XGetSizeHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints),Atom], - doc='XGetSizeHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 456 -XGetStandardColormap = platform.createBaseFunction( - 'XGetStandardColormap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XStandardColormap),Atom], - doc='XGetStandardColormap( POINTER(Display)(None), Window(None), POINTER(XStandardColormap)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1481 -XGetSubImage = platform.createBaseFunction( - 'XGetSubImage', dll=platform.GL, resultType=POINTER(XImage), - argTypes=[POINTER(Display),Drawable,c_int,c_int,c_uint,c_uint,c_ulong,c_int,POINTER(XImage),c_int,c_int], - doc='XGetSubImage( POINTER(Display)(None), Drawable(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_ulong(None), c_int(None), POINTER(XImage)(None), c_int(None), c_int(None) ) -> POINTER(XImage)', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XTextProperty(Structure): - pass -# /usr/include/X11/Xutil.h 463 -XGetTextProperty = platform.createBaseFunction( - 'XGetTextProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty),Atom], - doc='XGetTextProperty( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2676 -XGetTransientForHint = platform.createBaseFunction( - 'XGetTransientForHint', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Window)], - doc='XGetTransientForHint( POINTER(Display)(None), Window(None), POINTER(Window)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XVisualInfo(Structure): - pass - -# /usr/include/X11/Xutil.h 470 -XGetVisualInfo = platform.createBaseFunction( - 'XGetVisualInfo', dll=platform.GL, resultType=POINTER(XVisualInfo), - argTypes=[POINTER(Display),c_long,POINTER(XVisualInfo),POINTER(c_int)], - doc='XGetVisualInfo( POINTER(Display)(None), c_long(None), POINTER(XVisualInfo)(None), POINTER(c_int)(None) ) -> POINTER(XVisualInfo)', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 476 -XGetWMClientMachine = platform.createBaseFunction( - 'XGetWMClientMachine', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XGetWMClientMachine( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1917 -XGetWMColormapWindows = platform.createBaseFunction( - 'XGetWMColormapWindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(POINTER(Window)),POINTER(c_int)], - doc='XGetWMColormapWindows( POINTER(Display)(None), Window(None), POINTER(POINTER(Window))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 481 -XGetWMHints = platform.createBaseFunction( - 'XGetWMHints', dll=platform.GL, resultType=POINTER(XWMHints), - argTypes=[POINTER(Display),Window], - doc='XGetWMHints( POINTER(Display)(None), Window(None) ) -> POINTER(XWMHints)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 487 -XGetWMIconName = platform.createBaseFunction( - 'XGetWMIconName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XGetWMIconName( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 493 -XGetWMName = platform.createBaseFunction( - 'XGetWMName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XGetWMName( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 500 -XGetWMNormalHints = platform.createBaseFunction( - 'XGetWMNormalHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints),POINTER(c_long)], - doc='XGetWMNormalHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None), POINTER(c_long)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1889 -XGetWMProtocols = platform.createBaseFunction( - 'XGetWMProtocols', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(POINTER(Atom)),POINTER(c_int)], - doc='XGetWMProtocols( POINTER(Display)(None), Window(None), POINTER(POINTER(Atom))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 508 -XGetWMSizeHints = platform.createBaseFunction( - 'XGetWMSizeHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints),POINTER(c_long),Atom], - doc='XGetWMSizeHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None), POINTER(c_long)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -class XWindowAttributes(Structure): - pass -# /usr/include/X11/Xlib.h 2697 -XGetWindowAttributes = platform.createBaseFunction( - 'XGetWindowAttributes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XWindowAttributes)], - doc='XGetWindowAttributes( POINTER(Display)(None), Window(None), POINTER(XWindowAttributes)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2691 -XGetWindowProperty = platform.createBaseFunction( - 'XGetWindowProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Atom,c_long,c_long,c_int,Atom,POINTER(Atom),POINTER(c_int),POINTER(c_ulong),POINTER(c_ulong),POINTER(POINTER(c_ubyte))], - doc='XGetWindowProperty( POINTER(Display)(None), Window(None), Atom(None), c_long(None), c_long(None), c_int(None), Atom(None), POINTER(Atom)(None), POINTER(c_int)(None), POINTER(c_ulong)(None), POINTER(c_ulong)(None), POINTER(POINTER(c_ubyte))(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 514 -XGetZoomHints = platform.createBaseFunction( - 'XGetZoomHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints)], - doc='XGetZoomHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2710 -XGrabButton = platform.createBaseFunction( - 'XGrabButton', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_uint,c_uint,Window,c_int,c_uint,c_int,c_int,Window,Cursor], - doc='XGrabButton( POINTER(Display)(None), c_uint(None), c_uint(None), Window(None), c_int(None), c_uint(None), c_int(None), c_int(None), Window(None), Cursor(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2720 -XGrabKey = platform.createBaseFunction( - 'XGrabKey', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_uint,Window,c_int,c_int,c_int], - doc='XGrabKey( POINTER(Display)(None), c_int(None), c_uint(None), Window(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2729 -XGrabKeyboard = platform.createBaseFunction( - 'XGrabKeyboard', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_int,c_int,Time], - doc='XGrabKeyboard( POINTER(Display)(None), Window(None), c_int(None), c_int(None), c_int(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2741 -XGrabPointer = platform.createBaseFunction( - 'XGrabPointer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_uint,c_int,c_int,Window,Cursor,Time], - doc='XGrabPointer( POINTER(Display)(None), Window(None), c_int(None), c_uint(None), c_int(None), c_int(None), Window(None), Cursor(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2745 -XGrabServer = platform.createBaseFunction( - 'XGrabServer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XGrabServer( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class XGraphicsExposeEvent(Structure): - pass -XGraphicsExposeEvent._fields_ = [ - # /usr/include/X11/Xlib.h 716 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('drawable', Drawable), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('count', c_int), - ('major_code', c_int), - ('minor_code', c_int), -] -class XGravityEvent(Structure): - pass -XGravityEvent._fields_ = [ - # /usr/include/X11/Xlib.h 822 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('x', c_int), - ('y', c_int), -] - -# /usr/include/X11/Xlib.h 2749 -XHeightMMOfScreen = platform.createBaseFunction( - 'XHeightMMOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XHeightMMOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2753 -XHeightOfScreen = platform.createBaseFunction( - 'XHeightOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XHeightOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - -XHostAddress._fields_ = [ - # /usr/include/X11/Xlib.h 377 - ('family', c_int), - ('length', c_int), - ('address', STRING), -] - -# values for enumeration 'XICCEncodingStyle' -XStringStyle = 0 -XTextStyle = 2 -XStdICCTextStyle = 3 -XUTF8StringStyle = 4 -XICCEncodingStyle = c_int # enum -class XICCallback(Structure): - pass - -XICProc = CFUNCTYPE(c_int, POINTER(_XIC), STRING, STRING) -XICCallback._fields_ = [ - # /usr/include/X11/Xlib.h 1246 - ('client_data', XPointer), - ('callback', XICProc), -] - -XIDProc = CFUNCTYPE(None, POINTER(Display), STRING, STRING) -XIMAbsolutePosition = 10 -XIMBackwardChar = 1 -XIMBackwardWord = 3 -XIMBitmapType = 1 -class XIMCallback(Structure): - pass - -XIMProc = CFUNCTYPE(None, POINTER(_XIM), STRING, STRING) -XIMCallback._fields_ = [ - # /usr/include/X11/Xlib.h 1241 - ('client_data', XPointer), - ('callback', XIMProc), -] - -# values for enumeration 'XIMCaretDirection' -XIMForwardChar = 0 -XIMForwardWord = 2 -XIMCaretUp = 4 -XIMCaretDown = 5 -XIMNextLine = 6 -XIMPreviousLine = 7 -XIMLineStart = 8 -XIMLineEnd = 9 -XIMDontChange = 11 -XIMCaretDirection = c_int # enum - -# values for enumeration 'XIMCaretStyle' -XIMIsInvisible = 0 -XIMIsPrimary = 1 -XIMIsSecondary = 2 -XIMCaretStyle = c_int # enum -XIMFeedback = c_ulong -XIMHotKeyState = c_ulong -class _XIMHotKeyTrigger(Structure): - pass -XIMHotKeyTrigger = _XIMHotKeyTrigger -class _XIMHotKeyTriggers(Structure): - pass -XIMHotKeyTriggers = _XIMHotKeyTriggers - -# /usr/include/X11/Xlib.h 3893 -XIMOfIC = platform.createBaseFunction( - 'XIMOfIC', dll=platform.GL, resultType=XIM, - argTypes=[XIC], - doc='XIMOfIC( XIC(None) ) -> XIM', - argNames=('None',), -) - -class _XIMPreeditCaretCallbackStruct(Structure): - pass -XIMPreeditCaretCallbackStruct = _XIMPreeditCaretCallbackStruct -class _XIMPreeditDrawCallbackStruct(Structure): - pass -XIMPreeditDrawCallbackStruct = _XIMPreeditDrawCallbackStruct -XIMPreeditState = c_ulong -class _XIMPreeditStateNotifyCallbackStruct(Structure): - pass -XIMPreeditStateNotifyCallbackStruct = _XIMPreeditStateNotifyCallbackStruct -XIMResetState = c_ulong - -# values for enumeration 'XIMStatusDataType' -XIMTextType = 0 -XIMStatusDataType = c_int # enum -class _XIMStatusDrawCallbackStruct(Structure): - pass -XIMStatusDrawCallbackStruct = _XIMStatusDrawCallbackStruct -class _XIMStringConversionCallbackStruct(Structure): - pass -XIMStringConversionCallbackStruct = _XIMStringConversionCallbackStruct -XIMStringConversionFeedback = c_ulong -XIMStringConversionOperation = c_ushort -XIMStringConversionPosition = c_ushort -class _XIMStringConversionText(Structure): - pass -XIMStringConversionText = _XIMStringConversionText -XIMStringConversionType = c_ushort -XIMStyle = c_ulong -class XIMStyles(Structure): - pass - -XIMStyles._fields_ = [ - # /usr/include/X11/Xlib.h 1174 - ('count_styles', c_ushort), - ('supported_styles', POINTER(XIMStyle)), -] -class XIMValuesList(Structure): - pass -XIMValuesList._fields_ = [ - # /usr/include/X11/Xlib.h 1387 - ('count_values', c_ushort), - ('supported_values', POINTER(STRING)), -] - -XIOErrorHandler = CFUNCTYPE(c_int, POINTER(Display)) -XIconSize._fields_ = [ - # /usr/include/X11/Xutil.h 181 - ('min_width', c_int), - ('min_height', c_int), - ('max_width', c_int), - ('max_height', c_int), - ('width_inc', c_int), - ('height_inc', c_int), -] - -# /usr/include/X11/Xlib.h 1900 -XIconifyWindow = platform.createBaseFunction( - 'XIconifyWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int], - doc='XIconifyWindow( POINTER(Display)(None), Window(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2764 -XIfEvent = platform.createBaseFunction( - 'XIfEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent),CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING),XPointer], - doc='XIfEvent( POINTER(Display)(None), POINTER(XEvent)(None), CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING)(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2768 -XImageByteOrder = platform.createBaseFunction( - 'XImageByteOrder', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XImageByteOrder( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1753 -XInitExtension = platform.createBaseFunction( - 'XInitExtension', dll=platform.GL, resultType=POINTER(XExtCodes), - argTypes=[POINTER(Display),STRING], - doc='XInitExtension( POINTER(Display)(None), STRING(None) ) -> POINTER(XExtCodes)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1458 -XInitImage = platform.createBaseFunction( - 'XInitImage', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XImage)], - doc='XInitImage( POINTER(XImage)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1738 -XInitThreads = platform.createBaseFunction( - 'XInitThreads', dll=platform.GL, resultType=c_int, - argTypes=[], - doc='XInitThreads( ) -> c_int', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 1438 -XInsertModifiermapEntry = platform.createBaseFunction( - 'XInsertModifiermapEntry', dll=platform.GL, resultType=POINTER(XModifierKeymap), - argTypes=[POINTER(XModifierKeymap),KeyCode,c_int], - doc='XInsertModifiermapEntry( POINTER(XModifierKeymap)(None), KeyCode(None), c_int(None) ) -> POINTER(XModifierKeymap)', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2773 -XInstallColormap = platform.createBaseFunction( - 'XInstallColormap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap], - doc='XInstallColormap( POINTER(Display)(None), Colormap(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1543 -XInternAtom = platform.createBaseFunction( - 'XInternAtom', dll=platform.GL, resultType=Atom, - argTypes=[POINTER(Display),STRING,c_int], - doc='XInternAtom( POINTER(Display)(None), STRING(None), c_int(None) ) -> Atom', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1550 -XInternAtoms = platform.createBaseFunction( - 'XInternAtoms', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(STRING),c_int,c_int,POINTER(Atom)], - doc='XInternAtoms( POINTER(Display)(None), POINTER(STRING)(None), c_int(None), c_int(None), POINTER(Atom)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3964 -XInternalConnectionNumbers = platform.createBaseFunction( - 'XInternalConnectionNumbers', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(POINTER(c_int)),POINTER(c_int)], - doc='XInternalConnectionNumbers( POINTER(Display)(None), POINTER(POINTER(c_int))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 520 -XIntersectRegion = platform.createBaseFunction( - 'XIntersectRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,Region,Region], - doc='XIntersectRegion( Region(None), Region(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XKeyEvent(Structure): - pass -XKeyEvent._fields_ = [ - # /usr/include/X11/Xlib.h 603 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('root', Window), - ('subwindow', Window), - ('time', Time), - ('x', c_int), - ('y', c_int), - ('x_root', c_int), - ('y_root', c_int), - ('state', c_uint), - ('keycode', c_uint), - ('same_screen', c_int), -] -XKeyPressedEvent = XKeyEvent -XKeyReleasedEvent = XKeyEvent -XKeyboardControl._fields_ = [ - # /usr/include/X11/Xlib.h 485 - ('key_click_percent', c_int), - ('bell_percent', c_int), - ('bell_pitch', c_int), - ('bell_duration', c_int), - ('led', c_int), - ('led_mode', c_int), - ('key', c_int), - ('auto_repeat_mode', c_int), -] - -XKeyboardState._fields_ = [ - # /usr/include/X11/Xlib.h 496 - ('key_click_percent', c_int), - ('bell_percent', c_int), - ('bell_pitch', c_uint), - ('bell_duration', c_uint), - ('led_mask', c_ulong), - ('global_auto_repeat', c_int), - ('auto_repeats', c_char * 32), -] - -# /usr/include/X11/Xlib.h 1697 -XKeycodeToKeysym = platform.createBaseFunction( - 'XKeycodeToKeysym', dll=platform.GL, resultType=KeySym, - argTypes=[POINTER(Display),KeyCode,c_int], - doc='XKeycodeToKeysym( POINTER(Display)(None), KeyCode(None), c_int(None) ) -> KeySym', - argNames=('None', 'None', 'None'), -) - -class XKeymapEvent(Structure): - pass -XKeymapEvent._fields_ = [ - # /usr/include/X11/Xlib.h 692 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('key_vector', c_char * 32), -] - -# /usr/include/X11/Xlib.h 2778 -XKeysymToKeycode = platform.createBaseFunction( - 'XKeysymToKeycode', dll=platform.GL, resultType=KeyCode, - argTypes=[POINTER(Display),KeySym], - doc='XKeysymToKeycode( POINTER(Display)(None), KeySym(None) ) -> KeyCode', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1523 -XKeysymToString = platform.createBaseFunction( - 'XKeysymToString', dll=platform.GL, resultType=STRING, - argTypes=[KeySym], - doc='XKeysymToString( KeySym(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2783 -XKillClient = platform.createBaseFunction( - 'XKillClient', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID], - doc='XKillClient( POINTER(Display)(None), XID(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1813 -XLastKnownRequestProcessed = platform.createBaseFunction( - 'XLastKnownRequestProcessed', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Display)], - doc='XLastKnownRequestProcessed( POINTER(Display)(None) ) -> c_ulong', - argNames=('None',), -) - -XLeaveWindowEvent = XCrossingEvent - -# /usr/include/X11/Xlib.h 1872 -XListDepths = platform.createBaseFunction( - 'XListDepths', dll=platform.GL, resultType=POINTER(c_int), - argTypes=[POINTER(Display),c_int,POINTER(c_int)], - doc='XListDepths( POINTER(Display)(None), c_int(None), POINTER(c_int)(None) ) -> POINTER(c_int)', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1678 -XListExtensions = platform.createBaseFunction( - 'XListExtensions', dll=platform.GL, resultType=POINTER(STRING), - argTypes=[POINTER(Display),POINTER(c_int)], - doc='XListExtensions( POINTER(Display)(None), POINTER(c_int)(None) ) -> POINTER(STRING)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1663 -XListFonts = platform.createBaseFunction( - 'XListFonts', dll=platform.GL, resultType=POINTER(STRING), - argTypes=[POINTER(Display),STRING,c_int,POINTER(c_int)], - doc='XListFonts( POINTER(Display)(None), STRING(None), c_int(None), POINTER(c_int)(None) ) -> POINTER(STRING)', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1670 -XListFontsWithInfo = platform.createBaseFunction( - 'XListFontsWithInfo', dll=platform.GL, resultType=POINTER(STRING), - argTypes=[POINTER(Display),STRING,c_int,POINTER(c_int),POINTER(POINTER(XFontStruct))], - doc='XListFontsWithInfo( POINTER(Display)(None), STRING(None), c_int(None), POINTER(c_int)(None), POINTER(POINTER(XFontStruct))(None) ) -> POINTER(STRING)', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1688 -XListHosts = platform.createBaseFunction( - 'XListHosts', dll=platform.GL, resultType=POINTER(XHostAddress), - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int)], - doc='XListHosts( POINTER(Display)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> POINTER(XHostAddress)', - argNames=('None', 'None', 'None'), -) - - - -# /usr/include/X11/Xlib.h 1657 -XListInstalledColormaps = platform.createBaseFunction( - 'XListInstalledColormaps', dll=platform.GL, resultType=POINTER(Colormap), - argTypes=[POINTER(Display),Window,POINTER(c_int)], - doc='XListInstalledColormaps( POINTER(Display)(None), Window(None), POINTER(c_int)(None) ) -> POINTER(Colormap)', - argNames=('None', 'None', 'None'), -) - -class XPixmapFormatValues(Structure): - pass - -# /usr/include/X11/Xlib.h 1867 -XListPixmapFormats = platform.createBaseFunction( - 'XListPixmapFormats', dll=platform.GL, resultType=POINTER(XPixmapFormatValues), - argTypes=[POINTER(Display),POINTER(c_int)], - doc='XListPixmapFormats( POINTER(Display)(None), POINTER(c_int)(None) ) -> POINTER(XPixmapFormatValues)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1683 -XListProperties = platform.createBaseFunction( - 'XListProperties', dll=platform.GL, resultType=POINTER(Atom), - argTypes=[POINTER(Display),Window,POINTER(c_int)], - doc='XListProperties( POINTER(Display)(None), Window(None), POINTER(c_int)(None) ) -> POINTER(Atom)', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1586 -XLoadFont = platform.createBaseFunction( - 'XLoadFont', dll=platform.GL, resultType=Font, - argTypes=[POINTER(Display),STRING], - doc='XLoadFont( POINTER(Display)(None), STRING(None) ) -> Font', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1400 -XLoadQueryFont = platform.createBaseFunction( - 'XLoadQueryFont', dll=platform.GL, resultType=POINTER(XFontStruct), - argTypes=[POINTER(Display),STRING], - doc='XLoadQueryFont( POINTER(Display)(None), STRING(None) ) -> POINTER(XFontStruct)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3636 -XLocaleOfFontSet = platform.createBaseFunction( - 'XLocaleOfFontSet', dll=platform.GL, resultType=STRING, - argTypes=[XFontSet], - doc='XLocaleOfFontSet( XFontSet(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3853 -XLocaleOfIM = platform.createBaseFunction( - 'XLocaleOfIM', dll=platform.GL, resultType=STRING, - argTypes=[XIM], - doc='XLocaleOfIM( XIM(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3586 -XLocaleOfOM = platform.createBaseFunction( - 'XLocaleOfOM', dll=platform.GL, resultType=STRING, - argTypes=[XOM], - doc='XLocaleOfOM( XOM(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1742 -XLockDisplay = platform.createBaseFunction( - 'XLockDisplay', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display)], - doc='XLockDisplay( POINTER(Display)(None) ) -> None', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2791 -XLookupColor = platform.createBaseFunction( - 'XLookupColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,STRING,POINTER(XColor),POINTER(XColor)], - doc='XLookupColor( POINTER(Display)(None), Colormap(None), STRING(None), POINTER(XColor)(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1701 -XLookupKeysym = platform.createBaseFunction( - 'XLookupKeysym', dll=platform.GL, resultType=KeySym, - argTypes=[POINTER(XKeyEvent),c_int], - doc='XLookupKeysym( POINTER(XKeyEvent)(None), c_int(None) ) -> KeySym', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 534 -XLookupString = platform.createBaseFunction( - 'XLookupString', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XKeyEvent),STRING,c_int,POINTER(KeySym),POINTER(XComposeStatus)], - doc='XLookupString( POINTER(XKeyEvent)(None), STRING(None), c_int(None), POINTER(KeySym)(None), POINTER(XComposeStatus)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2796 -XLowerWindow = platform.createBaseFunction( - 'XLowerWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XLowerWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XMapEvent(Structure): - pass -XMapEvent._fields_ = [ - # /usr/include/X11/Xlib.h 777 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('override_redirect', c_int), -] - -# /usr/include/X11/Xlib.h 2801 -XMapRaised = platform.createBaseFunction( - 'XMapRaised', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XMapRaised( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XMapRequestEvent(Structure): - pass -XMapRequestEvent._fields_ = [ - # /usr/include/X11/Xlib.h 786 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('parent', Window), - ('window', Window), -] - -# /usr/include/X11/Xlib.h 2806 -XMapSubwindows = platform.createBaseFunction( - 'XMapSubwindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XMapSubwindows( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2811 -XMapWindow = platform.createBaseFunction( - 'XMapWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XMapWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - -class XMappingEvent(Structure): - pass -XMappingEvent._fields_ = [ - # /usr/include/X11/Xlib.h 954 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('request', c_int), - ('first_keycode', c_int), - ('count', c_int), -] - -# /usr/include/X11/Xlib.h 2817 -XMaskEvent = platform.createBaseFunction( - 'XMaskEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_long,POINTER(XEvent)], - doc='XMaskEvent( POINTER(Display)(None), c_long(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 542 -XMatchVisualInfo = platform.createBaseFunction( - 'XMatchVisualInfo', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_int,c_int,POINTER(XVisualInfo)], - doc='XMatchVisualInfo( POINTER(Display)(None), c_int(None), c_int(None), c_int(None), POINTER(XVisualInfo)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2821 -XMaxCmapsOfScreen = platform.createBaseFunction( - 'XMaxCmapsOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XMaxCmapsOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1717 -XMaxRequestSize = platform.createBaseFunction( - 'XMaxRequestSize', dll=platform.GL, resultType=c_long, - argTypes=[POINTER(Display)], - doc='XMaxRequestSize( POINTER(Display)(None) ) -> c_long', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2825 -XMinCmapsOfScreen = platform.createBaseFunction( - 'XMinCmapsOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XMinCmapsOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -XModifierKeymap._fields_ = [ - # /usr/include/X11/Xlib.h 510 - ('max_keypermod', c_int), - ('modifiermap', POINTER(KeyCode)), -] -class XMotionEvent(Structure): - pass -XMotionEvent._fields_ = [ - # /usr/include/X11/Xlib.h 639 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('root', Window), - ('subwindow', Window), - ('time', Time), - ('x', c_int), - ('y', c_int), - ('x_root', c_int), - ('y_root', c_int), - ('state', c_uint), - ('is_hint', c_char), - ('same_screen', c_int), -] - -# /usr/include/X11/Xlib.h 2834 -XMoveResizeWindow = platform.createBaseFunction( - 'XMoveResizeWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_int,c_uint,c_uint], - doc='XMoveResizeWindow( POINTER(Display)(None), Window(None), c_int(None), c_int(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2841 -XMoveWindow = platform.createBaseFunction( - 'XMoveWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_int], - doc='XMoveWindow( POINTER(Display)(None), Window(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1442 -XNewModifiermap = platform.createBaseFunction( - 'XNewModifiermap', dll=platform.GL, resultType=POINTER(XModifierKeymap), - argTypes=[c_int], - doc='XNewModifiermap( c_int(None) ) -> POINTER(XModifierKeymap)', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2846 -XNextEvent = platform.createBaseFunction( - 'XNextEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent)], - doc='XNextEvent( POINTER(Display)(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1810 -XNextRequest = platform.createBaseFunction( - 'XNextRequest', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Display)], - doc='XNextRequest( POINTER(Display)(None) ) -> c_ulong', - argNames=('None',), -) - -class XNoExposeEvent(Structure): - pass -XNoExposeEvent._fields_ = [ - # /usr/include/X11/Xlib.h 726 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('drawable', Drawable), - ('major_code', c_int), - ('minor_code', c_int), -] - -# /usr/include/X11/Xlib.h 2850 -XNoOp = platform.createBaseFunction( - 'XNoOp', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XNoOp( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class XOMCharSetList(Structure): - pass -XOMCharSetList._fields_ = [ - # /usr/include/X11/Xlib.h 1127 - ('charset_count', c_int), - ('charset_list', POINTER(STRING)), -] -class XOMFontInfo(Structure): - pass -XOMFontInfo._fields_ = [ - # /usr/include/X11/Xlib.h 1146 - ('num_font', c_int), - ('font_struct_list', POINTER(POINTER(XFontStruct))), - ('font_name_list', POINTER(STRING)), -] - -# /usr/include/X11/Xlib.h 3599 -XOMOfOC = platform.createBaseFunction( - 'XOMOfOC', dll=platform.GL, resultType=XOM, - argTypes=[XOC], - doc='XOMOfOC( XOC(None) ) -> XOM', - argNames=('None',), -) - -class XOMOrientation(Structure): - pass - -# values for enumeration 'XOrientation' -XOMOrientation_LTR_TTB = 0 -XOMOrientation_RTL_TTB = 1 -XOMOrientation_TTB_LTR = 2 -XOMOrientation_TTB_RTL = 3 -XOMOrientation_Context = 4 -XOrientation = c_int # enum -XOMOrientation._fields_ = [ - # /usr/include/X11/Xlib.h 1140 - ('num_orientation', c_int), - ('orientation', POINTER(XOrientation)), -] - -# /usr/include/X11/Xutil.h 548 -XOffsetRegion = platform.createBaseFunction( - 'XOffsetRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,c_int,c_int], - doc='XOffsetRegion( Region(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1488 -XOpenDisplay = platform.createBaseFunction( - 'XOpenDisplay', dll=platform.GL, resultType=POINTER(Display), - argTypes=[STRING], - doc='XOpenDisplay( STRING(None) ) -> POINTER(Display)', - argNames=('None',), -) - -class _XrmHashBucketRec(Structure): - pass -# /usr/include/X11/Xlib.h 3833 -XOpenIM = platform.createBaseFunction( - 'XOpenIM', dll=platform.GL, resultType=XIM, - argTypes=[POINTER(Display),POINTER(_XrmHashBucketRec),STRING,STRING], - doc='XOpenIM( POINTER(Display)(None), POINTER(_XrmHashBucketRec)(None), STRING(None), STRING(None) ) -> XIM', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3564 -XOpenOM = platform.createBaseFunction( - 'XOpenOM', dll=platform.GL, resultType=XOM, - argTypes=[POINTER(Display),POINTER(_XrmHashBucketRec),STRING,STRING], - doc='XOpenOM( POINTER(Display)(None), POINTER(_XrmHashBucketRec)(None), STRING(None), STRING(None) ) -> XOM', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2857 -XParseColor = platform.createBaseFunction( - 'XParseColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,STRING,POINTER(XColor)], - doc='XParseColor( POINTER(Display)(None), Colormap(None), STRING(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2865 -XParseGeometry = platform.createBaseFunction( - 'XParseGeometry', dll=platform.GL, resultType=c_int, - argTypes=[STRING,POINTER(c_int),POINTER(c_int),POINTER(c_uint),POINTER(c_uint)], - doc='XParseGeometry( STRING(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2870 -XPeekEvent = platform.createBaseFunction( - 'XPeekEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent)], - doc='XPeekEvent( POINTER(Display)(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2881 -XPeekIfEvent = platform.createBaseFunction( - 'XPeekIfEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent),CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING),XPointer], - doc='XPeekIfEvent( POINTER(Display)(None), POINTER(XEvent)(None), CFUNCTYPE(c_int, POINTER(Display), POINTER(XEvent), STRING)(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2885 -XPending = platform.createBaseFunction( - 'XPending', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XPending( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -XPixmapFormatValues._fields_ = [ - # /usr/include/X11/Xlib.h 207 - ('depth', c_int), - ('bits_per_pixel', c_int), - ('scanline_pad', c_int), -] - -# /usr/include/X11/Xlib.h 2889 -XPlanesOfScreen = platform.createBaseFunction( - 'XPlanesOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XPlanesOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - -XPoint._fields_ = [ - # /usr/include/X11/Xlib.h 460 - ('x', c_short), - ('y', c_short), -] - -# /usr/include/X11/Xutil.h 554 -XPointInRegion = platform.createBaseFunction( - 'XPointInRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,c_int,c_int], - doc='XPointInRegion( Region(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -XPointerMovedEvent = XMotionEvent - -# /usr/include/X11/Xutil.h 560 -XPolygonRegion = platform.createBaseFunction( - 'XPolygonRegion', dll=platform.GL, resultType=Region, - argTypes=[POINTER(XPoint),c_int,c_int], - doc='XPolygonRegion( POINTER(XPoint)(None), c_int(None), c_int(None) ) -> Region', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3969 -XProcessInternalConnection = platform.createBaseFunction( - 'XProcessInternalConnection', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),c_int], - doc='XProcessInternalConnection( POINTER(Display)(None), c_int(None) ) -> None', - argNames=('None', 'None'), -) - -class XPropertyEvent(Structure): - pass -XPropertyEvent._fields_ = [ - # /usr/include/X11/Xlib.h 877 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('atom', Atom), - ('time', Time), - ('state', c_int), -] - -# /usr/include/X11/Xlib.h 2893 -XProtocolRevision = platform.createBaseFunction( - 'XProtocolRevision', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XProtocolRevision( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2897 -XProtocolVersion = platform.createBaseFunction( - 'XProtocolVersion', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XProtocolVersion( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2903 -XPutBackEvent = platform.createBaseFunction( - 'XPutBackEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XEvent)], - doc='XPutBackEvent( POINTER(Display)(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2916 -XPutImage = platform.createBaseFunction( - 'XPutImage', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,GC,POINTER(XImage),c_int,c_int,c_int,c_int,c_uint,c_uint], - doc='XPutImage( POINTER(Display)(None), Drawable(None), GC(None), POINTER(XImage)(None), c_int(None), c_int(None), c_int(None), c_int(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -#def XPutPixel(ximage,x,y,pixel): return ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel))) # macro - -# /usr/include/X11/Xlib.h 2920 -XQLength = platform.createBaseFunction( - 'XQLength', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XQLength( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 2929 -XQueryBestCursor = platform.createBaseFunction( - 'XQueryBestCursor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,c_uint,c_uint,POINTER(c_uint),POINTER(c_uint)], - doc='XQueryBestCursor( POINTER(Display)(None), Drawable(None), c_uint(None), c_uint(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2939 -XQueryBestSize = platform.createBaseFunction( - 'XQueryBestSize', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,Drawable,c_uint,c_uint,POINTER(c_uint),POINTER(c_uint)], - doc='XQueryBestSize( POINTER(Display)(None), c_int(None), Drawable(None), c_uint(None), c_uint(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2948 -XQueryBestStipple = platform.createBaseFunction( - 'XQueryBestStipple', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,c_uint,c_uint,POINTER(c_uint),POINTER(c_uint)], - doc='XQueryBestStipple( POINTER(Display)(None), Drawable(None), c_uint(None), c_uint(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2957 -XQueryBestTile = platform.createBaseFunction( - 'XQueryBestTile', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,c_uint,c_uint,POINTER(c_uint),POINTER(c_uint)], - doc='XQueryBestTile( POINTER(Display)(None), Drawable(None), c_uint(None), c_uint(None), POINTER(c_uint)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2963 -XQueryColor = platform.createBaseFunction( - 'XQueryColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(XColor)], - doc='XQueryColor( POINTER(Display)(None), Colormap(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2970 -XQueryColors = platform.createBaseFunction( - 'XQueryColors', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(XColor),c_int], - doc='XQueryColors( POINTER(Display)(None), Colormap(None), POINTER(XColor)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2978 -XQueryExtension = platform.createBaseFunction( - 'XQueryExtension', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING,POINTER(c_int),POINTER(c_int),POINTER(c_int)], - doc='XQueryExtension( POINTER(Display)(None), STRING(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1405 -XQueryFont = platform.createBaseFunction( - 'XQueryFont', dll=platform.GL, resultType=POINTER(XFontStruct), - argTypes=[POINTER(Display),XID], - doc='XQueryFont( POINTER(Display)(None), XID(None) ) -> POINTER(XFontStruct)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2983 -XQueryKeymap = platform.createBaseFunction( - 'XQueryKeymap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING], - doc='XQueryKeymap( POINTER(Display)(None), STRING(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 2995 -XQueryPointer = platform.createBaseFunction( - 'XQueryPointer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Window),POINTER(Window),POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_uint)], - doc='XQueryPointer( POINTER(Display)(None), Window(None), POINTER(Window)(None), POINTER(Window)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3006 -XQueryTextExtents = platform.createBaseFunction( - 'XQueryTextExtents', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID,STRING,c_int,POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(XCharStruct)], - doc='XQueryTextExtents( POINTER(Display)(None), XID(None), STRING(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(XCharStruct)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3017 -XQueryTextExtents16 = platform.createBaseFunction( - 'XQueryTextExtents16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID,POINTER(XChar2b),c_int,POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(XCharStruct)], - doc='XQueryTextExtents16( POINTER(Display)(None), XID(None), POINTER(XChar2b)(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(XCharStruct)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3026 -XQueryTree = platform.createBaseFunction( - 'XQueryTree', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Window),POINTER(Window),POINTER(POINTER(Window)),POINTER(c_uint)], - doc='XQueryTree( POINTER(Display)(None), Window(None), POINTER(Window)(None), POINTER(Window)(None), POINTER(POINTER(Window))(None), POINTER(c_uint)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3031 -XRaiseWindow = platform.createBaseFunction( - 'XRaiseWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XRaiseWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3042 -XReadBitmapFile = platform.createBaseFunction( - 'XReadBitmapFile', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Drawable,STRING,POINTER(c_uint),POINTER(c_uint),POINTER(Pixmap),POINTER(c_int),POINTER(c_int)], - doc='XReadBitmapFile( POINTER(Display)(None), Drawable(None), STRING(None), POINTER(c_uint)(None), POINTER(c_uint)(None), POINTER(Pixmap)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3051 -XReadBitmapFileData = platform.createBaseFunction( - 'XReadBitmapFileData', dll=platform.GL, resultType=c_int, - argTypes=[STRING,POINTER(c_uint),POINTER(c_uint),POINTER(POINTER(c_ubyte)),POINTER(c_int),POINTER(c_int)], - doc='XReadBitmapFileData( STRING(None), POINTER(c_uint)(None), POINTER(c_uint)(None), POINTER(POINTER(c_ubyte))(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3060 -XRebindKeysym = platform.createBaseFunction( - 'XRebindKeysym', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),KeySym,POINTER(KeySym),c_int,POINTER(c_ubyte),c_int], - doc='XRebindKeysym( POINTER(Display)(None), KeySym(None), POINTER(KeySym)(None), c_int(None), POINTER(c_ubyte)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3067 -XRecolorCursor = platform.createBaseFunction( - 'XRecolorCursor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Cursor,POINTER(XColor),POINTER(XColor)], - doc='XRecolorCursor( POINTER(Display)(None), Cursor(None), POINTER(XColor)(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1882 -XReconfigureWMWindow = platform.createBaseFunction( - 'XReconfigureWMWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_uint,POINTER(XWindowChanges)], - doc='XReconfigureWMWindow( POINTER(Display)(None), Window(None), c_int(None), c_uint(None), POINTER(XWindowChanges)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 568 -XRectInRegion = platform.createBaseFunction( - 'XRectInRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,c_int,c_int,c_uint,c_uint], - doc='XRectInRegion( Region(None), c_int(None), c_int(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3071 -XRefreshKeyboardMapping = platform.createBaseFunction( - 'XRefreshKeyboardMapping', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XMappingEvent)], - doc='XRefreshKeyboardMapping( POINTER(XMappingEvent)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3940 -XRegisterIMInstantiateCallback = platform.createBaseFunction( - 'XRegisterIMInstantiateCallback', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(_XrmHashBucketRec),STRING,STRING,XIDProc,XPointer], - doc='XRegisterIMInstantiateCallback( POINTER(Display)(None), POINTER(_XrmHashBucketRec)(None), STRING(None), STRING(None), XIDProc(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3981 -XRemoveConnectionWatch = platform.createBaseFunction( - 'XRemoveConnectionWatch', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),XConnectionWatchProc,XPointer], - doc='XRemoveConnectionWatch( POINTER(Display)(None), XConnectionWatchProc(None), XPointer(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3076 -XRemoveFromSaveSet = platform.createBaseFunction( - 'XRemoveFromSaveSet', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XRemoveFromSaveSet( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3081 -XRemoveHost = platform.createBaseFunction( - 'XRemoveHost', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XHostAddress)], - doc='XRemoveHost( POINTER(Display)(None), POINTER(XHostAddress)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3087 -XRemoveHosts = platform.createBaseFunction( - 'XRemoveHosts', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XHostAddress),c_int], - doc='XRemoveHosts( POINTER(Display)(None), POINTER(XHostAddress)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XReparentEvent(Structure): - pass -XReparentEvent._fields_ = [ - # /usr/include/X11/Xlib.h 798 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('parent', Window), - ('x', c_int), - ('y', c_int), - ('override_redirect', c_int), -] - -# /usr/include/X11/Xlib.h 3095 -XReparentWindow = platform.createBaseFunction( - 'XReparentWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Window,c_int,c_int], - doc='XReparentWindow( POINTER(Display)(None), Window(None), Window(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3099 -XResetScreenSaver = platform.createBaseFunction( - 'XResetScreenSaver', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XResetScreenSaver( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class XResizeRequestEvent(Structure): - pass -XResizeRequestEvent._fields_ = [ - # /usr/include/X11/Xlib.h 831 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('width', c_int), - ('height', c_int), -] - -# /usr/include/X11/Xlib.h 3106 -XResizeWindow = platform.createBaseFunction( - 'XResizeWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_uint,c_uint], - doc='XResizeWindow( POINTER(Display)(None), Window(None), c_uint(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1723 -XResourceManagerString = platform.createBaseFunction( - 'XResourceManagerString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display)], - doc='XResourceManagerString( POINTER(Display)(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3112 -XRestackWindows = platform.createBaseFunction( - 'XRestackWindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(Window),c_int], - doc='XRestackWindows( POINTER(Display)(None), POINTER(Window)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1770 -XRootWindow = platform.createBaseFunction( - 'XRootWindow', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Display),c_int], - doc='XRootWindow( POINTER(Display)(None), c_int(None) ) -> Window', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1776 -XRootWindowOfScreen = platform.createBaseFunction( - 'XRootWindowOfScreen', dll=platform.GL, resultType=Window, - argTypes=[POINTER(Screen)], - doc='XRootWindowOfScreen( POINTER(Screen)(None) ) -> Window', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3117 -XRotateBuffers = platform.createBaseFunction( - 'XRotateBuffers', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XRotateBuffers( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3125 -XRotateWindowProperties = platform.createBaseFunction( - 'XRotateWindowProperties', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Atom),c_int,c_int], - doc='XRotateWindowProperties( POINTER(Display)(None), Window(None), POINTER(Atom)(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 575 -XSaveContext = platform.createBaseFunction( - 'XSaveContext', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),XID,XContext,STRING], - doc='XSaveContext( POINTER(Display)(None), XID(None), XContext(None), STRING(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3129 -XScreenCount = platform.createBaseFunction( - 'XScreenCount', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XScreenCount( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1843 -XScreenNumberOfScreen = platform.createBaseFunction( - 'XScreenNumberOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XScreenNumberOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1833 -XScreenOfDisplay = platform.createBaseFunction( - 'XScreenOfDisplay', dll=platform.GL, resultType=POINTER(Screen), - argTypes=[POINTER(Display),c_int], - doc='XScreenOfDisplay( POINTER(Display)(None), c_int(None) ) -> POINTER(Screen)', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1726 -XScreenResourceString = platform.createBaseFunction( - 'XScreenResourceString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Screen)], - doc='XScreenResourceString( POINTER(Screen)(None) ) -> STRING', - argNames=('None',), -) - -XSegment._fields_ = [ - # /usr/include/X11/Xlib.h 456 - ('x1', c_short), - ('y1', c_short), - ('x2', c_short), - ('y2', c_short), -] - -# /usr/include/X11/Xlib.h 3135 -XSelectInput = platform.createBaseFunction( - 'XSelectInput', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_long], - doc='XSelectInput( POINTER(Display)(None), Window(None), c_long(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -class XSelectionClearEvent(Structure): - pass -XSelectionClearEvent._fields_ = [ - # /usr/include/X11/Xlib.h 887 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('selection', Atom), - ('time', Time), -] -class XSelectionEvent(Structure): - pass -XSelectionEvent._fields_ = [ - # /usr/include/X11/Xlib.h 912 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('requestor', Window), - ('selection', Atom), - ('target', Atom), - ('property', Atom), - ('time', Time), -] -class XSelectionRequestEvent(Structure): - pass -XSelectionRequestEvent._fields_ = [ - # /usr/include/X11/Xlib.h 900 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('owner', Window), - ('requestor', Window), - ('selection', Atom), - ('target', Atom), - ('property', Atom), - ('time', Time), -] - -# /usr/include/X11/Xlib.h 3143 -XSendEvent = platform.createBaseFunction( - 'XSendEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,c_long,POINTER(XEvent)], - doc='XSendEvent( POINTER(Display)(None), Window(None), c_int(None), c_long(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -class XServerInterpretedAddress(Structure): - pass -XServerInterpretedAddress._fields_ = [ - # /usr/include/X11/Xlib.h 387 - ('typelength', c_int), - ('valuelength', c_int), - ('type', STRING), - ('value', STRING), -] - -# /usr/include/X11/Xlib.h 1816 -XServerVendor = platform.createBaseFunction( - 'XServerVendor', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display)], - doc='XServerVendor( POINTER(Display)(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3148 -XSetAccessControl = platform.createBaseFunction( - 'XSetAccessControl', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XSetAccessControl( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1538 -XSetAfterFunction = platform.createBaseFunction( - 'XSetAfterFunction', dll=platform.GL, resultType=CFUNCTYPE(c_int, POINTER(Display)), - argTypes=[POINTER(Display),CFUNCTYPE(c_int, POINTER(Display))], - doc='XSetAfterFunction( POINTER(Display)(None), CFUNCTYPE(c_int, POINTER(Display))(None) ) -> CFUNCTYPE(c_int, POINTER(Display))', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3154 -XSetArcMode = platform.createBaseFunction( - 'XSetArcMode', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetArcMode( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3988 -XSetAuthorization = platform.createBaseFunction( - 'XSetAuthorization', dll=platform.GL, resultType=None, - argTypes=[STRING,c_int,STRING,c_int], - doc='XSetAuthorization( STRING(None), c_int(None), STRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3160 -XSetBackground = platform.createBaseFunction( - 'XSetBackground', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong], - doc='XSetBackground( POINTER(Display)(None), GC(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 581 -XSetClassHint = platform.createBaseFunction( - 'XSetClassHint', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XClassHint)], - doc='XSetClassHint( POINTER(Display)(None), Window(None), POINTER(XClassHint)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3166 -XSetClipMask = platform.createBaseFunction( - 'XSetClipMask', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,Pixmap], - doc='XSetClipMask( POINTER(Display)(None), GC(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3173 -XSetClipOrigin = platform.createBaseFunction( - 'XSetClipOrigin', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int,c_int], - doc='XSetClipOrigin( POINTER(Display)(None), GC(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3183 -XSetClipRectangles = platform.createBaseFunction( - 'XSetClipRectangles', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int,c_int,POINTER(XRectangle),c_int,c_int], - doc='XSetClipRectangles( POINTER(Display)(None), GC(None), c_int(None), c_int(None), POINTER(XRectangle)(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3188 -XSetCloseDownMode = platform.createBaseFunction( - 'XSetCloseDownMode', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XSetCloseDownMode( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3195 -XSetCommand = platform.createBaseFunction( - 'XSetCommand', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(STRING),c_int], - doc='XSetCommand( POINTER(Display)(None), Window(None), POINTER(STRING)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3203 -XSetDashes = platform.createBaseFunction( - 'XSetDashes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int,STRING,c_int], - doc='XSetDashes( POINTER(Display)(None), GC(None), c_int(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1852 -XSetErrorHandler = platform.createBaseFunction( - 'XSetErrorHandler', dll=platform.GL, resultType=XErrorHandler, - argTypes=[XErrorHandler], - doc='XSetErrorHandler( XErrorHandler(None) ) -> XErrorHandler', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3209 -XSetFillRule = platform.createBaseFunction( - 'XSetFillRule', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetFillRule( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3215 -XSetFillStyle = platform.createBaseFunction( - 'XSetFillStyle', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetFillStyle( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3221 -XSetFont = platform.createBaseFunction( - 'XSetFont', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,Font], - doc='XSetFont( POINTER(Display)(None), GC(None), Font(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3227 -XSetFontPath = platform.createBaseFunction( - 'XSetFontPath', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(STRING),c_int], - doc='XSetFontPath( POINTER(Display)(None), POINTER(STRING)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3233 -XSetForeground = platform.createBaseFunction( - 'XSetForeground', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong], - doc='XSetForeground( POINTER(Display)(None), GC(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3239 -XSetFunction = platform.createBaseFunction( - 'XSetFunction', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetFunction( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3245 -XSetGraphicsExposures = platform.createBaseFunction( - 'XSetGraphicsExposures', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetGraphicsExposures( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3865 -XSetICFocus = platform.createBaseFunction( - 'XSetICFocus', dll=platform.GL, resultType=None, - argTypes=[XIC], - doc='XSetICFocus( XIC(None) ) -> None', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3885 -XSetICValues = platform.createBaseFunction( - 'XSetICValues', dll=platform.GL, resultType=STRING, - argTypes=[XIC], - doc='XSetICValues( XIC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3845 -XSetIMValues = platform.createBaseFunction( - 'XSetIMValues', dll=platform.GL, resultType=STRING, - argTypes=[XIM], - doc='XSetIMValues( XIM(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 1861 -XSetIOErrorHandler = platform.createBaseFunction( - 'XSetIOErrorHandler', dll=platform.GL, resultType=XIOErrorHandler, - argTypes=[XIOErrorHandler], - doc='XSetIOErrorHandler( XIOErrorHandler(None) ) -> XIOErrorHandler', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3251 -XSetIconName = platform.createBaseFunction( - 'XSetIconName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,STRING], - doc='XSetIconName( POINTER(Display)(None), Window(None), STRING(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 588 -XSetIconSizes = platform.createBaseFunction( - 'XSetIconSizes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XIconSize),c_int], - doc='XSetIconSizes( POINTER(Display)(None), Window(None), POINTER(XIconSize)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3258 -XSetInputFocus = platform.createBaseFunction( - 'XSetInputFocus', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int,Time], - doc='XSetInputFocus( POINTER(Display)(None), Window(None), c_int(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3267 -XSetLineAttributes = platform.createBaseFunction( - 'XSetLineAttributes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_uint,c_int,c_int,c_int], - doc='XSetLineAttributes( POINTER(Display)(None), GC(None), c_uint(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3557 -XSetLocaleModifiers = platform.createBaseFunction( - 'XSetLocaleModifiers', dll=platform.GL, resultType=STRING, - argTypes=[STRING], - doc='XSetLocaleModifiers( STRING(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3272 -XSetModifierMapping = platform.createBaseFunction( - 'XSetModifierMapping', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XModifierKeymap)], - doc='XSetModifierMapping( POINTER(Display)(None), POINTER(XModifierKeymap)(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 594 -XSetNormalHints = platform.createBaseFunction( - 'XSetNormalHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints)], - doc='XSetNormalHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3604 -XSetOCValues = platform.createBaseFunction( - 'XSetOCValues', dll=platform.GL, resultType=STRING, - argTypes=[XOC], - doc='XSetOCValues( XOC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3573 -XSetOMValues = platform.createBaseFunction( - 'XSetOMValues', dll=platform.GL, resultType=STRING, - argTypes=[XOM], - doc='XSetOMValues( XOM(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3278 -XSetPlaneMask = platform.createBaseFunction( - 'XSetPlaneMask', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong], - doc='XSetPlaneMask( POINTER(Display)(None), GC(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3284 -XSetPointerMapping = platform.createBaseFunction( - 'XSetPointerMapping', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_ubyte),c_int], - doc='XSetPointerMapping( POINTER(Display)(None), POINTER(c_ubyte)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 602 -XSetRGBColormaps = platform.createBaseFunction( - 'XSetRGBColormaps', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XStandardColormap),c_int,Atom], - doc='XSetRGBColormaps( POINTER(Display)(None), Window(None), POINTER(XStandardColormap)(None), c_int(None), Atom(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 706 -XSetRegion = platform.createBaseFunction( - 'XSetRegion', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,Region], - doc='XSetRegion( POINTER(Display)(None), GC(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3292 -XSetScreenSaver = platform.createBaseFunction( - 'XSetScreenSaver', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_int,c_int,c_int], - doc='XSetScreenSaver( POINTER(Display)(None), c_int(None), c_int(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3299 -XSetSelectionOwner = platform.createBaseFunction( - 'XSetSelectionOwner', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Atom,Window,Time], - doc='XSetSelectionOwner( POINTER(Display)(None), Atom(None), Window(None), Time(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 609 -XSetSizeHints = platform.createBaseFunction( - 'XSetSizeHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints),Atom], - doc='XSetSizeHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None), Atom(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 713 -XSetStandardColormap = platform.createBaseFunction( - 'XSetStandardColormap', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XStandardColormap),Atom], - doc='XSetStandardColormap( POINTER(Display)(None), Window(None), POINTER(XStandardColormap)(None), Atom(None) ) -> None', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 620 -XSetStandardProperties = platform.createBaseFunction( - 'XSetStandardProperties', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,STRING,STRING,Pixmap,POINTER(STRING),c_int,POINTER(XSizeHints)], - doc='XSetStandardProperties( POINTER(Display)(None), Window(None), STRING(None), STRING(None), Pixmap(None), POINTER(STRING)(None), c_int(None), POINTER(XSizeHints)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3308 -XSetState = platform.createBaseFunction( - 'XSetState', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_ulong,c_ulong,c_int,c_ulong], - doc='XSetState( POINTER(Display)(None), GC(None), c_ulong(None), c_ulong(None), c_int(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3314 -XSetStipple = platform.createBaseFunction( - 'XSetStipple', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,Pixmap], - doc='XSetStipple( POINTER(Display)(None), GC(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3320 -XSetSubwindowMode = platform.createBaseFunction( - 'XSetSubwindowMode', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int], - doc='XSetSubwindowMode( POINTER(Display)(None), GC(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3327 -XSetTSOrigin = platform.createBaseFunction( - 'XSetTSOrigin', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,c_int,c_int], - doc='XSetTSOrigin( POINTER(Display)(None), GC(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 627 -XSetTextProperty = platform.createBaseFunction( - 'XSetTextProperty', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty),Atom], - doc='XSetTextProperty( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None), Atom(None) ) -> None', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3333 -XSetTile = platform.createBaseFunction( - 'XSetTile', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GC,Pixmap], - doc='XSetTile( POINTER(Display)(None), GC(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1931 -XSetTransientForHint = platform.createBaseFunction( - 'XSetTransientForHint', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Window], - doc='XSetTransientForHint( POINTER(Display)(None), Window(None), Window(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 633 -XSetWMClientMachine = platform.createBaseFunction( - 'XSetWMClientMachine', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XSetWMClientMachine( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1923 -XSetWMColormapWindows = platform.createBaseFunction( - 'XSetWMColormapWindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Window),c_int], - doc='XSetWMColormapWindows( POINTER(Display)(None), Window(None), POINTER(Window)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 639 -XSetWMHints = platform.createBaseFunction( - 'XSetWMHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XWMHints)], - doc='XSetWMHints( POINTER(Display)(None), Window(None), POINTER(XWMHints)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 645 -XSetWMIconName = platform.createBaseFunction( - 'XSetWMIconName', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XSetWMIconName( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 651 -XSetWMName = platform.createBaseFunction( - 'XSetWMName', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty)], - doc='XSetWMName( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 657 -XSetWMNormalHints = platform.createBaseFunction( - 'XSetWMNormalHints', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints)], - doc='XSetWMNormalHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None) ) -> None', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 669 -XSetWMProperties = platform.createBaseFunction( - 'XSetWMProperties', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XTextProperty),POINTER(XTextProperty),POINTER(STRING),c_int,POINTER(XSizeHints),POINTER(XWMHints),POINTER(XClassHint)], - doc='XSetWMProperties( POINTER(Display)(None), Window(None), POINTER(XTextProperty)(None), POINTER(XTextProperty)(None), POINTER(STRING)(None), c_int(None), POINTER(XSizeHints)(None), POINTER(XWMHints)(None), POINTER(XClassHint)(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1895 -XSetWMProtocols = platform.createBaseFunction( - 'XSetWMProtocols', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(Atom),c_int], - doc='XSetWMProtocols( POINTER(Display)(None), Window(None), POINTER(Atom)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 700 -XSetWMSizeHints = platform.createBaseFunction( - 'XSetWMSizeHints', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints),Atom], - doc='XSetWMSizeHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None), Atom(None) ) -> None', - argNames=('None', 'None', 'None', 'None'), -) - -XSetWindowAttributes._fields_ = [ - # /usr/include/X11/Xlib.h 338 - ('background_pixmap', Pixmap), - ('background_pixel', c_ulong), - ('border_pixmap', Pixmap), - ('border_pixel', c_ulong), - ('bit_gravity', c_int), - ('win_gravity', c_int), - ('backing_store', c_int), - ('backing_planes', c_ulong), - ('backing_pixel', c_ulong), - ('save_under', c_int), - ('event_mask', c_long), - ('do_not_propagate_mask', c_long), - ('override_redirect', c_int), - ('colormap', Colormap), - ('cursor', Cursor), -] - -# /usr/include/X11/Xlib.h 3339 -XSetWindowBackground = platform.createBaseFunction( - 'XSetWindowBackground', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_ulong], - doc='XSetWindowBackground( POINTER(Display)(None), Window(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3345 -XSetWindowBackgroundPixmap = platform.createBaseFunction( - 'XSetWindowBackgroundPixmap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Pixmap], - doc='XSetWindowBackgroundPixmap( POINTER(Display)(None), Window(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3351 -XSetWindowBorder = platform.createBaseFunction( - 'XSetWindowBorder', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_ulong], - doc='XSetWindowBorder( POINTER(Display)(None), Window(None), c_ulong(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3357 -XSetWindowBorderPixmap = platform.createBaseFunction( - 'XSetWindowBorderPixmap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Pixmap], - doc='XSetWindowBorderPixmap( POINTER(Display)(None), Window(None), Pixmap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3363 -XSetWindowBorderWidth = platform.createBaseFunction( - 'XSetWindowBorderWidth', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_uint], - doc='XSetWindowBorderWidth( POINTER(Display)(None), Window(None), c_uint(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3369 -XSetWindowColormap = platform.createBaseFunction( - 'XSetWindowColormap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Colormap], - doc='XSetWindowColormap( POINTER(Display)(None), Window(None), Colormap(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 719 -XSetZoomHints = platform.createBaseFunction( - 'XSetZoomHints', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,POINTER(XSizeHints)], - doc='XSetZoomHints( POINTER(Display)(None), Window(None), POINTER(XSizeHints)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 725 -XShrinkRegion = platform.createBaseFunction( - 'XShrinkRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,c_int,c_int], - doc='XShrinkRegion( Region(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -XSizeHints._fields_ = [ - # /usr/include/X11/Xutil.h 88 - ('flags', c_long), - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('min_width', c_int), - ('min_height', c_int), - ('max_width', c_int), - ('max_height', c_int), - ('width_inc', c_int), - ('height_inc', c_int), - ('min_aspect', N10XSizeHints4DOT_93E), - ('max_aspect', N10XSizeHints4DOT_93E), - ('base_width', c_int), - ('base_height', c_int), - ('win_gravity', c_int), -] -XStandardColormap._fields_ = [ - # /usr/include/X11/Xutil.h 325 - ('colormap', Colormap), - ('red_max', c_ulong), - ('red_mult', c_ulong), - ('green_max', c_ulong), - ('green_mult', c_ulong), - ('blue_max', c_ulong), - ('blue_mult', c_ulong), - ('base_pixel', c_ulong), - ('visualid', VisualID), - ('killid', XID), -] - -# /usr/include/X11/Xlib.h 3376 -XStoreBuffer = platform.createBaseFunction( - 'XStoreBuffer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING,c_int,c_int], - doc='XStoreBuffer( POINTER(Display)(None), STRING(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3382 -XStoreBytes = platform.createBaseFunction( - 'XStoreBytes', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING,c_int], - doc='XStoreBytes( POINTER(Display)(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3388 -XStoreColor = platform.createBaseFunction( - 'XStoreColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(XColor)], - doc='XStoreColor( POINTER(Display)(None), Colormap(None), POINTER(XColor)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3395 -XStoreColors = platform.createBaseFunction( - 'XStoreColors', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,POINTER(XColor),c_int], - doc='XStoreColors( POINTER(Display)(None), Colormap(None), POINTER(XColor)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3401 -XStoreName = platform.createBaseFunction( - 'XStoreName', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,STRING], - doc='XStoreName( POINTER(Display)(None), Window(None), STRING(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3409 -XStoreNamedColor = platform.createBaseFunction( - 'XStoreNamedColor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap,STRING,c_ulong,c_int], - doc='XStoreNamedColor( POINTER(Display)(None), Colormap(None), STRING(None), c_ulong(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 731 -XStringListToTextProperty = platform.createBaseFunction( - 'XStringListToTextProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(STRING),c_int,POINTER(XTextProperty)], - doc='XStringListToTextProperty( POINTER(STRING)(None), c_int(None), POINTER(XTextProperty)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -#def XStringToContext(string): return ((XContext) XrmStringToQuark(string)) # macro - -# /usr/include/X11/Xlib.h 1714 -XStringToKeysym = platform.createBaseFunction( - 'XStringToKeysym', dll=platform.GL, resultType=KeySym, - argTypes=[STRING], - doc='XStringToKeysym( STRING(None) ) -> KeySym', - argNames=('None',), -) - -#def XSubImage(ximage,x,y,width,height): return ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height))) # macro - -# /usr/include/X11/Xutil.h 737 -XSubtractRegion = platform.createBaseFunction( - 'XSubtractRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,Region,Region], - doc='XSubtractRegion( Region(None), Region(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3553 -XSupportsLocale = platform.createBaseFunction( - 'XSupportsLocale', dll=platform.GL, resultType=c_int, - argTypes=[], - doc='XSupportsLocale( ) -> c_int', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 3414 -XSync = platform.createBaseFunction( - 'XSync', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int], - doc='XSync( POINTER(Display)(None), c_int(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1530 -XSynchronize = platform.createBaseFunction( - 'XSynchronize', dll=platform.GL, resultType=CFUNCTYPE(c_int, POINTER(Display)), - argTypes=[POINTER(Display),c_int], - doc='XSynchronize( POINTER(Display)(None), c_int(None) ) -> CFUNCTYPE(c_int, POINTER(Display))', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3424 -XTextExtents = platform.createBaseFunction( - 'XTextExtents', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XFontStruct),STRING,c_int,POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(XCharStruct)], - doc='XTextExtents( POINTER(XFontStruct)(None), STRING(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(XCharStruct)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3434 -XTextExtents16 = platform.createBaseFunction( - 'XTextExtents16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XFontStruct),POINTER(XChar2b),c_int,POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(XCharStruct)], - doc='XTextExtents16( POINTER(XFontStruct)(None), POINTER(XChar2b)(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(XCharStruct)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -XTextItem._fields_ = [ - # /usr/include/X11/Xlib.h 1065 - ('chars', STRING), - ('nchars', c_int), - ('delta', c_int), - ('font', Font), -] - -XTextItem16._fields_ = [ - # /usr/include/X11/Xlib.h 1077 - ('chars', POINTER(XChar2b)), - ('nchars', c_int), - ('delta', c_int), - ('font', Font), -] -XTextProperty._fields_ = [ - # /usr/include/X11/Xutil.h 162 - ('value', POINTER(c_ubyte)), - ('encoding', Atom), - ('format', c_int), - ('nitems', c_ulong), -] - -# /usr/include/X11/Xutil.h 771 -XTextPropertyToStringList = platform.createBaseFunction( - 'XTextPropertyToStringList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XTextProperty),POINTER(POINTER(STRING)),POINTER(c_int)], - doc='XTextPropertyToStringList( POINTER(XTextProperty)(None), POINTER(POINTER(STRING))(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3440 -XTextWidth = platform.createBaseFunction( - 'XTextWidth', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XFontStruct),STRING,c_int], - doc='XTextWidth( POINTER(XFontStruct)(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3446 -XTextWidth16 = platform.createBaseFunction( - 'XTextWidth16', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XFontStruct),POINTER(XChar2b),c_int], - doc='XTextWidth16( POINTER(XFontStruct)(None), POINTER(XChar2b)(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -XTimeCoord._fields_ = [ - # /usr/include/X11/Xlib.h 503 - ('time', Time), - ('x', c_short), - ('y', c_short), -] - -# /usr/include/X11/Xlib.h 3457 -XTranslateCoordinates = platform.createBaseFunction( - 'XTranslateCoordinates', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Window,c_int,c_int,POINTER(c_int),POINTER(c_int),POINTER(Window)], - doc='XTranslateCoordinates( POINTER(Display)(None), Window(None), Window(None), c_int(None), c_int(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(Window)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3462 -XUndefineCursor = platform.createBaseFunction( - 'XUndefineCursor', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XUndefineCursor( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3469 -XUngrabButton = platform.createBaseFunction( - 'XUngrabButton', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_uint,c_uint,Window], - doc='XUngrabButton( POINTER(Display)(None), c_uint(None), c_uint(None), Window(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3476 -XUngrabKey = platform.createBaseFunction( - 'XUngrabKey', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,c_uint,Window], - doc='XUngrabKey( POINTER(Display)(None), c_int(None), c_uint(None), Window(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3481 -XUngrabKeyboard = platform.createBaseFunction( - 'XUngrabKeyboard', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Time], - doc='XUngrabKeyboard( POINTER(Display)(None), Time(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3486 -XUngrabPointer = platform.createBaseFunction( - 'XUngrabPointer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Time], - doc='XUngrabPointer( POINTER(Display)(None), Time(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3490 -XUngrabServer = platform.createBaseFunction( - 'XUngrabServer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XUngrabServer( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3495 -XUninstallColormap = platform.createBaseFunction( - 'XUninstallColormap', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Colormap], - doc='XUninstallColormap( POINTER(Display)(None), Colormap(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xutil.h 798 -XUnionRectWithRegion = platform.createBaseFunction( - 'XUnionRectWithRegion', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(XRectangle),Region,Region], - doc='XUnionRectWithRegion( POINTER(XRectangle)(None), Region(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 804 -XUnionRegion = platform.createBaseFunction( - 'XUnionRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,Region,Region], - doc='XUnionRegion( Region(None), Region(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -#def XUniqueContext(): return ((XContext) XrmUniqueQuark()) # macro - -# /usr/include/X11/Xlib.h 3500 -XUnloadFont = platform.createBaseFunction( - 'XUnloadFont', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Font], - doc='XUnloadFont( POINTER(Display)(None), Font(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1746 -XUnlockDisplay = platform.createBaseFunction( - 'XUnlockDisplay', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display)], - doc='XUnlockDisplay( POINTER(Display)(None) ) -> None', - argNames=('None',), -) - -class XUnmapEvent(Structure): - pass -XUnmapEvent._fields_ = [ - # /usr/include/X11/Xlib.h 767 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('event', Window), - ('window', Window), - ('from_configure', c_int), -] - -# /usr/include/X11/Xlib.h 3505 -XUnmapSubwindows = platform.createBaseFunction( - 'XUnmapSubwindows', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XUnmapSubwindows( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3510 -XUnmapWindow = platform.createBaseFunction( - 'XUnmapWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window], - doc='XUnmapWindow( POINTER(Display)(None), Window(None) ) -> c_int', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3949 -XUnregisterIMInstantiateCallback = platform.createBaseFunction( - 'XUnregisterIMInstantiateCallback', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(_XrmHashBucketRec),STRING,STRING,XIDProc,XPointer], - doc='XUnregisterIMInstantiateCallback( POINTER(Display)(None), POINTER(_XrmHashBucketRec)(None), STRING(None), STRING(None), XIDProc(None), XPointer(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3869 -XUnsetICFocus = platform.createBaseFunction( - 'XUnsetICFocus', dll=platform.GL, resultType=None, - argTypes=[XIC], - doc='XUnsetICFocus( XIC(None) ) -> None', - argNames=('None',), -) - -XVaNestedList = c_void_p - -# /usr/include/X11/Xlib.h 3929 -XVaCreateNestedList = platform.createBaseFunction( - 'XVaCreateNestedList', dll=platform.GL, resultType=XVaNestedList, - argTypes=[c_int], - doc='XVaCreateNestedList( c_int(None) ) -> XVaNestedList', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3514 -XVendorRelease = platform.createBaseFunction( - 'XVendorRelease', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display)], - doc='XVendorRelease( POINTER(Display)(None) ) -> c_int', - argNames=('None',), -) - -class XVisibilityEvent(Structure): - pass -XVisibilityEvent._fields_ = [ - # /usr/include/X11/Xlib.h 735 - ('type', c_int), - ('serial', c_ulong), - ('send_event', c_int), - ('display', POINTER(Display)), - ('window', Window), - ('state', c_int), -] - -# /usr/include/X11/Xlib.h 1732 -XVisualIDFromVisual = platform.createBaseFunction( - 'XVisualIDFromVisual', dll=platform.GL, resultType=VisualID, - argTypes=[POINTER(Visual)], - doc='XVisualIDFromVisual( POINTER(Visual)(None) ) -> VisualID', - argNames=('None',), -) - -XVisualInfo._fields_ = [ - # /usr/include/X11/Xutil.h 296 - ('visual', POINTER(Visual)), - ('visualid', VisualID), - ('screen', c_int), - ('depth', c_int), - ('c_class', c_int), - ('red_mask', c_ulong), - ('green_mask', c_ulong), - ('blue_mask', c_ulong), - ('colormap_size', c_int), - ('bits_per_rgb', c_int), -] - -# /usr/include/X11/Xutil.h 818 -XWMGeometry = platform.createBaseFunction( - 'XWMGeometry', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),c_int,STRING,STRING,c_uint,POINTER(XSizeHints),POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_int),POINTER(c_int)], - doc='XWMGeometry( POINTER(Display)(None), c_int(None), STRING(None), STRING(None), c_uint(None), POINTER(XSizeHints)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -XWMHints._fields_ = [ - # /usr/include/X11/Xutil.h 124 - ('flags', c_long), - ('input', c_int), - ('initial_state', c_int), - ('icon_pixmap', Pixmap), - ('icon_window', Window), - ('icon_x', c_int), - ('icon_y', c_int), - ('icon_mask', Pixmap), - ('window_group', XID), -] - -# /usr/include/X11/Xlib.h 3526 -XWarpPointer = platform.createBaseFunction( - 'XWarpPointer', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,Window,c_int,c_int,c_uint,c_uint,c_int,c_int], - doc='XWarpPointer( POINTER(Display)(None), Window(None), Window(None), c_int(None), c_int(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1798 -XWhitePixel = platform.createBaseFunction( - 'XWhitePixel', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Display),c_int], - doc='XWhitePixel( POINTER(Display)(None), c_int(None) ) -> c_ulong', - argNames=('None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1807 -XWhitePixelOfScreen = platform.createBaseFunction( - 'XWhitePixelOfScreen', dll=platform.GL, resultType=c_ulong, - argTypes=[POINTER(Screen)], - doc='XWhitePixelOfScreen( POINTER(Screen)(None) ) -> c_ulong', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3530 -XWidthMMOfScreen = platform.createBaseFunction( - 'XWidthMMOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XWidthMMOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3534 -XWidthOfScreen = platform.createBaseFunction( - 'XWidthOfScreen', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Screen)], - doc='XWidthOfScreen( POINTER(Screen)(None) ) -> c_int', - argNames=('None',), -) - -XWindowAttributes._fields_ = [ - # /usr/include/X11/Xlib.h 366 - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('border_width', c_int), - ('depth', c_int), - ('visual', POINTER(Visual)), - ('root', Window), - ('c_class', c_int), - ('bit_gravity', c_int), - ('win_gravity', c_int), - ('backing_store', c_int), - ('backing_planes', c_ulong), - ('backing_pixel', c_ulong), - ('save_under', c_int), - ('colormap', Colormap), - ('map_installed', c_int), - ('map_state', c_int), - ('all_event_masks', c_long), - ('your_event_mask', c_long), - ('do_not_propagate_mask', c_long), - ('override_redirect', c_int), - ('screen', POINTER(Screen)), -] -XWindowChanges._fields_ = [ - # /usr/include/X11/Xlib.h 437 - ('x', c_int), - ('y', c_int), - ('width', c_int), - ('height', c_int), - ('border_width', c_int), - ('sibling', Window), - ('stack_mode', c_int), -] - -# /usr/include/X11/Xlib.h 3541 -XWindowEvent = platform.createBaseFunction( - 'XWindowEvent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_long,POINTER(XEvent)], - doc='XWindowEvent( POINTER(Display)(None), Window(None), c_long(None), POINTER(XEvent)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 1905 -XWithdrawWindow = platform.createBaseFunction( - 'XWithdrawWindow', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),Window,c_int], - doc='XWithdrawWindow( POINTER(Display)(None), Window(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3551 -XWriteBitmapFile = platform.createBaseFunction( - 'XWriteBitmapFile', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),STRING,Pixmap,c_uint,c_uint,c_int,c_int], - doc='XWriteBitmapFile( POINTER(Display)(None), STRING(None), Pixmap(None), c_uint(None), c_uint(None), c_int(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 824 -XXorRegion = platform.createBaseFunction( - 'XXorRegion', dll=platform.GL, resultType=c_int, - argTypes=[Region,Region,Region], - doc='XXorRegion( Region(None), Region(None), Region(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3804 -XmbDrawImageString = platform.createBaseFunction( - 'XmbDrawImageString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,STRING,c_int], - doc='XmbDrawImageString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3771 -XmbDrawString = platform.createBaseFunction( - 'XmbDrawString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,STRING,c_int], - doc='XmbDrawString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XmbTextItem(Structure): - pass -# /usr/include/X11/Xlib.h 3740 -XmbDrawText = platform.createBaseFunction( - 'XmbDrawText', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XmbTextItem),c_int], - doc='XmbDrawText( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XmbTextItem)(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3907 -XmbLookupString = platform.createBaseFunction( - 'XmbLookupString', dll=platform.GL, resultType=c_int, - argTypes=[XIC,POINTER(XKeyPressedEvent),STRING,c_int,POINTER(KeySym),POINTER(c_int)], - doc='XmbLookupString( XIC(None), POINTER(XKeyPressedEvent)(None), STRING(None), c_int(None), POINTER(KeySym)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3877 -XmbResetIC = platform.createBaseFunction( - 'XmbResetIC', dll=platform.GL, resultType=STRING, - argTypes=[XIC], - doc='XmbResetIC( XIC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 681 -XmbSetWMProperties = platform.createBaseFunction( - 'XmbSetWMProperties', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,STRING,STRING,POINTER(STRING),c_int,POINTER(XSizeHints),POINTER(XWMHints),POINTER(XClassHint)], - doc='XmbSetWMProperties( POINTER(Display)(None), Window(None), STRING(None), STRING(None), POINTER(STRING)(None), c_int(None), POINTER(XSizeHints)(None), POINTER(XWMHints)(None), POINTER(XClassHint)(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3658 -XmbTextEscapement = platform.createBaseFunction( - 'XmbTextEscapement', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int], - doc='XmbTextEscapement( XFontSet(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3678 -XmbTextExtents = platform.createBaseFunction( - 'XmbTextExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int,POINTER(XRectangle),POINTER(XRectangle)], - doc='XmbTextExtents( XFontSet(None), STRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -XmbTextItem._fields_ = [ - # /usr/include/X11/Xlib.h 1104 - ('chars', STRING), - ('nchars', c_int), - ('delta', c_int), - ('font_set', XFontSet), -] - -# /usr/include/X11/Xutil.h 745 -XmbTextListToTextProperty = platform.createBaseFunction( - 'XmbTextListToTextProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(STRING),c_int,XICCEncodingStyle,POINTER(XTextProperty)], - doc='XmbTextListToTextProperty( POINTER(Display)(display), POINTER(STRING)(list), c_int(count), XICCEncodingStyle(style), POINTER(XTextProperty)(text_prop_return) ) -> c_int', - argNames=('display', 'list', 'count', 'style', 'text_prop_return'), -) - - -# /usr/include/X11/Xlib.h 3706 -XmbTextPerCharExtents = platform.createBaseFunction( - 'XmbTextPerCharExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int,POINTER(XRectangle),POINTER(XRectangle),c_int,POINTER(c_int),POINTER(XRectangle),POINTER(XRectangle)], - doc='XmbTextPerCharExtents( XFontSet(None), STRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None), c_int(None), POINTER(c_int)(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 778 -XmbTextPropertyToTextList = platform.createBaseFunction( - 'XmbTextPropertyToTextList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XTextProperty),POINTER(POINTER(STRING)),POINTER(c_int)], - doc='XmbTextPropertyToTextList( POINTER(Display)(display), POINTER(XTextProperty)(text_prop), POINTER(POINTER(STRING))(list_return), POINTER(c_int)(count_return) ) -> c_int', - argNames=('display', 'text_prop', 'list_return', 'count_return'), -) - - -# /usr/include/X11/Xlib.h 1492 -XrmInitialize = platform.createBaseFunction( - 'XrmInitialize', dll=platform.GL, resultType=None, - argTypes=[], - doc='XrmInitialize( ) -> None', - argNames=(), -) - - -# /usr/include/X11/Xlib.h 3826 -Xutf8DrawImageString = platform.createBaseFunction( - 'Xutf8DrawImageString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,STRING,c_int], - doc='Xutf8DrawImageString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3793 -Xutf8DrawString = platform.createBaseFunction( - 'Xutf8DrawString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,STRING,c_int], - doc='Xutf8DrawString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), STRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3760 -Xutf8DrawText = platform.createBaseFunction( - 'Xutf8DrawText', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XmbTextItem),c_int], - doc='Xutf8DrawText( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XmbTextItem)(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3925 -Xutf8LookupString = platform.createBaseFunction( - 'Xutf8LookupString', dll=platform.GL, resultType=c_int, - argTypes=[XIC,POINTER(XKeyPressedEvent),STRING,c_int,POINTER(KeySym),POINTER(c_int)], - doc='Xutf8LookupString( XIC(None), POINTER(XKeyPressedEvent)(None), STRING(None), c_int(None), POINTER(KeySym)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3881 -Xutf8ResetIC = platform.createBaseFunction( - 'Xutf8ResetIC', dll=platform.GL, resultType=STRING, - argTypes=[XIC], - doc='Xutf8ResetIC( XIC(None) ) -> STRING', - argNames=('None',), -) - - -# /usr/include/X11/Xutil.h 693 -Xutf8SetWMProperties = platform.createBaseFunction( - 'Xutf8SetWMProperties', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Window,STRING,STRING,POINTER(STRING),c_int,POINTER(XSizeHints),POINTER(XWMHints),POINTER(XClassHint)], - doc='Xutf8SetWMProperties( POINTER(Display)(None), Window(None), STRING(None), STRING(None), POINTER(STRING)(None), c_int(None), POINTER(XSizeHints)(None), POINTER(XWMHints)(None), POINTER(XClassHint)(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3670 -Xutf8TextEscapement = platform.createBaseFunction( - 'Xutf8TextEscapement', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int], - doc='Xutf8TextEscapement( XFontSet(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3694 -Xutf8TextExtents = platform.createBaseFunction( - 'Xutf8TextExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int,POINTER(XRectangle),POINTER(XRectangle)], - doc='Xutf8TextExtents( XFontSet(None), STRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 761 -Xutf8TextListToTextProperty = platform.createBaseFunction( - 'Xutf8TextListToTextProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(STRING),c_int,XICCEncodingStyle,POINTER(XTextProperty)], - doc='Xutf8TextListToTextProperty( POINTER(Display)(display), POINTER(STRING)(list), c_int(count), XICCEncodingStyle(style), POINTER(XTextProperty)(text_prop_return) ) -> c_int', - argNames=('display', 'list', 'count', 'style', 'text_prop_return'), -) - - -# /usr/include/X11/Xlib.h 3730 -Xutf8TextPerCharExtents = platform.createBaseFunction( - 'Xutf8TextPerCharExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,STRING,c_int,POINTER(XRectangle),POINTER(XRectangle),c_int,POINTER(c_int),POINTER(XRectangle),POINTER(XRectangle)], - doc='Xutf8TextPerCharExtents( XFontSet(None), STRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None), c_int(None), POINTER(c_int)(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 792 -Xutf8TextPropertyToTextList = platform.createBaseFunction( - 'Xutf8TextPropertyToTextList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XTextProperty),POINTER(POINTER(STRING)),POINTER(c_int)], - doc='Xutf8TextPropertyToTextList( POINTER(Display)(display), POINTER(XTextProperty)(text_prop), POINTER(POINTER(STRING))(list_return), POINTER(c_int)(count_return) ) -> c_int', - argNames=('display', 'text_prop', 'list_return', 'count_return'), -) - - -# /usr/include/X11/Xlib.h 3815 -XwcDrawImageString = platform.createBaseFunction( - 'XwcDrawImageString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,WSTRING,c_int], - doc='XwcDrawImageString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), WSTRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3782 -XwcDrawString = platform.createBaseFunction( - 'XwcDrawString', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,XFontSet,GC,c_int,c_int,WSTRING,c_int], - doc='XwcDrawString( POINTER(Display)(None), Drawable(None), XFontSet(None), GC(None), c_int(None), c_int(None), WSTRING(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - -class XwcTextItem(Structure): - pass -# /usr/include/X11/Xlib.h 3750 -XwcDrawText = platform.createBaseFunction( - 'XwcDrawText', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),Drawable,GC,c_int,c_int,POINTER(XwcTextItem),c_int], - doc='XwcDrawText( POINTER(Display)(None), Drawable(None), GC(None), c_int(None), c_int(None), POINTER(XwcTextItem)(None), c_int(None) ) -> None', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 765 -XwcFreeStringList = platform.createBaseFunction( - 'XwcFreeStringList', dll=platform.GL, resultType=None, - argTypes=[POINTER(WSTRING)], - doc='XwcFreeStringList( POINTER(WSTRING)(list) ) -> None', - argNames=('list',), -) - - -# /usr/include/X11/Xlib.h 3916 -XwcLookupString = platform.createBaseFunction( - 'XwcLookupString', dll=platform.GL, resultType=c_int, - argTypes=[XIC,POINTER(XKeyPressedEvent),WSTRING,c_int,POINTER(KeySym),POINTER(c_int)], - doc='XwcLookupString( XIC(None), POINTER(XKeyPressedEvent)(None), WSTRING(None), c_int(None), POINTER(KeySym)(None), POINTER(c_int)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3873 -XwcResetIC = platform.createBaseFunction( - 'XwcResetIC', dll=platform.GL, resultType=WSTRING, - argTypes=[XIC], - doc='XwcResetIC( XIC(None) ) -> WSTRING', - argNames=('None',), -) - - -# /usr/include/X11/Xlib.h 3664 -XwcTextEscapement = platform.createBaseFunction( - 'XwcTextEscapement', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,WSTRING,c_int], - doc='XwcTextEscapement( XFontSet(None), WSTRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - - -# /usr/include/X11/Xlib.h 3686 -XwcTextExtents = platform.createBaseFunction( - 'XwcTextExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,WSTRING,c_int,POINTER(XRectangle),POINTER(XRectangle)], - doc='XwcTextExtents( XFontSet(None), WSTRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None'), -) - -XwcTextItem._fields_ = [ - # /usr/include/X11/Xlib.h 1111 - ('chars', WSTRING), - ('nchars', c_int), - ('delta', c_int), - ('font_set', XFontSet), -] - -# /usr/include/X11/Xutil.h 753 -XwcTextListToTextProperty = platform.createBaseFunction( - 'XwcTextListToTextProperty', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(WSTRING),c_int,XICCEncodingStyle,POINTER(XTextProperty)], - doc='XwcTextListToTextProperty( POINTER(Display)(display), POINTER(WSTRING)(list), c_int(count), XICCEncodingStyle(style), POINTER(XTextProperty)(text_prop_return) ) -> c_int', - argNames=('display', 'list', 'count', 'style', 'text_prop_return'), -) - - -# /usr/include/X11/Xlib.h 3718 -XwcTextPerCharExtents = platform.createBaseFunction( - 'XwcTextPerCharExtents', dll=platform.GL, resultType=c_int, - argTypes=[XFontSet,WSTRING,c_int,POINTER(XRectangle),POINTER(XRectangle),c_int,POINTER(c_int),POINTER(XRectangle),POINTER(XRectangle)], - doc='XwcTextPerCharExtents( XFontSet(None), WSTRING(None), c_int(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None), c_int(None), POINTER(c_int)(None), POINTER(XRectangle)(None), POINTER(XRectangle)(None) ) -> c_int', - argNames=('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'), -) - - -# /usr/include/X11/Xutil.h 785 -XwcTextPropertyToTextList = platform.createBaseFunction( - 'XwcTextPropertyToTextList', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XTextProperty),POINTER(POINTER(WSTRING)),POINTER(c_int)], - doc='XwcTextPropertyToTextList( POINTER(Display)(display), POINTER(XTextProperty)(text_prop), POINTER(POINTER(WSTRING))(list_return), POINTER(c_int)(count_return) ) -> c_int', - argNames=('display', 'text_prop', 'list_return', 'count_return'), -) - -class _4DOT_35(Structure): - pass -class _XPrivate(Structure): - pass - - -_4DOT_35._fields_ = [ - # /usr/include/X11/Xlib.h 529 - ('ext_data', POINTER(XExtData)), - ('private1', POINTER(_XPrivate)), - ('fd', c_int), - ('private2', c_int), - ('proto_major_version', c_int), - ('proto_minor_version', c_int), - ('vendor', STRING), - ('private3', XID), - ('private4', XID), - ('private5', XID), - ('private6', c_int), - ('resource_alloc', CFUNCTYPE(XID, POINTER(_XDisplay))), - ('byte_order', c_int), - ('bitmap_unit', c_int), - ('bitmap_pad', c_int), - ('bitmap_bit_order', c_int), - ('nformats', c_int), - ('pixmap_format', POINTER(ScreenFormat)), - ('private8', c_int), - ('release', c_int), - ('private9', POINTER(_XPrivate)), - ('private10', POINTER(_XPrivate)), - ('qlen', c_int), - ('last_request_read', c_ulong), - ('request', c_ulong), - ('private11', XPointer), - ('private12', XPointer), - ('private13', XPointer), - ('private14', XPointer), - ('max_request_size', c_uint), - ('db', POINTER(_XrmHashBucketRec)), - ('private15', CFUNCTYPE(c_int, POINTER(_XDisplay))), - ('display_name', STRING), - ('default_screen', c_int), - ('nscreens', c_int), - ('screens', POINTER(Screen)), - ('motion_buffer', c_ulong), - ('private16', c_ulong), - ('min_keycode', c_int), - ('max_keycode', c_int), - ('private17', XPointer), - ('private18', XPointer), - ('private19', c_int), - ('xdefaults', STRING), -] -_XComposeStatus._fields_ = [ - # /usr/include/X11/Xutil.h 225 - ('compose_ptr', XPointer), - ('chars_matched', c_int), -] -_XDisplay._fields_ = [ - # /usr/include/X11/Xlib.h 287 -] - -_XEvent._fields_ = [ - # /usr/include/X11/Xlib.h 978 - ('type', c_int), - ('xany', XAnyEvent), - ('xkey', XKeyEvent), - ('xbutton', XButtonEvent), - ('xmotion', XMotionEvent), - ('xcrossing', XCrossingEvent), - ('xfocus', XFocusChangeEvent), - ('xexpose', XExposeEvent), - ('xgraphicsexpose', XGraphicsExposeEvent), - ('xnoexpose', XNoExposeEvent), - ('xvisibility', XVisibilityEvent), - ('xcreatewindow', XCreateWindowEvent), - ('xdestroywindow', XDestroyWindowEvent), - ('xunmap', XUnmapEvent), - ('xmap', XMapEvent), - ('xmaprequest', XMapRequestEvent), - ('xreparent', XReparentEvent), - ('xconfigure', XConfigureEvent), - ('xgravity', XGravityEvent), - ('xresizerequest', XResizeRequestEvent), - ('xconfigurerequest', XConfigureRequestEvent), - ('xcirculate', XCirculateEvent), - ('xcirculaterequest', XCirculateRequestEvent), - ('xproperty', XPropertyEvent), - ('xselectionclear', XSelectionClearEvent), - ('xselectionrequest', XSelectionRequestEvent), - ('xselection', XSelectionEvent), - ('xcolormap', XColormapEvent), - ('xclient', XClientMessageEvent), - ('xmapping', XMappingEvent), - ('xerror', XErrorEvent), - ('xkeymap', XKeymapEvent), - ('pad', c_long * 24), -] - -_XExtData._fields_ = [ - # /usr/include/X11/Xlib.h 180 - ('number', c_int), - ('next', POINTER(_XExtData)), - ('free_private', CFUNCTYPE(c_int, POINTER(_XExtData))), - ('private_data', XPointer), -] -_XGC._fields_ = [ - # /usr/include/X11/Xlib.h 254 -] -_XIC._fields_ = [ - # /usr/include/X11/Xlib.h 1149 -] -_XIM._fields_ = [ - # /usr/include/X11/Xlib.h 1148 -] -_XIMHotKeyTrigger._fields_ = [ - # /usr/include/X11/Xlib.h 1368 - ('keysym', KeySym), - ('modifier', c_int), - ('modifier_mask', c_int), -] - -_XIMHotKeyTriggers._fields_ = [ - # /usr/include/X11/Xlib.h 1374 - ('num_hot_key', c_int), - ('key', POINTER(XIMHotKeyTrigger)), -] -_XIMPreeditCaretCallbackStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1349 - ('position', c_int), - ('direction', XIMCaretDirection), - ('style', XIMCaretStyle), -] -_XIMPreeditDrawCallbackStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1336 - ('caret', c_int), - ('chg_first', c_int), - ('chg_length', c_int), - ('text', POINTER(XIMText)), -] -_XIMPreeditStateNotifyCallbackStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1276 - ('state', XIMPreeditState), -] -_XIMStatusDrawCallbackStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1360 - ('type', XIMStatusDataType), - ('data', N28_XIMStatusDrawCallbackStruct4DOT_90E), -] - -_XIMStringConversionCallbackStruct._fields_ = [ - # /usr/include/X11/Xlib.h 1328 - ('position', XIMStringConversionPosition), - ('direction', XIMCaretDirection), - ('operation', XIMStringConversionOperation), - ('factor', c_ushort), - ('text', POINTER(XIMStringConversionText)), -] - -_XIMStringConversionText._fields_ = [ - # /usr/include/X11/Xlib.h 1294 - ('length', c_ushort), - ('feedback', POINTER(XIMStringConversionFeedback)), - ('encoding_is_wchar', c_int), - ('string', N24_XIMStringConversionText4DOT_86E), -] - -_XIMText._fields_ = [ - # /usr/include/X11/Xlib.h 1260 - ('length', c_ushort), - ('feedback', POINTER(XIMFeedback)), - ('encoding_is_wchar', c_int), - ('string', N8_XIMText4DOT_85E), -] -class funcs(Structure): - pass - - - - - - - -funcs._fields_ = [ - # /usr/include/X11/Xlib.h 408 - ('create_image', CFUNCTYPE(POINTER(_XImage), POINTER(_XDisplay), POINTER(Visual), c_uint, c_int, c_int, STRING, c_uint, c_uint, c_int, c_int)), - ('destroy_image', CFUNCTYPE(c_int, POINTER(_XImage))), - ('get_pixel', CFUNCTYPE(c_ulong, POINTER(_XImage), c_int, c_int)), - ('put_pixel', CFUNCTYPE(c_int, POINTER(_XImage), c_int, c_int, c_ulong)), - ('sub_image', CFUNCTYPE(POINTER(_XImage), POINTER(_XImage), c_int, c_int, c_uint, c_uint)), - ('add_pixel', CFUNCTYPE(c_int, POINTER(_XImage), c_long)), -] -_XImage._fields_ = [ - # /usr/include/X11/Xlib.h 392 - ('width', c_int), - ('height', c_int), - ('xoffset', c_int), - ('format', c_int), - ('data', STRING), - ('byte_order', c_int), - ('bitmap_unit', c_int), - ('bitmap_bit_order', c_int), - ('bitmap_pad', c_int), - ('depth', c_int), - ('bytes_per_line', c_int), - ('bits_per_pixel', c_int), - ('red_mask', c_ulong), - ('green_mask', c_ulong), - ('blue_mask', c_ulong), - ('obdata', XPointer), - ('f', funcs), -] -_XOC._fields_ = [ - # /usr/include/X11/Xlib.h 1097 -] -_XOM._fields_ = [ - # /usr/include/X11/Xlib.h 1096 -] - -_XPrivDisplay = POINTER(_4DOT_35) -_XPrivate._fields_ = [ - # /usr/include/X11/Xlib.h 522 -] -_XRegion._fields_ = [ - # /usr/include/X11/Xutil.h 267 -] -def _X_ATTRIBUTE_PRINTF(x,y): return __attribute__((__format__(__printf__,x,y))) # macro -def _X_SENTINEL(x): return __attribute__ ((__sentinel__(x))) # macro -#_Xconst = const # alias - -# /usr/include/X11/Xlib.h 102 -_Xmblen = platform.createBaseFunction( - '_Xmblen', dll=platform.GL, resultType=c_int, - argTypes=[STRING,c_int], - doc='_Xmblen( STRING(str), c_int(len) ) -> c_int', - argNames=('str', 'len'), -) - - -# /usr/include/X11/Xlib.h 3999 -_Xmbtowc = platform.createBaseFunction( - '_Xmbtowc', dll=platform.GL, resultType=c_int, - argTypes=[WSTRING,STRING,c_int], - doc='_Xmbtowc( WSTRING(None), STRING(None), c_int(None) ) -> c_int', - argNames=('None', 'None', 'None'), -) - -_XrmHashBucketRec._fields_ = [ - # /usr/include/X11/Xlib.h 523 -] - -# /usr/include/X11/Xlib.h 4004 -_Xwctomb = platform.createBaseFunction( - '_Xwctomb', dll=platform.GL, resultType=c_int, - argTypes=[STRING,c_wchar], - doc='_Xwctomb( STRING(None), c_wchar(None) ) -> c_int', - argNames=('None', 'None'), -) - -def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) # macro -#def __ASMNAME2(prefix,cname): return __STRING (prefix) cname # macro -#__BLKCNT64_T_TYPE = __SQUAD_TYPE # alias -#__BLKCNT_T_TYPE = __SLONGWORD_TYPE # alias -#__BLKSIZE_T_TYPE = __SLONGWORD_TYPE # alias -#__CLOCKID_T_TYPE = __S32_TYPE # alias -#__CLOCK_T_TYPE = __SLONGWORD_TYPE # alias -def __CONCAT(x,y): return x ## y # macro -#__DADDR_T_TYPE = __S32_TYPE # alias -#__DEV_T_TYPE = __UQUAD_TYPE # alias -def __FDELT(d): return ((d) / __NFDBITS) # macro -#def __FDMASK(d): return ((__fd_mask) 1 << ((d) % __NFDBITS)) # macro -#def __FDS_BITS(set): return ((set)->fds_bits) # macro -#def __FD_CLR(d,s): return (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d)) # macro -def __FD_ISSET(d,s): return ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0) # macro -#def __FD_SET(d,s): return (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d)) # macro -#def __FD_ZERO(s): return do { unsigned int __i; fd_set *__arr = (s); for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) __FDS_BITS (__arr)[__i] = 0; } while (0) # macro -__FLOAT_WORD_ORDER = __BYTE_ORDER # alias -#__FSBLKCNT64_T_TYPE = __UQUAD_TYPE # alias -#__FSBLKCNT_T_TYPE = __ULONGWORD_TYPE # alias -#__FSFILCNT64_T_TYPE = __UQUAD_TYPE # alias -#__FSFILCNT_T_TYPE = __ULONGWORD_TYPE # alias -#__GID_T_TYPE = __U32_TYPE # alias -def __GLIBC_PREREQ(maj,min): return ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) # macro -__GLXEvent._fields_ = [ - # /usr/include/GL/glx.h 491 - ('glxpbufferclobber', GLXPbufferClobberEvent), - ('pad', c_long * 24), -] -__GLXFBConfigRec._fields_ = [ - # /usr/include/GL/glx.h 182 -] -__GLXcontextRec._fields_ = [ - # /usr/include/GL/glx.h 178 -] - -__GLXextFuncPtr = CFUNCTYPE(None) -def __GNUC_PREREQ(maj,min): return ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # macro -#__ID_T_TYPE = __U32_TYPE # alias -#__INO64_T_TYPE = __UQUAD_TYPE # alias -#__INO_T_TYPE = __ULONGWORD_TYPE # alias -#__KEY_T_TYPE = __S32_TYPE # alias -#def __LDBL_REDIR(name,proto): return name proto # macro -#def __LDBL_REDIR1(name,proto,alias): return name proto # macro -#def __LDBL_REDIR1_NTH(name,proto,alias): return name proto __THROW # macro -#def __LDBL_REDIR_NTH(name,proto): return name proto __THROW # macro -def __LONG_LONG_PAIR(HI,LO): return LO, HI # macro -#__MODE_T_TYPE = __U32_TYPE # alias -#__NLINK_T_TYPE = __UWORD_TYPE # alias -#def __NTH(fct): return fct throw () # macro -#__OFF64_T_TYPE = __SQUAD_TYPE # alias -#__OFF_T_TYPE = __SLONGWORD_TYPE # alias -def __P(args): return args # macro -#__PID_T_TYPE = __S32_TYPE # alias -def __PMT(args): return args # macro -#def __REDIRECT(name,proto,alias): return name proto __asm__ (__ASMNAME (#alias)) # macro -#def __REDIRECT_NTH(name,proto,alias): return name proto __THROW __asm__ (__ASMNAME (#alias)) # macro -#__RLIM64_T_TYPE = __UQUAD_TYPE # alias -#__RLIM_T_TYPE = __ULONGWORD_TYPE # alias -#__SLONG32_TYPE = int # alias -#__SSIZE_T_TYPE = __SWORD_TYPE # alias -def __STRING(x): return #x # macro -#__SUSECONDS_T_TYPE = __SLONGWORD_TYPE # alias -#__SWBLK_T_TYPE = __SLONGWORD_TYPE # alias -#__TIME_T_TYPE = __SLONGWORD_TYPE # alias -#__UID_T_TYPE = __U32_TYPE # alias -#__USECONDS_T_TYPE = __U32_TYPE # alias -def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) # macro -def __attribute_format_strfmon__(a,b): return __attribute__ ((__format__ (__strfmon__, a, b))) # macro -__blkcnt64_t = c_long -__blkcnt_t = c_long -__blksize_t = c_long -def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) # macro -def __bos0(ptr): return __builtin_object_size (ptr, 0) # macro -__caddr_t = STRING -__clock_t = c_long -__clockid_t = c_int -__daddr_t = c_int -__dev_t = c_ulong -__fd_mask = c_long -__fsblkcnt64_t = c_ulong -__fsblkcnt_t = c_ulong -__fsfilcnt64_t = c_ulong -__fsfilcnt_t = c_ulong -class __fsid_t(Structure): - pass - -__fsid_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/types.h 147 - ('__val', c_int * 2), -] -__gid_t = c_uint -#__gwchar_t = wchar_t # alias -__id_t = c_uint -__ino64_t = c_ulong -__ino_t = c_ulong -__int16_t = c_short -__int32_t = c_int -__int64_t = c_long - -__int8_t = c_byte -#def __intN_t(N,MODE): return typedef int int ##N ##_t __attribute__ ((__mode__ (MODE))) # macro -__intptr_t = c_long -__key_t = c_int -__off64_t = c_long -__loff_t = __off64_t -__mode_t = c_uint -__nlink_t = c_ulong -#def __nonnull(params): return __attribute__ ((__nonnull__ params)) # macro -__off_t = c_long -__pid_t = c_int -class __pthread_internal_list(Structure): - pass - -__pthread_internal_list._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 62 - ('__prev', POINTER(__pthread_internal_list)), - ('__next', POINTER(__pthread_internal_list)), -] -__pthread_list_t = __pthread_internal_list -class __pthread_mutex_s(Structure): - pass -__pthread_mutex_s._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 79 - ('__lock', c_int), - ('__count', c_uint), - ('__owner', c_int), - ('__nusers', c_uint), - ('__kind', c_int), - ('__spins', c_int), - ('__list', __pthread_list_t), -] -__quad_t = c_long -__qaddr_t = POINTER(__quad_t) -__rlim64_t = c_ulong -__rlim_t = c_ulong -__sig_atomic_t = c_int -class __sigset_t(Structure): - pass - -__sigset_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/sigset.h 31 - ('__val', c_ulong * 16), -] -__socklen_t = c_uint -__ssize_t = c_long -__suseconds_t = c_long -__swblk_t = c_long -__time_t = c_long -__timer_t = c_void_p -__u_char = c_ubyte -__u_int = c_uint -#def __u_intN_t(N,MODE): return typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE))) # macro -__u_long = c_ulong -__u_quad_t = c_ulong -__u_short = c_ushort -__uid_t = c_uint -__uint16_t = c_ushort -__uint32_t = c_uint -__uint64_t = c_ulong -__uint8_t = c_ubyte -__useconds_t = c_uint -#def __warndecl(name,msg): return extern void name (void) # macro -blkcnt64_t = __blkcnt64_t -blkcnt_t = __blkcnt_t -blksize_t = __blksize_t -caddr_t = __caddr_t -clock_t = __clock_t -clockid_t = __clockid_t -daddr_t = __daddr_t -dev_t = __dev_t -fd_mask = __fd_mask -class fd_set(Structure): - pass - -fd_set._fields_ = [ - # /usr/include/gentoo-multilib/amd64/sys/select.h 78 - ('fds_bits', __fd_mask * 16), -] -fsblkcnt64_t = __fsblkcnt64_t -fsblkcnt_t = __fsblkcnt_t -fsfilcnt64_t = __fsfilcnt64_t -fsfilcnt_t = __fsfilcnt_t -fsid_t = __fsid_t -gid_t = __gid_t - -# /usr/include/GL/gl.h 2065 -glActiveTextureARB = platform.createBaseFunction( - 'glActiveTextureARB', dll=platform.GL, resultType=None, - argTypes=[GLenum], - doc='glActiveTextureARB( GLenum(texture) ) -> None', - argNames=('texture',), -) - - -# /usr/include/GL/gl.h 2066 -glClientActiveTextureARB = platform.createBaseFunction( - 'glClientActiveTextureARB', dll=platform.GL, resultType=None, - argTypes=[GLenum], - doc='glClientActiveTextureARB( GLenum(texture) ) -> None', - argNames=('texture',), -) - - -# /usr/include/GL/gl.h 2067 -glMultiTexCoord1dARB = platform.createBaseFunction( - 'glMultiTexCoord1dARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLdouble], - doc='glMultiTexCoord1dARB( GLenum(target), GLdouble(s) ) -> None', - argNames=('target', 's'), -) - - -# /usr/include/GL/gl.h 2068 -glMultiTexCoord1dvARB = platform.createBaseFunction( - 'glMultiTexCoord1dvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLdoubleArray], - doc='glMultiTexCoord1dvARB( GLenum(target), arrays.GLdoubleArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2069 -glMultiTexCoord1fARB = platform.createBaseFunction( - 'glMultiTexCoord1fARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLfloat], - doc='glMultiTexCoord1fARB( GLenum(target), GLfloat(s) ) -> None', - argNames=('target', 's'), -) - - -# /usr/include/GL/gl.h 2070 -glMultiTexCoord1fvARB = platform.createBaseFunction( - 'glMultiTexCoord1fvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLfloatArray], - doc='glMultiTexCoord1fvARB( GLenum(target), arrays.GLfloatArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2071 -glMultiTexCoord1iARB = platform.createBaseFunction( - 'glMultiTexCoord1iARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLint], - doc='glMultiTexCoord1iARB( GLenum(target), GLint(s) ) -> None', - argNames=('target', 's'), -) - - -# /usr/include/GL/gl.h 2072 -glMultiTexCoord1ivARB = platform.createBaseFunction( - 'glMultiTexCoord1ivARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLintArray], - doc='glMultiTexCoord1ivARB( GLenum(target), arrays.GLintArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2073 -glMultiTexCoord1sARB = platform.createBaseFunction( - 'glMultiTexCoord1sARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLshort], - doc='glMultiTexCoord1sARB( GLenum(target), GLshort(s) ) -> None', - argNames=('target', 's'), -) - - -# /usr/include/GL/gl.h 2074 -glMultiTexCoord1svARB = platform.createBaseFunction( - 'glMultiTexCoord1svARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLshortArray], - doc='glMultiTexCoord1svARB( GLenum(target), arrays.GLshortArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2075 -glMultiTexCoord2dARB = platform.createBaseFunction( - 'glMultiTexCoord2dARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLdouble,GLdouble], - doc='glMultiTexCoord2dARB( GLenum(target), GLdouble(s), GLdouble(t) ) -> None', - argNames=('target', 's', 't'), -) - - -# /usr/include/GL/gl.h 2076 -glMultiTexCoord2dvARB = platform.createBaseFunction( - 'glMultiTexCoord2dvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLdoubleArray], - doc='glMultiTexCoord2dvARB( GLenum(target), arrays.GLdoubleArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2077 -glMultiTexCoord2fARB = platform.createBaseFunction( - 'glMultiTexCoord2fARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLfloat,GLfloat], - doc='glMultiTexCoord2fARB( GLenum(target), GLfloat(s), GLfloat(t) ) -> None', - argNames=('target', 's', 't'), -) - - -# /usr/include/GL/gl.h 2078 -glMultiTexCoord2fvARB = platform.createBaseFunction( - 'glMultiTexCoord2fvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLfloatArray], - doc='glMultiTexCoord2fvARB( GLenum(target), arrays.GLfloatArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2079 -glMultiTexCoord2iARB = platform.createBaseFunction( - 'glMultiTexCoord2iARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLint,GLint], - doc='glMultiTexCoord2iARB( GLenum(target), GLint(s), GLint(t) ) -> None', - argNames=('target', 's', 't'), -) - - -# /usr/include/GL/gl.h 2080 -glMultiTexCoord2ivARB = platform.createBaseFunction( - 'glMultiTexCoord2ivARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLintArray], - doc='glMultiTexCoord2ivARB( GLenum(target), arrays.GLintArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2081 -glMultiTexCoord2sARB = platform.createBaseFunction( - 'glMultiTexCoord2sARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLshort,GLshort], - doc='glMultiTexCoord2sARB( GLenum(target), GLshort(s), GLshort(t) ) -> None', - argNames=('target', 's', 't'), -) - - -# /usr/include/GL/gl.h 2082 -glMultiTexCoord2svARB = platform.createBaseFunction( - 'glMultiTexCoord2svARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLshortArray], - doc='glMultiTexCoord2svARB( GLenum(target), arrays.GLshortArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2083 -glMultiTexCoord3dARB = platform.createBaseFunction( - 'glMultiTexCoord3dARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLdouble,GLdouble,GLdouble], - doc='glMultiTexCoord3dARB( GLenum(target), GLdouble(s), GLdouble(t), GLdouble(r) ) -> None', - argNames=('target', 's', 't', 'r'), -) - - -# /usr/include/GL/gl.h 2084 -glMultiTexCoord3dvARB = platform.createBaseFunction( - 'glMultiTexCoord3dvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLdoubleArray], - doc='glMultiTexCoord3dvARB( GLenum(target), arrays.GLdoubleArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2085 -glMultiTexCoord3fARB = platform.createBaseFunction( - 'glMultiTexCoord3fARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLfloat,GLfloat,GLfloat], - doc='glMultiTexCoord3fARB( GLenum(target), GLfloat(s), GLfloat(t), GLfloat(r) ) -> None', - argNames=('target', 's', 't', 'r'), -) - - -# /usr/include/GL/gl.h 2086 -glMultiTexCoord3fvARB = platform.createBaseFunction( - 'glMultiTexCoord3fvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLfloatArray], - doc='glMultiTexCoord3fvARB( GLenum(target), arrays.GLfloatArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2087 -glMultiTexCoord3iARB = platform.createBaseFunction( - 'glMultiTexCoord3iARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLint,GLint,GLint], - doc='glMultiTexCoord3iARB( GLenum(target), GLint(s), GLint(t), GLint(r) ) -> None', - argNames=('target', 's', 't', 'r'), -) - - -# /usr/include/GL/gl.h 2088 -glMultiTexCoord3ivARB = platform.createBaseFunction( - 'glMultiTexCoord3ivARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLintArray], - doc='glMultiTexCoord3ivARB( GLenum(target), arrays.GLintArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2089 -glMultiTexCoord3sARB = platform.createBaseFunction( - 'glMultiTexCoord3sARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLshort,GLshort,GLshort], - doc='glMultiTexCoord3sARB( GLenum(target), GLshort(s), GLshort(t), GLshort(r) ) -> None', - argNames=('target', 's', 't', 'r'), -) - - -# /usr/include/GL/gl.h 2090 -glMultiTexCoord3svARB = platform.createBaseFunction( - 'glMultiTexCoord3svARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLshortArray], - doc='glMultiTexCoord3svARB( GLenum(target), arrays.GLshortArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2091 -glMultiTexCoord4dARB = platform.createBaseFunction( - 'glMultiTexCoord4dARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLdouble,GLdouble,GLdouble,GLdouble], - doc='glMultiTexCoord4dARB( GLenum(target), GLdouble(s), GLdouble(t), GLdouble(r), GLdouble(q) ) -> None', - argNames=('target', 's', 't', 'r', 'q'), -) - - -# /usr/include/GL/gl.h 2092 -glMultiTexCoord4dvARB = platform.createBaseFunction( - 'glMultiTexCoord4dvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLdoubleArray], - doc='glMultiTexCoord4dvARB( GLenum(target), arrays.GLdoubleArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2093 -glMultiTexCoord4fARB = platform.createBaseFunction( - 'glMultiTexCoord4fARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLfloat,GLfloat,GLfloat,GLfloat], - doc='glMultiTexCoord4fARB( GLenum(target), GLfloat(s), GLfloat(t), GLfloat(r), GLfloat(q) ) -> None', - argNames=('target', 's', 't', 'r', 'q'), -) - - -# /usr/include/GL/gl.h 2094 -glMultiTexCoord4fvARB = platform.createBaseFunction( - 'glMultiTexCoord4fvARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLfloatArray], - doc='glMultiTexCoord4fvARB( GLenum(target), arrays.GLfloatArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2095 -glMultiTexCoord4iARB = platform.createBaseFunction( - 'glMultiTexCoord4iARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLint,GLint,GLint,GLint], - doc='glMultiTexCoord4iARB( GLenum(target), GLint(s), GLint(t), GLint(r), GLint(q) ) -> None', - argNames=('target', 's', 't', 'r', 'q'), -) - - -# /usr/include/GL/gl.h 2096 -glMultiTexCoord4ivARB = platform.createBaseFunction( - 'glMultiTexCoord4ivARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLintArray], - doc='glMultiTexCoord4ivARB( GLenum(target), arrays.GLintArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/gl.h 2097 -glMultiTexCoord4sARB = platform.createBaseFunction( - 'glMultiTexCoord4sARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,GLshort,GLshort,GLshort,GLshort], - doc='glMultiTexCoord4sARB( GLenum(target), GLshort(s), GLshort(t), GLshort(r), GLshort(q) ) -> None', - argNames=('target', 's', 't', 'r', 'q'), -) - - -# /usr/include/GL/gl.h 2098 -glMultiTexCoord4svARB = platform.createBaseFunction( - 'glMultiTexCoord4svARB', dll=platform.GL, resultType=None, - argTypes=[GLenum,arrays.GLshortArray], - doc='glMultiTexCoord4svARB( GLenum(target), arrays.GLshortArray(v) ) -> None', - argNames=('target', 'v'), -) - - -# /usr/include/GL/glx.h 333 -glXAllocateMemoryNV = platform.createBaseFunction( - 'glXAllocateMemoryNV', dll=platform.GL, resultType=c_void_p, - argTypes=[GLsizei,GLfloat,GLfloat,GLfloat], - doc='glXAllocateMemoryNV( GLsizei(size), GLfloat(readfreq), GLfloat(writefreq), GLfloat(priority) ) -> c_void_p', - argNames=('size', 'readfreq', 'writefreq', 'priority'), -) - - -# /usr/include/GL/glx.h 465 -glXBindTexImageEXT = platform.createBaseFunction( - 'glXBindTexImageEXT', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable,c_int,POINTER(c_int)], - doc='glXBindTexImageEXT( POINTER(Display)(dpy), GLXDrawable(drawable), c_int(buffer), POINTER(c_int)(attrib_list) ) -> None', - argNames=('dpy', 'drawable', 'buffer', 'attrib_list'), -) - - - -# /usr/include/GL/glx.h 246 -glXChooseFBConfig = platform.createBaseFunction( - 'glXChooseFBConfig', dll=platform.GL, resultType=POINTER(GLXFBConfig), - argTypes=[POINTER(Display),c_int,POINTER(c_int),POINTER(c_int)], - doc='glXChooseFBConfig( POINTER(Display)(dpy), c_int(screen), POINTER(c_int)(attribList), POINTER(c_int)(nitems) ) -> POINTER(GLXFBConfig)', - argNames=('dpy', 'screen', 'attribList', 'nitems'), -) - - -# /usr/include/GL/glx.h 191 -glXChooseVisual = platform.createBaseFunction( - 'glXChooseVisual', dll=platform.GL, resultType=POINTER(XVisualInfo), - argTypes=[POINTER(Display),c_int,POINTER(c_int)], - doc='glXChooseVisual( POINTER(Display)(dpy), c_int(screen), POINTER(c_int)(attribList) ) -> POINTER(XVisualInfo)', - argNames=('dpy', 'screen', 'attribList'), -) - - -# /usr/include/GL/glx.h 202 -glXCopyContext = platform.createBaseFunction( - 'glXCopyContext', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXContext,GLXContext,c_ulong], - doc='glXCopyContext( POINTER(Display)(dpy), GLXContext(src), GLXContext(dst), c_ulong(mask) ) -> None', - argNames=('dpy', 'src', 'dst', 'mask'), -) - - -# /usr/include/GL/glx.h 194 -glXCreateContext = platform.createBaseFunction( - 'glXCreateContext', dll=platform.GL, resultType=GLXContext, - argTypes=[POINTER(Display),POINTER(XVisualInfo),GLXContext,c_int], - doc='glXCreateContext( POINTER(Display)(dpy), POINTER(XVisualInfo)(vis), GLXContext(shareList), c_int(direct) ) -> GLXContext', - argNames=('dpy', 'vis', 'shareList', 'direct'), -) - - -# /usr/include/GL/glx.h 207 -glXCreateGLXPixmap = platform.createBaseFunction( - 'glXCreateGLXPixmap', dll=platform.GL, resultType=GLXPixmap, - argTypes=[POINTER(Display),POINTER(XVisualInfo),Pixmap], - doc='glXCreateGLXPixmap( POINTER(Display)(dpy), POINTER(XVisualInfo)(visual), Pixmap(pixmap) ) -> GLXPixmap', - argNames=('dpy', 'visual', 'pixmap'), -) - - -# /usr/include/GL/glx.h 277 -glXCreateNewContext = platform.createBaseFunction( - 'glXCreateNewContext', dll=platform.GL, resultType=GLXContext, - argTypes=[POINTER(Display),GLXFBConfig,c_int,GLXContext,c_int], - doc='glXCreateNewContext( POINTER(Display)(dpy), GLXFBConfig(config), c_int(renderType), GLXContext(shareList), c_int(direct) ) -> GLXContext', - argNames=('dpy', 'config', 'renderType', 'shareList', 'direct'), -) - - -# /usr/include/GL/glx.h 268 -glXCreatePbuffer = platform.createBaseFunction( - 'glXCreatePbuffer', dll=platform.GL, resultType=GLXPbuffer, - argTypes=[POINTER(Display),GLXFBConfig,POINTER(c_int)], - doc='glXCreatePbuffer( POINTER(Display)(dpy), GLXFBConfig(config), POINTER(c_int)(attribList) ) -> GLXPbuffer', - argNames=('dpy', 'config', 'attribList'), -) - - -# /usr/include/GL/glx.h 263 -glXCreatePixmap = platform.createBaseFunction( - 'glXCreatePixmap', dll=platform.GL, resultType=GLXPixmap, - argTypes=[POINTER(Display),GLXFBConfig,Pixmap,POINTER(c_int)], - doc='glXCreatePixmap( POINTER(Display)(dpy), GLXFBConfig(config), Pixmap(pixmap), POINTER(c_int)(attribList) ) -> GLXPixmap', - argNames=('dpy', 'config', 'pixmap', 'attribList'), -) - - -# /usr/include/GL/glx.h 258 -glXCreateWindow = platform.createBaseFunction( - 'glXCreateWindow', dll=platform.GL, resultType=GLXWindow, - argTypes=[POINTER(Display),GLXFBConfig,Window,POINTER(c_int)], - doc='glXCreateWindow( POINTER(Display)(dpy), GLXFBConfig(config), Window(win), POINTER(c_int)(attribList) ) -> GLXWindow', - argNames=('dpy', 'config', 'win', 'attribList'), -) - - -# /usr/include/GL/glx.h 196 -glXDestroyContext = platform.createBaseFunction( - 'glXDestroyContext', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXContext], - doc='glXDestroyContext( POINTER(Display)(dpy), GLXContext(ctx) ) -> None', - argNames=('dpy', 'ctx'), -) - - -# /usr/include/GL/glx.h 209 -glXDestroyGLXPixmap = platform.createBaseFunction( - 'glXDestroyGLXPixmap', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXPixmap], - doc='glXDestroyGLXPixmap( POINTER(Display)(dpy), GLXPixmap(pixmap) ) -> None', - argNames=('dpy', 'pixmap'), -) - - -# /usr/include/GL/glx.h 270 -glXDestroyPbuffer = platform.createBaseFunction( - 'glXDestroyPbuffer', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXPbuffer], - doc='glXDestroyPbuffer( POINTER(Display)(dpy), GLXPbuffer(pbuf) ) -> None', - argNames=('dpy', 'pbuf'), -) - - -# /usr/include/GL/glx.h 265 -glXDestroyPixmap = platform.createBaseFunction( - 'glXDestroyPixmap', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXPixmap], - doc='glXDestroyPixmap( POINTER(Display)(dpy), GLXPixmap(pixmap) ) -> None', - argNames=('dpy', 'pixmap'), -) - - -# /usr/include/GL/glx.h 260 -glXDestroyWindow = platform.createBaseFunction( - 'glXDestroyWindow', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXWindow], - doc='glXDestroyWindow( POINTER(Display)(dpy), GLXWindow(window) ) -> None', - argNames=('dpy', 'window'), -) - - -# /usr/include/GL/glx.h 334 -glXFreeMemoryNV = platform.createBaseFunction( - 'glXFreeMemoryNV', dll=platform.GL, resultType=None, - argTypes=[POINTER(GLvoid)], - doc='glXFreeMemoryNV( POINTER(GLvoid)(pointer) ) -> None', - argNames=('pointer',), -) - - -# /usr/include/GL/glx.h 237 -glXGetClientString = platform.createBaseFunction( - 'glXGetClientString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),c_int], - doc='glXGetClientString( POINTER(Display)(dpy), c_int(name) ) -> STRING', - argNames=('dpy', 'name'), -) - - -# /usr/include/GL/glx.h 218 -glXGetConfig = platform.createBaseFunction( - 'glXGetConfig', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(XVisualInfo),c_int,POINTER(c_int)], - doc='glXGetConfig( POINTER(Display)(dpy), POINTER(XVisualInfo)(visual), c_int(attrib), POINTER(c_int)(value) ) -> c_int', - argNames=('dpy', 'visual', 'attrib', 'value'), -) - - -# /usr/include/GL/glx.h 220 -glXGetCurrentContext = platform.createBaseFunction( - 'glXGetCurrentContext', dll=platform.GL, resultType=GLXContext, - argTypes=[], - doc='glXGetCurrentContext( ) -> GLXContext', - argNames=(), -) - - -# /usr/include/GL/glx.h 241 -glXGetCurrentDisplay = platform.createBaseFunction( - 'glXGetCurrentDisplay', dll=platform.GL, resultType=POINTER(Display), - argTypes=[], - doc='glXGetCurrentDisplay( ) -> POINTER(Display)', - argNames=(), -) - - -# /usr/include/GL/glx.h 222 -glXGetCurrentDrawable = platform.createBaseFunction( - 'glXGetCurrentDrawable', dll=platform.GL, resultType=GLXDrawable, - argTypes=[], - doc='glXGetCurrentDrawable( ) -> GLXDrawable', - argNames=(), -) - - -# /usr/include/GL/glx.h 282 -glXGetCurrentReadDrawable = platform.createBaseFunction( - 'glXGetCurrentReadDrawable', dll=platform.GL, resultType=GLXDrawable, - argTypes=[], - doc='glXGetCurrentReadDrawable( ) -> GLXDrawable', - argNames=(), -) - - -# /usr/include/GL/glx.h 249 -glXGetFBConfigAttrib = platform.createBaseFunction( - 'glXGetFBConfigAttrib', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GLXFBConfig,c_int,POINTER(c_int)], - doc='glXGetFBConfigAttrib( POINTER(Display)(dpy), GLXFBConfig(config), c_int(attribute), POINTER(c_int)(value) ) -> c_int', - argNames=('dpy', 'config', 'attribute', 'value'), -) - - -# /usr/include/GL/glx.h 252 -glXGetFBConfigs = platform.createBaseFunction( - 'glXGetFBConfigs', dll=platform.GL, resultType=POINTER(GLXFBConfig), - argTypes=[POINTER(Display),c_int,POINTER(c_int)], - doc='glXGetFBConfigs( POINTER(Display)(dpy), c_int(screen), POINTER(c_int)(nelements) ) -> POINTER(GLXFBConfig)', - argNames=('dpy', 'screen', 'nelements'), -) - - -# /usr/include/GL/glx.h 295 -glXGetProcAddress = platform.createBaseFunction( - 'glXGetProcAddress', dll=platform.GL, resultType=CFUNCTYPE(None), - argTypes=[arrays.GLubyteArray], - doc='glXGetProcAddress( arrays.GLubyteArray(procname) ) -> CFUNCTYPE(None)', - argNames=('procname',), -) - - -# /usr/include/GL/glx.h 291 -glXGetSelectedEvent = platform.createBaseFunction( - 'glXGetSelectedEvent', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable,POINTER(c_ulong)], - doc='glXGetSelectedEvent( POINTER(Display)(dpy), GLXDrawable(drawable), POINTER(c_ulong)(mask) ) -> None', - argNames=('dpy', 'drawable', 'mask'), -) - - -# /usr/include/GL/glx.h 255 -glXGetVisualFromFBConfig = platform.createBaseFunction( - 'glXGetVisualFromFBConfig', dll=platform.GL, resultType=POINTER(XVisualInfo), - argTypes=[POINTER(Display),GLXFBConfig], - doc='glXGetVisualFromFBConfig( POINTER(Display)(dpy), GLXFBConfig(config) ) -> POINTER(XVisualInfo)', - argNames=('dpy', 'config'), -) - - -# /usr/include/GL/glx.h 215 -glXIsDirect = platform.createBaseFunction( - 'glXIsDirect', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GLXContext], - doc='glXIsDirect( POINTER(Display)(dpy), GLXContext(ctx) ) -> c_int', - argNames=('dpy', 'ctx'), -) - - -# /usr/include/GL/glx.h 280 -glXMakeContextCurrent = platform.createBaseFunction( - 'glXMakeContextCurrent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GLXDrawable,GLXDrawable,GLXContext], - doc='glXMakeContextCurrent( POINTER(Display)(dpy), GLXDrawable(draw), GLXDrawable(read), GLXContext(ctx) ) -> c_int', - argNames=('dpy', 'draw', 'read', 'ctx'), -) - - -# /usr/include/GL/glx.h 199 -glXMakeCurrent = platform.createBaseFunction( - 'glXMakeCurrent', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GLXDrawable,GLXContext], - doc='glXMakeCurrent( POINTER(Display)(dpy), GLXDrawable(drawable), GLXContext(ctx) ) -> c_int', - argNames=('dpy', 'drawable', 'ctx'), -) - - -# /usr/include/GL/glx.h 285 -glXQueryContext = platform.createBaseFunction( - 'glXQueryContext', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),GLXContext,c_int,POINTER(c_int)], - doc='glXQueryContext( POINTER(Display)(dpy), GLXContext(ctx), c_int(attribute), POINTER(c_int)(value) ) -> c_int', - argNames=('dpy', 'ctx', 'attribute', 'value'), -) - - -# /usr/include/GL/glx.h 273 -glXQueryDrawable = platform.createBaseFunction( - 'glXQueryDrawable', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable,c_int,POINTER(c_uint)], - doc='glXQueryDrawable( POINTER(Display)(dpy), GLXDrawable(draw), c_int(attribute), POINTER(c_uint)(value) ) -> None', - argNames=('dpy', 'draw', 'attribute', 'value'), -) - - -# /usr/include/GL/glx.h 211 -glXQueryExtension = platform.createBaseFunction( - 'glXQueryExtension', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int)], - doc='glXQueryExtension( POINTER(Display)(dpy), POINTER(c_int)(errorb), POINTER(c_int)(event) ) -> c_int', - argNames=('dpy', 'errorb', 'event'), -) - - -# /usr/include/GL/glx.h 233 -glXQueryExtensionsString = platform.createBaseFunction( - 'glXQueryExtensionsString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),c_int], - doc='glXQueryExtensionsString( POINTER(Display)(dpy), c_int(screen) ) -> STRING', - argNames=('dpy', 'screen'), -) - - -# /usr/include/GL/glx.h 235 -glXQueryServerString = platform.createBaseFunction( - 'glXQueryServerString', dll=platform.GL, resultType=STRING, - argTypes=[POINTER(Display),c_int,c_int], - doc='glXQueryServerString( POINTER(Display)(dpy), c_int(screen), c_int(name) ) -> STRING', - argNames=('dpy', 'screen', 'name'), -) - - -# /usr/include/GL/glx.h 213 -glXQueryVersion = platform.createBaseFunction( - 'glXQueryVersion', dll=platform.GL, resultType=c_int, - argTypes=[POINTER(Display),POINTER(c_int),POINTER(c_int)], - doc='glXQueryVersion( POINTER(Display)(dpy), POINTER(c_int)(maj), POINTER(c_int)(min) ) -> c_int', - argNames=('dpy', 'maj', 'min'), -) - - -# /usr/include/GL/glx.h 466 -glXReleaseTexImageEXT = platform.createBaseFunction( - 'glXReleaseTexImageEXT', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable,c_int], - doc='glXReleaseTexImageEXT( POINTER(Display)(dpy), GLXDrawable(drawable), c_int(buffer) ) -> None', - argNames=('dpy', 'drawable', 'buffer'), -) - - -# /usr/include/GL/glx.h 288 -glXSelectEvent = platform.createBaseFunction( - 'glXSelectEvent', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable,c_ulong], - doc='glXSelectEvent( POINTER(Display)(dpy), GLXDrawable(drawable), c_ulong(mask) ) -> None', - argNames=('dpy', 'drawable', 'mask'), -) - - -# /usr/include/GL/glx.h 204 -glXSwapBuffers = platform.createBaseFunction( - 'glXSwapBuffers', dll=platform.GL, resultType=None, - argTypes=[POINTER(Display),GLXDrawable], - doc='glXSwapBuffers( POINTER(Display)(dpy), GLXDrawable(drawable) ) -> None', - argNames=('dpy', 'drawable'), -) - - -# /usr/include/GL/glx.h 228 -glXUseXFont = platform.createBaseFunction( - 'glXUseXFont', dll=platform.GL, resultType=None, - argTypes=[Font,c_int,c_int,c_int], - doc='glXUseXFont( Font(font), c_int(first), c_int(count), c_int(list) ) -> None', - argNames=('font', 'first', 'count', 'list'), -) - - -# /usr/include/GL/glx.h 224 -glXWaitGL = platform.createBaseFunction( - 'glXWaitGL', dll=platform.GL, resultType=None, - argTypes=[], - doc='glXWaitGL( ) -> None', - argNames=(), -) - - -# /usr/include/GL/glx.h 226 -glXWaitX = platform.createBaseFunction( - 'glXWaitX', dll=platform.GL, resultType=None, - argTypes=[], - doc='glXWaitX( ) -> None', - argNames=(), -) - - -# /usr/include/gentoo-multilib/amd64/sys/sysmacros.h 43 -gnu_dev_major = platform.createBaseFunction( - 'gnu_dev_major', dll=platform.GL, resultType=c_uint, - argTypes=[c_ulonglong], - doc='gnu_dev_major( c_ulonglong(__dev) ) -> c_uint', - argNames=('__dev',), -) - - -# /usr/include/gentoo-multilib/amd64/sys/sysmacros.h 55 -gnu_dev_makedev = platform.createBaseFunction( - 'gnu_dev_makedev', dll=platform.GL, resultType=c_ulonglong, - argTypes=[c_uint,c_uint], - doc='gnu_dev_makedev( c_uint(__major), c_uint(__minor) ) -> c_ulonglong', - argNames=('__major', '__minor'), -) - - -# /usr/include/gentoo-multilib/amd64/sys/sysmacros.h 49 -gnu_dev_minor = platform.createBaseFunction( - 'gnu_dev_minor', dll=platform.GL, resultType=c_uint, - argTypes=[c_ulonglong], - doc='gnu_dev_minor( c_ulonglong(__dev) ) -> c_uint', - argNames=('__dev',), -) - -id_t = __id_t -intmax_t = c_long - -# /usr/include/gentoo-multilib/amd64/inttypes.h 298 -imaxabs = platform.createBaseFunction( - 'imaxabs', dll=platform.GL, resultType=intmax_t, - argTypes=[intmax_t], - doc='imaxabs( intmax_t(__n) ) -> intmax_t', - argNames=('__n',), -) - -class imaxdiv_t(Structure): - pass -imaxdiv_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/inttypes.h 283 - ('quot', c_long), - ('rem', c_long), -] - -# /usr/include/gentoo-multilib/amd64/inttypes.h 302 -imaxdiv = platform.createBaseFunction( - 'imaxdiv', dll=platform.GL, resultType=imaxdiv_t, - argTypes=[intmax_t,intmax_t], - doc='imaxdiv( intmax_t(__numer), intmax_t(__denom) ) -> imaxdiv_t', - argNames=('__numer', '__denom'), -) - -ino64_t = __ino64_t -ino_t = __ino_t -int16_t = c_short -int32_t = c_int -int64_t = c_long -int8_t = c_byte -int_fast16_t = c_long -int_fast32_t = c_long -int_fast64_t = c_long -int_fast8_t = c_byte -int_least16_t = c_short -int_least32_t = c_int -int_least64_t = c_long -int_least8_t = c_byte -intptr_t = c_long -key_t = __key_t -loff_t = __loff_t -def major(dev): return gnu_dev_major (dev) # macro -def makedev(maj,min): return gnu_dev_makedev (maj, min) # macro -def minor(dev): return gnu_dev_minor (dev) # macro -mode_t = __mode_t -nlink_t = __nlink_t -off64_t = __off64_t -off_t = __off_t -def offsetof(TYPE,MEMBER): return __builtin_offsetof (TYPE, MEMBER) # macro -pid_t = __pid_t -class timespec(Structure): - pass -timespec._fields_ = [ - # /usr/include/gentoo-multilib/amd64/time.h 122 - ('tv_sec', __time_t), - ('tv_nsec', c_long), -] -# /usr/include/gentoo-multilib/amd64/sys/select.h 125 -pselect = platform.createBaseFunction( - 'pselect', dll=platform.GL, resultType=c_int, - argTypes=[c_int,POINTER(fd_set),POINTER(fd_set),POINTER(fd_set),POINTER(timespec),POINTER(__sigset_t)], - doc='pselect( c_int(__nfds), POINTER(fd_set)(__readfds), POINTER(fd_set)(__writefds), POINTER(fd_set)(__exceptfds), POINTER(timespec)(__timeout), POINTER(__sigset_t)(__sigmask) ) -> c_int', - argNames=('__nfds', '__readfds', '__writefds', '__exceptfds', '__timeout', '__sigmask'), -) - -class pthread_attr_t(Union): - pass - -pthread_attr_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 57 - ('__size', c_char * 56), - ('__align', c_long), -] -class pthread_barrier_t(Union): - pass -pthread_barrier_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 207 - ('__size', c_char * 32), - ('__align', c_long), -] -class pthread_barrierattr_t(Union): - pass - -pthread_barrierattr_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 213 - ('__size', c_char * 4), - ('__align', c_int), -] -class pthread_cond_t(Union): - pass - - -pthread_cond_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 130 - ('__data', N14pthread_cond_t3DOT_7E), - ('__size', c_char * 48), - ('__align', c_longlong), -] -class pthread_condattr_t(Union): - pass -pthread_condattr_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 136 - ('__size', c_char * 4), - ('__align', c_int), -] -pthread_key_t = c_uint -class pthread_mutex_t(Union): - pass - -pthread_mutex_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 104 - ('__data', __pthread_mutex_s), - ('__size', c_char * 40), - ('__align', c_long), -] -class pthread_mutexattr_t(Union): - pass -pthread_mutexattr_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 110 - ('__size', c_char * 4), - ('__align', c_int), -] -pthread_once_t = c_int -class pthread_rwlock_t(Union): - pass -pthread_rwlock_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 186 - ('__data', N16pthread_rwlock_t4DOT_10E), - ('__size', c_char * 56), - ('__align', c_long), -] -class pthread_rwlockattr_t(Union): - pass - -pthread_rwlockattr_t._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/pthreadtypes.h 192 - ('__size', c_char * 8), - ('__align', c_long), -] - -pthread_spinlock_t = c_int -pthread_t = c_ulong -ptrdiff_t = c_long -quad_t = __quad_t -register_t = c_long -class timeval(Structure): - pass -# /usr/include/gentoo-multilib/amd64/sys/select.h 112 -select = platform.createBaseFunction( - 'select', dll=platform.GL, resultType=c_int, - argTypes=[c_int,POINTER(fd_set),POINTER(fd_set),POINTER(fd_set),POINTER(timeval)], - doc='select( c_int(__nfds), POINTER(fd_set)(__readfds), POINTER(fd_set)(__writefds), POINTER(fd_set)(__exceptfds), POINTER(timeval)(__timeout) ) -> c_int', - argNames=('__nfds', '__readfds', '__writefds', '__exceptfds', '__timeout'), -) - -sigset_t = __sigset_t -ssize_t = __ssize_t - -# /usr/include/gentoo-multilib/amd64/inttypes.h 306 -strtoimax = platform.createBaseFunction( - 'strtoimax', dll=platform.GL, resultType=intmax_t, - argTypes=[STRING,POINTER(STRING),c_int], - doc='strtoimax( STRING(__nptr), POINTER(STRING)(__endptr), c_int(__base) ) -> intmax_t', - argNames=('__nptr', '__endptr', '__base'), -) - -uintmax_t = c_ulong - -# /usr/include/gentoo-multilib/amd64/inttypes.h 310 -strtoumax = platform.createBaseFunction( - 'strtoumax', dll=platform.GL, resultType=uintmax_t, - argTypes=[STRING,POINTER(STRING),c_int], - doc='strtoumax( STRING(__nptr), POINTER(STRING)(__endptr), c_int(__base) ) -> uintmax_t', - argNames=('__nptr', '__endptr', '__base'), -) - -suseconds_t = __suseconds_t -time_t = __time_t -timer_t = __timer_t -timeval._fields_ = [ - # /usr/include/gentoo-multilib/amd64/bits/time.h 70 - ('tv_sec', __time_t), - ('tv_usec', __suseconds_t), -] -u_char = __u_char -u_int = __u_int -u_int16_t = c_ushort -u_int32_t = c_uint -u_int64_t = c_ulong -u_int8_t = c_ubyte -u_long = __u_long -u_quad_t = __u_quad_t -u_short = __u_short -uid_t = __uid_t -uint = c_uint -uint16_t = c_ushort -uint32_t = c_uint -uint64_t = c_ulong -uint8_t = c_ubyte -uint_fast16_t = c_ulong -uint_fast32_t = c_ulong -uint_fast64_t = c_ulong -uint_fast8_t = c_ubyte -uint_least16_t = c_ushort -uint_least32_t = c_uint -uint_least64_t = c_ulong -uint_least8_t = c_ubyte -uintptr_t = c_ulong -ulong = c_ulong -useconds_t = __useconds_t -ushort = c_ushort - -# /usr/include/gentoo-multilib/amd64/inttypes.h 315 -wcstoimax = platform.createBaseFunction( - 'wcstoimax', dll=platform.GL, resultType=intmax_t, - argTypes=[WSTRING,POINTER(WSTRING),c_int], - doc='wcstoimax( WSTRING(__nptr), POINTER(WSTRING)(__endptr), c_int(__base) ) -> intmax_t', - argNames=('__nptr', '__endptr', '__base'), -) - - -# /usr/include/gentoo-multilib/amd64/inttypes.h 320 -wcstoumax = platform.createBaseFunction( - 'wcstoumax', dll=platform.GL, resultType=uintmax_t, - argTypes=[WSTRING,POINTER(WSTRING),c_int], - doc='wcstoumax( WSTRING(__nptr), POINTER(WSTRING)(__endptr), c_int(__base) ) -> uintmax_t', - argNames=('__nptr', '__endptr', '__base'), -) - -__all__ = [ - 'Atom', - 'BIG_ENDIAN', - 'BYTE_ORDER', - 'CWX', - 'CWY', - 'Colormap', - 'Cursor', - 'DefaultScreenOfDisplay', - 'Depth', - 'Display', - 'Drawable', - 'FD_CLR', - 'FD_ISSET', - 'FD_SET', - 'FD_SETSIZE', - 'FD_ZERO', - 'FUNCPROTO', - 'Font', - 'GC', - 'GContext', - 'GLXBufferClobberEventSGIX', - 'GLXContext', - 'GLXContextID', - 'GLXDrawable', - 'GLXEvent', - 'GLXFBConfig', - 'GLXFBConfigID', - 'GLXFBConfigIDSGIX', - 'GLXFBConfigSGIX', - 'GLXHyperpipeConfigSGIX', - 'GLXHyperpipeNetworkSGIX', - 'GLXPbuffer', - 'GLXPbufferClobberEvent', - 'GLXPbufferSGIX', - 'GLXPipeRect', - 'GLXPipeRectLimits', - 'GLXPixmap', - 'GLXVideoSourceSGIX', - 'GLXWindow', - 'GLX_3DFX_FULLSCREEN_MODE_MESA', - 'GLX_3DFX_WINDOW_MODE_MESA', - 'GLX_ACCUM_ALPHA_SIZE', - 'GLX_ACCUM_BLUE_SIZE', - 'GLX_ACCUM_BUFFER_BIT', - 'GLX_ACCUM_BUFFER_BIT_SGIX', - 'GLX_ACCUM_GREEN_SIZE', - 'GLX_ACCUM_RED_SIZE', - 'GLX_ALPHA_SIZE', - 'GLX_AUX0_EXT', - 'GLX_AUX1_EXT', - 'GLX_AUX2_EXT', - 'GLX_AUX3_EXT', - 'GLX_AUX4_EXT', - 'GLX_AUX5_EXT', - 'GLX_AUX6_EXT', - 'GLX_AUX7_EXT', - 'GLX_AUX8_EXT', - 'GLX_AUX9_EXT', - 'GLX_AUX_BUFFERS', - 'GLX_AUX_BUFFERS_BIT', - 'GLX_AUX_BUFFERS_BIT_SGIX', - 'GLX_BACK_EXT', - 'GLX_BACK_LEFT_BUFFER_BIT', - 'GLX_BACK_LEFT_BUFFER_BIT_SGIX', - 'GLX_BACK_LEFT_EXT', - 'GLX_BACK_RIGHT_BUFFER_BIT', - 'GLX_BACK_RIGHT_BUFFER_BIT_SGIX', - 'GLX_BACK_RIGHT_EXT', - 'GLX_BAD_ATTRIBUTE', - 'GLX_BAD_CONTEXT', - 'GLX_BAD_ENUM', - 'GLX_BAD_HYPERPIPE_CONFIG_SGIX', - 'GLX_BAD_HYPERPIPE_SGIX', - 'GLX_BAD_SCREEN', - 'GLX_BAD_VALUE', - 'GLX_BAD_VISUAL', - 'GLX_BIND_TO_MIPMAP_TEXTURE_EXT', - 'GLX_BIND_TO_TEXTURE_RGBA_EXT', - 'GLX_BIND_TO_TEXTURE_RGB_EXT', - 'GLX_BIND_TO_TEXTURE_TARGETS_EXT', - 'GLX_BLENDED_RGBA_SGIS', - 'GLX_BLUE_SIZE', - 'GLX_BUFFER_CLOBBER_MASK_SGIX', - 'GLX_BUFFER_SIZE', - 'GLX_COLOR_INDEX_BIT', - 'GLX_COLOR_INDEX_BIT_SGIX', - 'GLX_COLOR_INDEX_TYPE', - 'GLX_COLOR_INDEX_TYPE_SGIX', - 'GLX_CONFIG_CAVEAT', - 'GLX_DAMAGED', - 'GLX_DAMAGED_SGIX', - 'GLX_DEPTH_BUFFER_BIT', - 'GLX_DEPTH_BUFFER_BIT_SGIX', - 'GLX_DEPTH_SIZE', - 'GLX_DIGITAL_MEDIA_PBUFFER_SGIX', - 'GLX_DIRECT_COLOR', - 'GLX_DIRECT_COLOR_EXT', - 'GLX_DONT_CARE', - 'GLX_DOUBLEBUFFER', - 'GLX_DRAWABLE_TYPE', - 'GLX_DRAWABLE_TYPE_SGIX', - 'GLX_EVENT_MASK', - 'GLX_EVENT_MASK_SGIX', - 'GLX_EXTENSIONS', - 'GLX_EXTENSION_NAME', - 'GLX_FBCONFIG_ID', - 'GLX_FBCONFIG_ID_SGIX', - 'GLX_FLOAT_COMPONENTS_NV', - 'GLX_FRONT_EXT', - 'GLX_FRONT_LEFT_BUFFER_BIT', - 'GLX_FRONT_LEFT_BUFFER_BIT_SGIX', - 'GLX_FRONT_LEFT_EXT', - 'GLX_FRONT_RIGHT_BUFFER_BIT', - 'GLX_FRONT_RIGHT_BUFFER_BIT_SGIX', - 'GLX_FRONT_RIGHT_EXT', - 'GLX_GLXEXT_VERSION', - 'GLX_GRAY_SCALE', - 'GLX_GRAY_SCALE_EXT', - 'GLX_GREEN_SIZE', - 'GLX_HEIGHT', - 'GLX_HEIGHT_SGIX', - 'GLX_HYPERPIPE_DISPLAY_PIPE_SGIX', - 'GLX_HYPERPIPE_ID_SGIX', - 'GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX', - 'GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX', - 'GLX_HYPERPIPE_RENDER_PIPE_SGIX', - 'GLX_HYPERPIPE_STEREO_SGIX', - 'GLX_LARGEST_PBUFFER', - 'GLX_LARGEST_PBUFFER_SGIX', - 'GLX_LEVEL', - 'GLX_MAX_PBUFFER_HEIGHT', - 'GLX_MAX_PBUFFER_HEIGHT_SGIX', - 'GLX_MAX_PBUFFER_PIXELS', - 'GLX_MAX_PBUFFER_PIXELS_SGIX', - 'GLX_MAX_PBUFFER_WIDTH', - 'GLX_MAX_PBUFFER_WIDTH_SGIX', - 'GLX_MIPMAP_TEXTURE_EXT', - 'GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS', - 'GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS', - 'GLX_NONE', - 'GLX_NONE_EXT', - 'GLX_NON_CONFORMANT_CONFIG', - 'GLX_NON_CONFORMANT_VISUAL_EXT', - 'GLX_NO_EXTENSION', - 'GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX', - 'GLX_OPTIMAL_PBUFFER_WIDTH_SGIX', - 'GLX_PBUFFER', - 'GLX_PBUFFER_BIT', - 'GLX_PBUFFER_BIT_SGIX', - 'GLX_PBUFFER_CLOBBER_MASK', - 'GLX_PBUFFER_HEIGHT', - 'GLX_PBUFFER_SGIX', - 'GLX_PBUFFER_WIDTH', - 'GLX_PIPE_RECT_LIMITS_SGIX', - 'GLX_PIPE_RECT_SGIX', - 'GLX_PIXMAP_BIT', - 'GLX_PIXMAP_BIT_SGIX', - 'GLX_PRESERVED_CONTENTS', - 'GLX_PRESERVED_CONTENTS_SGIX', - 'GLX_PSEUDO_COLOR', - 'GLX_PSEUDO_COLOR_EXT', - 'GLX_RED_SIZE', - 'GLX_RENDER_TYPE', - 'GLX_RENDER_TYPE_SGIX', - 'GLX_RGBA', - 'GLX_RGBA_BIT', - 'GLX_RGBA_BIT_SGIX', - 'GLX_RGBA_FLOAT_BIT_ARB', - 'GLX_RGBA_FLOAT_TYPE_ARB', - 'GLX_RGBA_TYPE', - 'GLX_RGBA_TYPE_SGIX', - 'GLX_SAMPLES', - 'GLX_SAMPLES_3DFX', - 'GLX_SAMPLES_ARB', - 'GLX_SAMPLES_SGIS', - 'GLX_SAMPLE_BUFFERS', - 'GLX_SAMPLE_BUFFERS_3DFX', - 'GLX_SAMPLE_BUFFERS_ARB', - 'GLX_SAMPLE_BUFFERS_BIT_SGIX', - 'GLX_SAMPLE_BUFFERS_SGIS', - 'GLX_SAVED', - 'GLX_SAVED_SGIX', - 'GLX_SCREEN', - 'GLX_SCREEN_EXT', - 'GLX_SHARE_CONTEXT_EXT', - 'GLX_SLOW_CONFIG', - 'GLX_SLOW_VISUAL_EXT', - 'GLX_STATIC_COLOR', - 'GLX_STATIC_COLOR_EXT', - 'GLX_STATIC_GRAY', - 'GLX_STATIC_GRAY_EXT', - 'GLX_STENCIL_BUFFER_BIT', - 'GLX_STENCIL_BUFFER_BIT_SGIX', - 'GLX_STENCIL_SIZE', - 'GLX_STEREO', - 'GLX_SWAP_COPY_OML', - 'GLX_SWAP_EXCHANGE_OML', - 'GLX_SWAP_METHOD_OML', - 'GLX_SWAP_UNDEFINED_OML', - 'GLX_SYNC_FRAME_SGIX', - 'GLX_SYNC_SWAP_SGIX', - 'GLX_TEXTURE_1D_BIT_EXT', - 'GLX_TEXTURE_1D_EXT', - 'GLX_TEXTURE_2D_BIT_EXT', - 'GLX_TEXTURE_2D_EXT', - 'GLX_TEXTURE_FORMAT_EXT', - 'GLX_TEXTURE_FORMAT_NONE_EXT', - 'GLX_TEXTURE_FORMAT_RGBA_EXT', - 'GLX_TEXTURE_FORMAT_RGB_EXT', - 'GLX_TEXTURE_RECTANGLE_BIT_EXT', - 'GLX_TEXTURE_RECTANGLE_EXT', - 'GLX_TEXTURE_TARGET_EXT', - 'GLX_TRANSPARENT_ALPHA_VALUE', - 'GLX_TRANSPARENT_ALPHA_VALUE_EXT', - 'GLX_TRANSPARENT_BLUE_VALUE', - 'GLX_TRANSPARENT_BLUE_VALUE_EXT', - 'GLX_TRANSPARENT_GREEN_VALUE', - 'GLX_TRANSPARENT_GREEN_VALUE_EXT', - 'GLX_TRANSPARENT_INDEX', - 'GLX_TRANSPARENT_INDEX_EXT', - 'GLX_TRANSPARENT_INDEX_VALUE', - 'GLX_TRANSPARENT_INDEX_VALUE_EXT', - 'GLX_TRANSPARENT_RED_VALUE', - 'GLX_TRANSPARENT_RED_VALUE_EXT', - 'GLX_TRANSPARENT_RGB', - 'GLX_TRANSPARENT_RGB_EXT', - 'GLX_TRANSPARENT_TYPE', - 'GLX_TRANSPARENT_TYPE_EXT', - 'GLX_TRUE_COLOR', - 'GLX_TRUE_COLOR_EXT', - 'GLX_USE_GL', - 'GLX_VENDOR', - 'GLX_VERSION', - 'GLX_VERSION_1_1', - 'GLX_VERSION_1_2', - 'GLX_VERSION_1_3', - 'GLX_VERSION_1_4', - 'GLX_VISUAL_CAVEAT_EXT', - 'GLX_VISUAL_ID', - 'GLX_VISUAL_ID_EXT', - 'GLX_VISUAL_SELECT_GROUP_SGIX', - 'GLX_WIDTH', - 'GLX_WIDTH_SGIX', - 'GLX_WINDOW', - 'GLX_WINDOW_BIT', - 'GLX_WINDOW_BIT_SGIX', - 'GLX_WINDOW_SGIX', - 'GLX_X_RENDERABLE', - 'GLX_X_RENDERABLE_SGIX', - 'GLX_X_VISUAL_TYPE', - 'GLX_X_VISUAL_TYPE_EXT', - 'GLX_Y_INVERTED_EXT', - 'GL_ALL_CLIENT_ATTRIB_BITS', - 'GL_ALPHA_BLEND_EQUATION_ATI', - 'GL_BYTE', - 'GL_DEBUG_ASSERT_MESA', - 'GL_DEBUG_OBJECT_MESA', - 'GL_DEBUG_PRINT_MESA', - 'GL_DEPTH_STENCIL_MESA', - 'GL_DOUBLE', - 'GL_FALSE', - 'GL_FLOAT', - 'GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA', - 'GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA', - 'GL_FRAGMENT_PROGRAM_CALLBACK_MESA', - 'GL_FRAGMENT_PROGRAM_POSITION_MESA', - 'GL_INT', - 'GL_SHORT', - 'GL_TRACE_ALL_BITS_MESA', - 'GL_TRACE_ARRAYS_BIT_MESA', - 'GL_TRACE_ERRORS_BIT_MESA', - 'GL_TRACE_MASK_MESA', - 'GL_TRACE_NAME_MESA', - 'GL_TRACE_OPERATIONS_BIT_MESA', - 'GL_TRACE_PIXELS_BIT_MESA', - 'GL_TRACE_PRIMITIVES_BIT_MESA', - 'GL_TRACE_TEXTURES_BIT_MESA', - 'GL_TRUE', - 'GL_UNSIGNED_BYTE', - 'GL_UNSIGNED_INT', - 'GL_UNSIGNED_INT_24_8_MESA', - 'GL_UNSIGNED_INT_8_24_REV_MESA', - 'GL_UNSIGNED_SHORT', - 'GL_UNSIGNED_SHORT_15_1_MESA', - 'GL_UNSIGNED_SHORT_1_15_REV_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA', - 'GL_VERTEX_PROGRAM_CALLBACK_MESA', - 'GL_VERTEX_PROGRAM_POSITION_MESA', - 'GLbitfield', - 'GLboolean', - 'GLbyte', - 'GLchar', - 'GLcharARB', - 'GLclampd', - 'GLclampf', - 'GLdouble', - 'GLenum', - 'GLfloat', - 'GLhalfARB', - 'GLhalfNV', - 'GLhandleARB', - 'GLint', - 'GLintptr', - 'GLintptrARB', - 'GLprogramcallbackMESA', - 'GLshort', - 'GLsizei', - 'GLsizeiptr', - 'GLsizeiptrARB', - 'GLubyte', - 'GLuint', - 'GLushort', - 'GLvoid', - 'KeyCode', - 'KeySym', - 'LITTLE_ENDIAN', - 'Mask', - 'N10XSizeHints4DOT_93E', - 'N14pthread_cond_t3DOT_7E', - 'N16pthread_rwlock_t4DOT_10E', - 'N19XClientMessageEvent4DOT_64E', - 'N24_XIMStringConversionText4DOT_86E', - 'N28_XIMStatusDrawCallbackStruct4DOT_90E', - 'N8_XIMText4DOT_85E', - 'NFDBITS', - 'PDP_ENDIAN', - 'Pixmap', - 'Region', - 'Screen', - 'ScreenFormat', - 'Time', - 'Visual', - 'VisualID', - 'Window', - 'XActivateScreenSaver', - 'XAddConnectionWatch', - 'XAddExtension', - 'XAddHost', - 'XAddHosts', - 'XAddToExtensionList', - 'XAddToSaveSet', - 'XAllPlanes', - 'XAllocClassHint', - 'XAllocColor', - 'XAllocColorCells', - 'XAllocColorPlanes', - 'XAllocIconSize', - 'XAllocNamedColor', - 'XAllocSizeHints', - 'XAllocStandardColormap', - 'XAllocWMHints', - 'XAllowEvents', - 'XAnyEvent', - 'XArc', - 'XAutoRepeatOff', - 'XAutoRepeatOn', - 'XBaseFontNameListOfFontSet', - 'XBell', - 'XBitmapBitOrder', - 'XBitmapPad', - 'XBitmapUnit', - 'XBlackPixel', - 'XBlackPixelOfScreen', - 'XButtonEvent', - 'XButtonPressedEvent', - 'XButtonReleasedEvent', - 'XCNOENT', - 'XCNOMEM', - 'XCSUCCESS', - 'XCellsOfScreen', - 'XChangeActivePointerGrab', - 'XChangeGC', - 'XChangeKeyboardControl', - 'XChangeKeyboardMapping', - 'XChangePointerControl', - 'XChangeProperty', - 'XChangeSaveSet', - 'XChangeWindowAttributes', - 'XChar2b', - 'XCharStruct', - 'XCheckIfEvent', - 'XCheckMaskEvent', - 'XCheckTypedEvent', - 'XCheckTypedWindowEvent', - 'XCheckWindowEvent', - 'XCirculateEvent', - 'XCirculateRequestEvent', - 'XCirculateSubwindows', - 'XCirculateSubwindowsDown', - 'XCirculateSubwindowsUp', - 'XClassHint', - 'XClearArea', - 'XClearWindow', - 'XClientMessageEvent', - 'XClipBox', - 'XCloseDisplay', - 'XCloseIM', - 'XCloseOM', - 'XColor', - 'XColormapEvent', - 'XComposeStatus', - 'XCompoundTextStyle', - 'XConfigureEvent', - 'XConfigureRequestEvent', - 'XConfigureWindow', - 'XConnectionNumber', - 'XConnectionWatchProc', - 'XContext', - 'XContextDependentDrawing', - 'XContextualDrawing', - 'XConvertCase', - 'XConvertSelection', - 'XCopyArea', - 'XCopyColormapAndFree', - 'XCopyGC', - 'XCopyPlane', - 'XCreateBitmapFromData', - 'XCreateColormap', - 'XCreateFontCursor', - 'XCreateFontSet', - 'XCreateGC', - 'XCreateGlyphCursor', - 'XCreateIC', - 'XCreateImage', - 'XCreateOC', - 'XCreatePixmap', - 'XCreatePixmapCursor', - 'XCreatePixmapFromBitmapData', - 'XCreateRegion', - 'XCreateSimpleWindow', - 'XCreateWindow', - 'XCreateWindowEvent', - 'XCrossingEvent', - 'XDefaultColormap', - 'XDefaultColormapOfScreen', - 'XDefaultDepth', - 'XDefaultDepthOfScreen', - 'XDefaultGC', - 'XDefaultGCOfScreen', - 'XDefaultRootWindow', - 'XDefaultScreen', - 'XDefaultScreenOfDisplay', - 'XDefaultString', - 'XDefaultVisual', - 'XDefaultVisualOfScreen', - 'XDefineCursor', - 'XDeleteContext', - 'XDeleteModifiermapEntry', - 'XDeleteProperty', - 'XDestroyIC', - 'XDestroyOC', - 'XDestroyRegion', - 'XDestroySubwindows', - 'XDestroyWindow', - 'XDestroyWindowEvent', - 'XDirectionalDependentDrawing', - 'XDisableAccessControl', - 'XDisplayCells', - 'XDisplayHeight', - 'XDisplayHeightMM', - 'XDisplayKeycodes', - 'XDisplayMotionBufferSize', - 'XDisplayName', - 'XDisplayOfIM', - 'XDisplayOfOM', - 'XDisplayOfScreen', - 'XDisplayPlanes', - 'XDisplayString', - 'XDisplayWidth', - 'XDisplayWidthMM', - 'XDoesBackingStore', - 'XDoesSaveUnders', - 'XDrawArc', - 'XDrawArcs', - 'XDrawImageString', - 'XDrawImageString16', - 'XDrawLine', - 'XDrawLines', - 'XDrawPoint', - 'XDrawPoints', - 'XDrawRectangle', - 'XDrawRectangles', - 'XDrawSegments', - 'XDrawString', - 'XDrawString16', - 'XDrawText', - 'XDrawText16', - 'XEDataObject', - 'XEHeadOfExtensionList', - 'XEmptyRegion', - 'XEnableAccessControl', - 'XEnterWindowEvent', - 'XEqualRegion', - 'XErrorEvent', - 'XErrorHandler', - 'XEvent', - 'XEventMaskOfScreen', - 'XEventsQueued', - 'XExposeEvent', - 'XExtCodes', - 'XExtData', - 'XExtendedMaxRequestSize', - 'XExtentsOfFontSet', - 'XFetchBuffer', - 'XFetchBytes', - 'XFetchName', - 'XFillArc', - 'XFillArcs', - 'XFillPolygon', - 'XFillRectangle', - 'XFillRectangles', - 'XFilterEvent', - 'XFindContext', - 'XFindOnExtensionList', - 'XFlush', - 'XFlushGC', - 'XFocusChangeEvent', - 'XFocusInEvent', - 'XFocusOutEvent', - 'XFontProp', - 'XFontSet', - 'XFontSetExtents', - 'XFontStruct', - 'XFontsOfFontSet', - 'XForceScreenSaver', - 'XFree', - 'XFreeColormap', - 'XFreeColors', - 'XFreeCursor', - 'XFreeExtensionList', - 'XFreeFont', - 'XFreeFontInfo', - 'XFreeFontNames', - 'XFreeFontPath', - 'XFreeFontSet', - 'XFreeGC', - 'XFreeModifiermap', - 'XFreePixmap', - 'XFreeStringList', - 'XGCValues', - 'XGContextFromGC', - 'XGeometry', - 'XGetAtomName', - 'XGetAtomNames', - 'XGetClassHint', - 'XGetCommand', - 'XGetDefault', - 'XGetErrorDatabaseText', - 'XGetErrorText', - 'XGetFontPath', - 'XGetFontProperty', - 'XGetGCValues', - 'XGetGeometry', - 'XGetICValues', - 'XGetIMValues', - 'XGetIconName', - 'XGetIconSizes', - 'XGetImage', - 'XGetInputFocus', - 'XGetKeyboardControl', - 'XGetKeyboardMapping', - 'XGetModifierMapping', - 'XGetMotionEvents', - 'XGetNormalHints', - 'XGetOCValues', - 'XGetOMValues', - 'XGetPointerControl', - 'XGetPointerMapping', - 'XGetRGBColormaps', - 'XGetScreenSaver', - 'XGetSelectionOwner', - 'XGetSizeHints', - 'XGetStandardColormap', - 'XGetSubImage', - 'XGetTextProperty', - 'XGetTransientForHint', - 'XGetVisualInfo', - 'XGetWMClientMachine', - 'XGetWMColormapWindows', - 'XGetWMHints', - 'XGetWMIconName', - 'XGetWMName', - 'XGetWMNormalHints', - 'XGetWMProtocols', - 'XGetWMSizeHints', - 'XGetWindowAttributes', - 'XGetWindowProperty', - 'XGetZoomHints', - 'XGrabButton', - 'XGrabKey', - 'XGrabKeyboard', - 'XGrabPointer', - 'XGrabServer', - 'XGraphicsExposeEvent', - 'XGravityEvent', - 'XHeightMMOfScreen', - 'XHeightOfScreen', - 'XHostAddress', - 'XIC', - 'XICCEncodingStyle', - 'XICCallback', - 'XICProc', - 'XID', - 'XIDProc', - 'XIM', - 'XIMAbsolutePosition', - 'XIMBackwardChar', - 'XIMBackwardWord', - 'XIMBitmapType', - 'XIMCallback', - 'XIMCaretDirection', - 'XIMCaretDown', - 'XIMCaretStyle', - 'XIMCaretUp', - 'XIMDontChange', - 'XIMFeedback', - 'XIMForwardChar', - 'XIMForwardWord', - 'XIMHotKeyState', - 'XIMHotKeyTrigger', - 'XIMHotKeyTriggers', - 'XIMIsInvisible', - 'XIMIsPrimary', - 'XIMIsSecondary', - 'XIMLineEnd', - 'XIMLineStart', - 'XIMNextLine', - 'XIMOfIC', - 'XIMPreeditCaretCallbackStruct', - 'XIMPreeditDrawCallbackStruct', - 'XIMPreeditState', - 'XIMPreeditStateNotifyCallbackStruct', - 'XIMPreviousLine', - 'XIMProc', - 'XIMResetState', - 'XIMStatusDataType', - 'XIMStatusDrawCallbackStruct', - 'XIMStringConversionCallbackStruct', - 'XIMStringConversionFeedback', - 'XIMStringConversionOperation', - 'XIMStringConversionPosition', - 'XIMStringConversionText', - 'XIMStringConversionType', - 'XIMStyle', - 'XIMStyles', - 'XIMText', - 'XIMTextType', - 'XIMValuesList', - 'XIOErrorHandler', - 'XIconSize', - 'XIconifyWindow', - 'XIfEvent', - 'XImage', - 'XImageByteOrder', - 'XInitExtension', - 'XInitImage', - 'XInitThreads', - 'XInsertModifiermapEntry', - 'XInstallColormap', - 'XInternAtom', - 'XInternAtoms', - 'XInternalConnectionNumbers', - 'XIntersectRegion', - 'XK_0', - 'XK_1', - 'XK_2', - 'XK_3', - 'XK_4', - 'XK_5', - 'XK_6', - 'XK_7', - 'XK_8', - 'XK_9', - 'XK_A', - 'XK_AE', - 'XK_B', - 'XK_C', - 'XK_D', - 'XK_E', - 'XK_ENG', - 'XK_ETH', - 'XK_F', - 'XK_F1', - 'XK_F10', - 'XK_F11', - 'XK_F12', - 'XK_F13', - 'XK_F14', - 'XK_F15', - 'XK_F16', - 'XK_F17', - 'XK_F18', - 'XK_F19', - 'XK_F2', - 'XK_F20', - 'XK_F21', - 'XK_F22', - 'XK_F23', - 'XK_F24', - 'XK_F25', - 'XK_F26', - 'XK_F27', - 'XK_F28', - 'XK_F29', - 'XK_F3', - 'XK_F30', - 'XK_F31', - 'XK_F32', - 'XK_F33', - 'XK_F34', - 'XK_F35', - 'XK_F4', - 'XK_F5', - 'XK_F6', - 'XK_F7', - 'XK_F8', - 'XK_F9', - 'XK_G', - 'XK_H', - 'XK_I', - 'XK_J', - 'XK_K', - 'XK_KP_0', - 'XK_KP_1', - 'XK_KP_2', - 'XK_KP_3', - 'XK_KP_4', - 'XK_KP_5', - 'XK_KP_6', - 'XK_KP_7', - 'XK_KP_8', - 'XK_KP_9', - 'XK_KP_F1', - 'XK_KP_F2', - 'XK_KP_F3', - 'XK_KP_F4', - 'XK_L', - 'XK_L1', - 'XK_L10', - 'XK_L2', - 'XK_L3', - 'XK_L4', - 'XK_L5', - 'XK_L6', - 'XK_L7', - 'XK_L8', - 'XK_L9', - 'XK_M', - 'XK_N', - 'XK_O', - 'XK_OE', - 'XK_P', - 'XK_Q', - 'XK_R', - 'XK_R1', - 'XK_R10', - 'XK_R11', - 'XK_R12', - 'XK_R13', - 'XK_R14', - 'XK_R15', - 'XK_R2', - 'XK_R3', - 'XK_R4', - 'XK_R5', - 'XK_R6', - 'XK_R7', - 'XK_R8', - 'XK_R9', - 'XK_S', - 'XK_SCHWA', - 'XK_T', - 'XK_THORN', - 'XK_U', - 'XK_V', - 'XK_W', - 'XK_X', - 'XK_Y', - 'XK_Z', - 'XKeyEvent', - 'XKeyPressedEvent', - 'XKeyReleasedEvent', - 'XKeyboardControl', - 'XKeyboardState', - 'XKeycodeToKeysym', - 'XKeymapEvent', - 'XKeysymToKeycode', - 'XKeysymToString', - 'XKillClient', - 'XLastKnownRequestProcessed', - 'XLeaveWindowEvent', - 'XListDepths', - 'XListExtensions', - 'XListFonts', - 'XListFontsWithInfo', - 'XListHosts', - 'XListInstalledColormaps', - 'XListPixmapFormats', - 'XListProperties', - 'XLoadFont', - 'XLoadQueryFont', - 'XLocaleOfFontSet', - 'XLocaleOfIM', - 'XLocaleOfOM', - 'XLockDisplay', - 'XLookupColor', - 'XLookupKeysym', - 'XLookupString', - 'XLowerWindow', - 'XMapEvent', - 'XMapRaised', - 'XMapRequestEvent', - 'XMapSubwindows', - 'XMapWindow', - 'XMappingEvent', - 'XMaskEvent', - 'XMatchVisualInfo', - 'XMaxCmapsOfScreen', - 'XMaxRequestSize', - 'XMinCmapsOfScreen', - 'XModifierKeymap', - 'XMotionEvent', - 'XMoveResizeWindow', - 'XMoveWindow', - 'XNewModifiermap', - 'XNextEvent', - 'XNextRequest', - 'XNoExposeEvent', - 'XNoOp', - 'XOC', - 'XOM', - 'XOMCharSetList', - 'XOMFontInfo', - 'XOMOfOC', - 'XOMOrientation', - 'XOMOrientation_Context', - 'XOMOrientation_LTR_TTB', - 'XOMOrientation_RTL_TTB', - 'XOMOrientation_TTB_LTR', - 'XOMOrientation_TTB_RTL', - 'XOffsetRegion', - 'XOpenDisplay', - 'XOpenIM', - 'XOpenOM', - 'XOrientation', - 'XParseColor', - 'XParseGeometry', - 'XPeekEvent', - 'XPeekIfEvent', - 'XPending', - 'XPixmapFormatValues', - 'XPlanesOfScreen', - 'XPoint', - 'XPointInRegion', - 'XPointer', - 'XPointerMovedEvent', - 'XPolygonRegion', - 'XProcessInternalConnection', - 'XPropertyEvent', - 'XProtocolRevision', - 'XProtocolVersion', - 'XPutBackEvent', - 'XPutImage', - 'XQLength', - 'XQueryBestCursor', - 'XQueryBestSize', - 'XQueryBestStipple', - 'XQueryBestTile', - 'XQueryColor', - 'XQueryColors', - 'XQueryExtension', - 'XQueryFont', - 'XQueryKeymap', - 'XQueryPointer', - 'XQueryTextExtents', - 'XQueryTextExtents16', - 'XQueryTree', - 'XRaiseWindow', - 'XReadBitmapFile', - 'XReadBitmapFileData', - 'XRebindKeysym', - 'XRecolorCursor', - 'XReconfigureWMWindow', - 'XRectInRegion', - 'XRectangle', - 'XRefreshKeyboardMapping', - 'XRegisterIMInstantiateCallback', - 'XRemoveConnectionWatch', - 'XRemoveFromSaveSet', - 'XRemoveHost', - 'XRemoveHosts', - 'XReparentEvent', - 'XReparentWindow', - 'XResetScreenSaver', - 'XResizeRequestEvent', - 'XResizeWindow', - 'XResourceManagerString', - 'XRestackWindows', - 'XRootWindow', - 'XRootWindowOfScreen', - 'XRotateBuffers', - 'XRotateWindowProperties', - 'XSaveContext', - 'XScreenCount', - 'XScreenNumberOfScreen', - 'XScreenOfDisplay', - 'XScreenResourceString', - 'XSegment', - 'XSelectInput', - 'XSelectionClearEvent', - 'XSelectionEvent', - 'XSelectionRequestEvent', - 'XSendEvent', - 'XServerInterpretedAddress', - 'XServerVendor', - 'XSetAccessControl', - 'XSetAfterFunction', - 'XSetArcMode', - 'XSetAuthorization', - 'XSetBackground', - 'XSetClassHint', - 'XSetClipMask', - 'XSetClipOrigin', - 'XSetClipRectangles', - 'XSetCloseDownMode', - 'XSetCommand', - 'XSetDashes', - 'XSetErrorHandler', - 'XSetFillRule', - 'XSetFillStyle', - 'XSetFont', - 'XSetFontPath', - 'XSetForeground', - 'XSetFunction', - 'XSetGraphicsExposures', - 'XSetICFocus', - 'XSetICValues', - 'XSetIMValues', - 'XSetIOErrorHandler', - 'XSetIconName', - 'XSetIconSizes', - 'XSetInputFocus', - 'XSetLineAttributes', - 'XSetLocaleModifiers', - 'XSetModifierMapping', - 'XSetNormalHints', - 'XSetOCValues', - 'XSetOMValues', - 'XSetPlaneMask', - 'XSetPointerMapping', - 'XSetRGBColormaps', - 'XSetRegion', - 'XSetScreenSaver', - 'XSetSelectionOwner', - 'XSetSizeHints', - 'XSetStandardColormap', - 'XSetStandardProperties', - 'XSetState', - 'XSetStipple', - 'XSetSubwindowMode', - 'XSetTSOrigin', - 'XSetTextProperty', - 'XSetTile', - 'XSetTransientForHint', - 'XSetWMClientMachine', - 'XSetWMColormapWindows', - 'XSetWMHints', - 'XSetWMIconName', - 'XSetWMName', - 'XSetWMNormalHints', - 'XSetWMProperties', - 'XSetWMProtocols', - 'XSetWMSizeHints', - 'XSetWindowAttributes', - 'XSetWindowBackground', - 'XSetWindowBackgroundPixmap', - 'XSetWindowBorder', - 'XSetWindowBorderPixmap', - 'XSetWindowBorderWidth', - 'XSetWindowColormap', - 'XSetZoomHints', - 'XShrinkRegion', - 'XSizeHints', - 'XStandardColormap', - 'XStdICCTextStyle', - 'XStoreBuffer', - 'XStoreBytes', - 'XStoreColor', - 'XStoreColors', - 'XStoreName', - 'XStoreNamedColor', - 'XStringListToTextProperty', - 'XStringStyle', - 'XStringToKeysym', - 'XSubtractRegion', - 'XSupportsLocale', - 'XSync', - 'XSynchronize', - 'XTextExtents', - 'XTextExtents16', - 'XTextItem', - 'XTextItem16', - 'XTextProperty', - 'XTextPropertyToStringList', - 'XTextStyle', - 'XTextWidth', - 'XTextWidth16', - 'XTimeCoord', - 'XTranslateCoordinates', - 'XUTF8StringStyle', - 'XUndefineCursor', - 'XUngrabButton', - 'XUngrabKey', - 'XUngrabKeyboard', - 'XUngrabPointer', - 'XUngrabServer', - 'XUninstallColormap', - 'XUnionRectWithRegion', - 'XUnionRegion', - 'XUnloadFont', - 'XUnlockDisplay', - 'XUnmapEvent', - 'XUnmapSubwindows', - 'XUnmapWindow', - 'XUnregisterIMInstantiateCallback', - 'XUnsetICFocus', - 'XVaCreateNestedList', - 'XVaNestedList', - 'XVendorRelease', - 'XVisibilityEvent', - 'XVisualIDFromVisual', - 'XVisualInfo', - 'XWMGeometry', - 'XWMHints', - 'XWarpPointer', - 'XWhitePixel', - 'XWhitePixelOfScreen', - 'XWidthMMOfScreen', - 'XWidthOfScreen', - 'XWindowAttributes', - 'XWindowChanges', - 'XWindowEvent', - 'XWithdrawWindow', - 'XWriteBitmapFile', - 'XXorRegion', - 'X_HAVE_UTF8_STRING', - 'X_PROTOCOL', - 'X_PROTOCOL_REVISION', - 'XmbDrawImageString', - 'XmbDrawString', - 'XmbDrawText', - 'XmbLookupString', - 'XmbResetIC', - 'XmbSetWMProperties', - 'XmbTextEscapement', - 'XmbTextExtents', - 'XmbTextItem', - 'XmbTextListToTextProperty', - 'XmbTextPerCharExtents', - 'XmbTextPropertyToTextList', - 'XrmInitialize', - 'Xutf8DrawImageString', - 'Xutf8DrawString', - 'Xutf8DrawText', - 'Xutf8LookupString', - 'Xutf8ResetIC', - 'Xutf8SetWMProperties', - 'Xutf8TextEscapement', - 'Xutf8TextExtents', - 'Xutf8TextListToTextProperty', - 'Xutf8TextPerCharExtents', - 'Xutf8TextPropertyToTextList', - 'XwcDrawImageString', - 'XwcDrawString', - 'XwcDrawText', - 'XwcFreeStringList', - 'XwcLookupString', - 'XwcResetIC', - 'XwcTextEscapement', - 'XwcTextExtents', - 'XwcTextItem', - 'XwcTextListToTextProperty', - 'XwcTextPerCharExtents', - 'XwcTextPropertyToTextList', - '_4DOT_35', - '_ATFILE_SOURCE', - '_BITS_PTHREADTYPES_H', - '_BITS_TYPESIZES_H', - '_BITS_TYPES_H', - '_BITS_WCHAR_H', - '_BSD_SOURCE', - '_ENDIAN_H', - '_FEATURES_H', - '_INTTYPES_H', - '_ISOC99_SOURCE', - '_LARGEFILE64_SOURCE', - '_LARGEFILE_SOURCE', - '_POSIX_C_SOURCE', - '_POSIX_SOURCE', - '_SIGSET_NWORDS', - '_STDINT_H', - '_STRUCT_TIMEVAL', - '_SVID_SOURCE', - '_SYS_CDEFS_H', - '_SYS_SELECT_H', - '_SYS_SYSMACROS_H', - '_SYS_TYPES_H', - '_XComposeStatus', - '_XDisplay', - '_XEvent', - '_XExtData', - '_XGC', - '_XIC', - '_XIM', - '_XIMHotKeyTrigger', - '_XIMHotKeyTriggers', - '_XIMPreeditCaretCallbackStruct', - '_XIMPreeditDrawCallbackStruct', - '_XIMPreeditStateNotifyCallbackStruct', - '_XIMStatusDrawCallbackStruct', - '_XIMStringConversionCallbackStruct', - '_XIMStringConversionText', - '_XIMText', - '_XImage', - '_XOC', - '_XOM', - '_XOPEN_SOURCE', - '_XOPEN_SOURCE_EXTENDED', - '_XPrivDisplay', - '_XPrivate', - '_XRegion', - '_X_ATTRIBUTE_PRINTF', - '_X_SENTINEL', - '_Xmblen', - '_Xmbtowc', - '_XrmHashBucketRec', - '_Xwctomb', - '__ASMNAME', - '__BIG_ENDIAN', - '__BIT_TYPES_DEFINED__', - '__BYTE_ORDER', - '__CONCAT', - '__FDELT', - '__FD_ISSET', - '__FD_SETSIZE', - '__FLOAT_WORD_ORDER', - '__GLIBC_HAVE_LONG_LONG', - '__GLIBC_MINOR__', - '__GLIBC_PREREQ', - '__GLIBC__', - '__GLXEvent', - '__GLXFBConfigRec', - '__GLXcontextRec', - '__GLXextFuncPtr', - '__GNUC_PREREQ', - '__GNU_LIBRARY__', - '__LITTLE_ENDIAN', - '__LONG_LONG_PAIR', - '__NFDBITS', - '__P', - '__PDP_ENDIAN', - '__PMT', - '__PTHREAD_MUTEX_HAVE_PREV', - '__SIZEOF_PTHREAD_ATTR_T', - '__SIZEOF_PTHREAD_BARRIERATTR_T', - '__SIZEOF_PTHREAD_BARRIER_T', - '__SIZEOF_PTHREAD_CONDATTR_T', - '__SIZEOF_PTHREAD_COND_T', - '__SIZEOF_PTHREAD_MUTEXATTR_T', - '__SIZEOF_PTHREAD_MUTEX_T', - '__SIZEOF_PTHREAD_RWLOCKATTR_T', - '__SIZEOF_PTHREAD_RWLOCK_T', - '__STDC_IEC_559_COMPLEX__', - '__STDC_IEC_559__', - '__STDC_ISO_10646__', - '__STRING', - '__USE_ANSI', - '__USE_ATFILE', - '__USE_BSD', - '__USE_FORTIFY_LEVEL', - '__USE_GNU', - '__USE_ISOC99', - '__USE_LARGEFILE', - '__USE_LARGEFILE64', - '__USE_MISC', - '__USE_POSIX', - '__USE_POSIX199309', - '__USE_POSIX199506', - '__USE_POSIX2', - '__USE_SVID', - '__USE_UNIX98', - '__USE_XOPEN', - '__USE_XOPEN2K', - '__USE_XOPEN_EXTENDED', - '__WCHAR_MAX', - '__WCHAR_MIN', - '__WORDSIZE', - '__WORDSIZE_COMPAT32', - '__attribute_format_arg__', - '__attribute_format_strfmon__', - '__blkcnt64_t', - '__blkcnt_t', - '__blksize_t', - '__bos', - '__bos0', - '__caddr_t', - '__clock_t', - '__clockid_t', - '__daddr_t', - '__dev_t', - '__fd_mask', - '__fsblkcnt64_t', - '__fsblkcnt_t', - '__fsfilcnt64_t', - '__fsfilcnt_t', - '__fsid_t', - '__gid_t', - '__id_t', - '__ino64_t', - '__ino_t', - '__int16_t', - '__int32_t', - '__int64_t', - '__int8_t', - '__intptr_t', - '__key_t', - '__loff_t', - '__mode_t', - '__nlink_t', - '__off64_t', - '__off_t', - '__pid_t', - '__pthread_internal_list', - '__pthread_list_t', - '__pthread_mutex_s', - '__qaddr_t', - '__quad_t', - '__rlim64_t', - '__rlim_t', - '__sig_atomic_t', - '__sigset_t', - '__socklen_t', - '__ssize_t', - '__suseconds_t', - '__swblk_t', - '__time_t', - '__timer_t', - '__u_char', - '__u_int', - '__u_long', - '__u_quad_t', - '__u_short', - '__uid_t', - '__uint16_t', - '__uint32_t', - '__uint64_t', - '__uint8_t', - '__useconds_t', - 'blkcnt64_t', - 'blkcnt_t', - 'blksize_t', - 'caddr_t', - 'clock_t', - 'clockid_t', - 'daddr_t', - 'dev_t', - 'fd_mask', - 'fd_set', - 'fsblkcnt64_t', - 'fsblkcnt_t', - 'fsfilcnt64_t', - 'fsfilcnt_t', - 'fsid_t', - 'funcs', - 'gid_t', - 'glActiveTextureARB', - 'glClientActiveTextureARB', - 'glMultiTexCoord1dARB', - 'glMultiTexCoord1dvARB', - 'glMultiTexCoord1fARB', - 'glMultiTexCoord1fvARB', - 'glMultiTexCoord1iARB', - 'glMultiTexCoord1ivARB', - 'glMultiTexCoord1sARB', - 'glMultiTexCoord1svARB', - 'glMultiTexCoord2dARB', - 'glMultiTexCoord2dvARB', - 'glMultiTexCoord2fARB', - 'glMultiTexCoord2fvARB', - 'glMultiTexCoord2iARB', - 'glMultiTexCoord2ivARB', - 'glMultiTexCoord2sARB', - 'glMultiTexCoord2svARB', - 'glMultiTexCoord3dARB', - 'glMultiTexCoord3dvARB', - 'glMultiTexCoord3fARB', - 'glMultiTexCoord3fvARB', - 'glMultiTexCoord3iARB', - 'glMultiTexCoord3ivARB', - 'glMultiTexCoord3sARB', - 'glMultiTexCoord3svARB', - 'glMultiTexCoord4dARB', - 'glMultiTexCoord4dvARB', - 'glMultiTexCoord4fARB', - 'glMultiTexCoord4fvARB', - 'glMultiTexCoord4iARB', - 'glMultiTexCoord4ivARB', - 'glMultiTexCoord4sARB', - 'glMultiTexCoord4svARB', - 'glXAllocateMemoryNV', - 'glXBindTexImageEXT', - 'glXChooseFBConfig', - 'glXChooseVisual', - 'glXCopyContext', - 'glXCreateContext', - 'glXCreateGLXPixmap', - 'glXCreateNewContext', - 'glXCreatePbuffer', - 'glXCreatePixmap', - 'glXCreateWindow', - 'glXDestroyContext', - 'glXDestroyGLXPixmap', - 'glXDestroyPbuffer', - 'glXDestroyPixmap', - 'glXDestroyWindow', - 'glXFreeMemoryNV', - 'glXGetClientString', - 'glXGetConfig', - 'glXGetCurrentContext', - 'glXGetCurrentDisplay', - 'glXGetCurrentDrawable', - 'glXGetCurrentReadDrawable', - 'glXGetFBConfigAttrib', - 'glXGetFBConfigs', - 'glXGetProcAddress', - 'glXGetSelectedEvent', - 'glXGetVisualFromFBConfig', - 'glXIsDirect', - 'glXMakeContextCurrent', - 'glXMakeCurrent', - 'glXQueryContext', - 'glXQueryDrawable', - 'glXQueryExtension', - 'glXQueryExtensionsString', - 'glXQueryServerString', - 'glXQueryVersion', - 'glXReleaseTexImageEXT', - 'glXSelectEvent', - 'glXSwapBuffers', - 'glXUseXFont', - 'glXWaitGL', - 'glXWaitX', - 'gnu_dev_major', - 'gnu_dev_makedev', - 'gnu_dev_minor', - 'id_t', - 'imaxabs', - 'imaxdiv', - 'imaxdiv_t', - 'ino64_t', - 'ino_t', - 'int16_t', - 'int32_t', - 'int64_t', - 'int8_t', - 'int_fast16_t', - 'int_fast32_t', - 'int_fast64_t', - 'int_fast8_t', - 'int_least16_t', - 'int_least32_t', - 'int_least64_t', - 'int_least8_t', - 'intmax_t', - 'intptr_t', - 'key_t', - 'loff_t', - 'major', - 'makedev', - 'minor', - 'mode_t', - 'nlink_t', - 'off64_t', - 'off_t', - 'offsetof', - 'pid_t', - 'pselect', - 'pthread_attr_t', - 'pthread_barrier_t', - 'pthread_barrierattr_t', - 'pthread_cond_t', - 'pthread_condattr_t', - 'pthread_key_t', - 'pthread_mutex_t', - 'pthread_mutexattr_t', - 'pthread_once_t', - 'pthread_rwlock_t', - 'pthread_rwlockattr_t', - 'pthread_spinlock_t', - 'pthread_t', - 'ptrdiff_t', - 'quad_t', - 'register_t', - 'select', - 'sigset_t', - 'size_t', - 'ssize_t', - 'strtoimax', - 'strtoumax', - 'suseconds_t', - 'time_t', - 'timer_t', - 'timespec', - 'timeval', - 'u_char', - 'u_int', - 'u_int16_t', - 'u_int32_t', - 'u_int64_t', - 'u_int8_t', - 'u_long', - 'u_quad_t', - 'u_short', - 'uid_t', - 'uint', - 'uint16_t', - 'uint32_t', - 'uint64_t', - 'uint8_t', - 'uint_fast16_t', - 'uint_fast32_t', - 'uint_fast64_t', - 'uint_fast8_t', - 'uint_least16_t', - 'uint_least32_t', - 'uint_least64_t', - 'uint_least8_t', - 'uintmax_t', - 'uintptr_t', - 'ulong', - 'useconds_t', - 'ushort', - 'wcstoimax', - 'wcstoumax' -] - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/glreadpixelsubformat.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/glreadpixelsubformat.py --- pyopengl-3.0.0~b6/OpenGL/tests/glreadpixelsubformat.py 2007-10-09 13:40:55.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/glreadpixelsubformat.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,117 +0,0 @@ -import numpy -import PyQt4.Qt as qt - -try: - import OpenGL.GL as GL - import OpenGL.GLU as GLU -except ImportError: - raise ImportError, "OpenGL must be installed to use these functionalities" - - -class MyGLWidget(qt.QGLWidget): - def __init__(self, parent = None, crash = 0): - qt.QGLWidget.__init__(self, parent) - if crash: - self._t = numpy.float64 - else: - self._t = numpy.float32 - self.crash = crash - self.generateData(512, 512) - - def generateData(self, xsize, ysize): - self.xsize = xsize - self.ysize = ysize - self.vertices = numpy.zeros((xsize * ysize, 3), self._t) - x = numpy.arange(xsize) - y = numpy.arange(ysize) - A=numpy.outer(x, numpy.ones(len(y), numpy.float32)) - B=numpy.outer(y, numpy.ones(len(x), numpy.float32)) - self.vertices[:,0]=A.flatten() - self.vertices[:,1]=B.transpose().flatten() - self.vertices[:,2]=range(xsize * ysize) - self.vertexColors = numpy.zeros((xsize*ysize, 4), self._t) - i = numpy.arange(len(self.vertices)) - self.vertexColors[:, 0] = (i & 255) / 255. - self.vertexColors[:, 1] = ((i >> 8) & 255) / 255. - self.vertexColors[:, 2] = ((i >> 16) & 255) / 255. - self.vertexColors[:, 3] = 1.0 - - def initializeGL(self): - GL.glClearDepth(1.0) - GL.glClearColor(0.5, 0.5, 0.5, 1.0) - - GL.glEnable(GL.GL_BLEND) - GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA) - - GL.glShadeModel(GL.GL_FLAT) - GL.glDisable(GL.GL_DITHER) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glDisable(GL.GL_CULL_FACE) - - def resizeGL(self, width, height): - GL.glViewport(0, 0, width, height) - - - GL.glMatrixMode(GL.GL_PROJECTION) - GL.glLoadIdentity() - GL.glOrtho(0., 512., 0., 512., -self.xsize*self.ysize, self.xsize*self.ysize) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glLoadIdentity() - - self.updateGL() - - - def paintGL(self): - GL.glClearColor(0.5, 0.5, 0.5, 1.0) - GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glLoadIdentity() - self.drawObject() - color = GL.glReadPixelsub(0, 0, 1, 1, GL.GL_RGBA) - if color.dtype == 'int8': - print "WARNING: int8 received" - - def drawObject(self): - GL.glVertexPointerf(self.vertices) - if self.crash != 2: - GL.glColorPointerf(self.vertexColors) - else: - GL.glColorPointerd(self.vertexColors) - GL.glEnableClientState(GL.GL_VERTEX_ARRAY) - GL.glEnableClientState(GL.GL_COLOR_ARRAY) - GL.glDrawArrays(GL.GL_POINTS, 0, self.xsize*self.ysize) - GL.glDisableClientState(GL.GL_COLOR_ARRAY) - GL.glDisableClientState(GL.GL_VERTEX_ARRAY) - - def mousePressEvent(self, event): - self.lastPos = qt.QPoint(event.pos()) - #get the color - x = self.lastPos.x() - y = self.lastPos.y() - y = self.height()- y - self.makeCurrent() - color = GL.glReadPixelsub(x, y, 1, 1, GL.GL_RGBA) - #workaround a PyOpenGL bug - if color.dtype == 'int8': - print "WARNING: int8 received" - color = color.astype(numpy.uint8) - else: - print "received %s" % color.dtype - print "Color = ", color - -if __name__ == "__main__": - import sys - if len(sys.argv) < 2: - print "Usage:" - print "python OpenGlTest.py 0 to get it going" - print "python OpenGlTest.py 1 to get it crash" - print "python OpenGlTest.py 2 to get it thru again using glColorPointerd" - sys.exit(0) - app = qt.QApplication(sys.argv) - value = int(sys.argv[1]) - window = MyGLWidget(crash=value) - window.show() - app.exec_() - - - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/__init__.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/__init__.py --- pyopengl-3.0.0~b6/OpenGL/tests/__init__.py 2005-05-11 06:47:06.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -"""Unittests for the OpenGL-ctypes project""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_colorpointer.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_colorpointer.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_colorpointer.py 2008-01-19 19:56:20.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_colorpointer.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,74 +0,0 @@ -import sys, time, math -import pygame - -from OpenGL.GL import * -from OpenGL.GLU import * - -FRAME_TIME = 0.02 -colors = [] -vertexes = [] - -def setup_scene(screen): - glViewport(0, 0, screen.get_width(), screen.get_height()) - glMatrixMode(GL_PROJECTION) - glLoadIdentity() - gluOrtho2D(-4, 4, -3, 3) - - glEnableClientState(GL_COLOR_ARRAY) - glEnableClientState(GL_VERTEX_ARRAY) - - radius = 2.0 - - for i in range(10): - angle1 = math.pi* i/ 5.0 - angle2 = math.pi* (i+ 1)/ 5.0 - - vertexes.append([radius* math.cos(angle1), radius* math.sin(angle1), 0.0]) - vertexes.append([radius* math.cos(angle2), radius* math.sin(angle2), 0.0]) - vertexes.append([0.0, 0.0, 0.0]) - - colors.append([1.0, 0.0, 0.0, 1.0]) - colors.append([1.0, 0.0, 0.0, 1.0]) - colors.append([0.5, 0.0, 0.0, 1.0]) - - print len(vertexes), vertexes - print len(colors), colors - - glVertexPointerf(vertexes) - glColorPointerf(colors) - -def render_scene(): - glClear(GL_COLOR_BUFFER_BIT) - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - - t = time.time()/ 4 - subtime = t- math.floor(t) - glRotatef(subtime* 360, 0, 0, 1) - - glDrawArrays(GL_TRIANGLES, 0, 30) - -if __name__ == "__main__": - pygame.init() - - screen = pygame.display.set_mode([800, 600], pygame.OPENGL | pygame.DOUBLEBUF) - pygame.display.set_caption('Python OpenGL test', 'pygame') - - setup_scene(screen) - - while True: - starttime = time.time() - - for event in pygame.event.get(): - if event.type == pygame.QUIT: - sys.exit() - if event.type == pygame.KEYDOWN: - if event.key == pygame.K_ESCAPE: - sys.exit() - - render_scene() - pygame.display.flip() - - timeleft = FRAME_TIME- (time.time()- starttime) - if (timeleft > 0): - time.sleep(timeleft) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_contiguous.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_contiguous.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_contiguous.py 2008-01-07 16:30:09.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_contiguous.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,77 +0,0 @@ -#! /usr/bin/python - -from OpenGL.GL import * -from OpenGL.GLU import * -from OpenGL.GLUT import * - -import numpy - - -class Bug(object): - def __init__(self): glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH) - glutCreateWindow("Bug") - - glutDisplayFunc(self.on_display) - glutReshapeFunc(self.on_reshape) - - glClearDepth(1.0) - glEnable(GL_DEPTH_TEST) - glClearColor(0.0, 0.0, 0.0, 0.0) - glShadeModel(GL_FLAT) - - glMatrixMode(GL_MODELVIEW) - glLightfv(GL_LIGHT0, GL_POSITION, (40.0, 40, 100.0, 0.0)) - glLightfv(GL_LIGHT0, GL_DIFFUSE, (0.99, 0.99, 0.99, 1.0)) - glEnable(GL_LIGHT0) - glEnable(GL_LIGHTING) - glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE) - glEnable(GL_COLOR_MATERIAL) - - self.quad = gluNewQuadric() - - def on_reshape(self, width, height): - glViewport(0, 0, width, height) - glMatrixMode(GL_PROJECTION) - glLoadIdentity() - a = 9.0/min(width, height) - clipping_planes = (a*width, a*height) - glFrustum(-clipping_planes[0], clipping_planes[0], -clipping_planes[1], clipping_planes[1], 50.0, 150.0) - - - def on_display(self): - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) - - # BEGIN INTERESTING PART - # Set up the model view matrix - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - transf = numpy.identity(4, dtype=numpy.float32) - s = numpy.sin(0.1) - c = numpy.cos(0.1) - # A Given's rotation about the z-axis - transf[0,0] = c - transf[0,1] = s - transf[1,0] = -s - transf[1,1] = c - # A translation - transf[0,3] = 2.5 - transf[2,3] = -80 - print glGetFloatv(GL_MODELVIEW_MATRIX) - print transf.transpose() - # This doesn't work: - glMultMatrixf(transf.transpose()) - # This does work: - #glMultMatrixf(transf.transpose().copy()) - print glGetFloatv(GL_MODELVIEW_MATRIX) - # END INTERESTING PART - - glColor3f(0.6, 0.8, 0.3) - gluSphere(self.quad, 10, 8, 8) - glutSwapBuffers() - - - -if __name__ == '__main__': - glutInit(sys.argv) - Bug() - glutMainLoop () diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_glcolorpointerf.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_glcolorpointerf.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_glcolorpointerf.py 2007-10-09 03:12:15.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/test_glcolorpointerf.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,99 +0,0 @@ -import numpy -import PyQt4.Qt as qt - -try: - import OpenGL.GL as GL - import OpenGL.GLU as GLU -except ImportError: - raise ImportError, "OpenGL must be installed to use these functionalities" - - -class MyGLWidget(qt.QGLWidget): - def __init__(self, parent = None, crash = 0): - qt.QGLWidget.__init__(self, parent) - if crash: - self._t = numpy.float64 - else: - self._t = numpy.float32 - self.crash = crash - self.generateData(512, 512) - - def generateData(self, xsize, ysize): - self.xsize = xsize - self.ysize = ysize - self.vertices = numpy.zeros((xsize * ysize, 3), self._t) - x = numpy.arange(xsize) - y = numpy.arange(ysize) - A=numpy.outer(x, numpy.ones(len(y), numpy.float32)) - B=numpy.outer(y, numpy.ones(len(x), numpy.float32)) - self.vertices[:,0]=A.flatten() - self.vertices[:,1]=B.transpose().flatten() - self.vertices[:,2]=range(xsize * ysize) - self.vertexColors = numpy.zeros((xsize*ysize, 4), self._t) - i = numpy.arange(len(self.vertices)) - self.vertexColors[:, 0] = (i & 255) / 255. - self.vertexColors[:, 1] = ((i >> 8) & 255) / 255. - self.vertexColors[:, 2] = ((i >> 16) & 255) / 255. - self.vertexColors[:, 3] = 1.0 - - def initializeGL(self): - GL.glClearDepth(1.0) - GL.glClearColor(0.5, 0.5, 0.5, 1.0) - - GL.glEnable(GL.GL_BLEND) - GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA) - - GL.glShadeModel(GL.GL_FLAT) - GL.glDisable(GL.GL_DITHER) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glDisable(GL.GL_CULL_FACE) - - def resizeGL(self, width, height): - GL.glViewport(0, 0, width, height) - - - GL.glMatrixMode(GL.GL_PROJECTION) - GL.glLoadIdentity() - GL.glOrtho(0., 512., 0., 512., -self.xsize*self.ysize, self.xsize*self.ysize) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glLoadIdentity() - - self.updateGL() - - - def paintGL(self): - GL.glClearColor(0.5, 0.5, 0.5, 1.0) - GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT) - GL.glMatrixMode(GL.GL_MODELVIEW) - GL.glLoadIdentity() - self.drawObject() - - def drawObject(self): - GL.glVertexPointerf(self.vertices) - if self.crash != 2: - #import pdb; pdb.set_trace() - GL.glColorPointerf(self.vertexColors) - else: - GL.glColorPointerd(self.vertexColors) - GL.glEnableClientState(GL.GL_VERTEX_ARRAY) - GL.glEnableClientState(GL.GL_COLOR_ARRAY) - GL.glDrawArrays(GL.GL_POINTS, 0, self.xsize*self.ysize) - GL.glDisableClientState(GL.GL_COLOR_ARRAY) - GL.glDisableClientState(GL.GL_VERTEX_ARRAY) - -if __name__ == "__main__": - import sys - if len(sys.argv) < 2: - print "Usage:" - print "python OpenGlTest.py 0 to get it going" - print "python OpenGlTest.py 1 to get it crash" - print "python OpenGlTest.py 2 to get it thru again using glColorPointerd" - sys.exit(0) - app = qt.QApplication(sys.argv) - value = int(sys.argv[1]) - window = MyGLWidget(crash=value) - window.show() - app.exec_() - - - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_glgetfloat_leak.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_glgetfloat_leak.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_glgetfloat_leak.py 2007-01-14 22:11:53.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_glgetfloat_leak.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,31 +0,0 @@ -#!/usr/bin/python - -import pygame -from pygame.locals import * -from OpenGL.GL import * -from OpenGL.GLU import * - -def main(): - pygame.init() - pygame.display.set_mode((800,600), pygame.OPENGL| - pygame.DOUBLEBUF) - glClearColor(1.0, 0.0, 0.0, 1.0) - glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT) - - done = False - - while not done: - for i in range(0,50000): - modelview_matrix = glGetFloatv(GL_MODELVIEW_MATRIX) - if not i % 500: - print '.', - print - pygame.display.flip() - - eventlist = pygame.event.get() - for event in eventlist: - if event.type == QUIT or event.type == KEYDOWN and event.key == K_ESCAPE: - done = True - -if __name__ == '__main__': - main() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_glutinit_0args.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_glutinit_0args.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_glutinit_0args.py 2006-11-07 18:26:52.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_glutinit_0args.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#! /usr/bin/env python -"""Test that GLUT.glutInit accepts 0 arguments""" -from OpenGL import GLUT - -if __name__ == "__main__": - try: - GLUT.glutInit() - except Exception, err: - raise - else: - print 'accepted 0 arguments, as desired' - \ No newline at end of file diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_glutinit.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_glutinit.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_glutinit.py 2007-10-08 18:16:59.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/test_glutinit.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,26 +0,0 @@ -from OpenGL.GL import * -from OpenGL.GLUT import * -from OpenGL.GLU import * -import time - -resX,resY = (400,300 ) - -def display( ): - glutSetWindow(window); - glClearColor (0.0, 0.0, (time.time()%1.0)/1.0, 0.0) - glClear (GL_COLOR_BUFFER_BIT) - glFlush () - glutSwapBuffers() - - -if __name__ == "__main__": - glutInit([]) - glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) - - glutInitWindowSize(resX, resY) - - glutInitWindowPosition(0, 0) - window = glutCreateWindow("hello") - glutDisplayFunc(display) - glutMainLoop() - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_glutwindow.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_glutwindow.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_glutwindow.py 2008-05-04 22:24:51.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/test_glutwindow.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,101 +0,0 @@ -"""Test simple functions (i.e. no pointers involved)""" -from OpenGL.GL import * -from OpenGL.GLU import * -from OpenGL.GLUT import * -import time -start = time.time() - -window = None - -def drawText( value, x,y, windowHeight, windowWidth, step = 18 ): - """Draw the given text at given 2D position in window - """ - glMatrixMode(GL_PROJECTION); - # For some reason the GL_PROJECTION_MATRIX is overflowing with a single push! - # glPushMatrix() - matrix = glGetDouble( GL_PROJECTION_MATRIX ) - - glLoadIdentity(); - glOrtho(0.0, windowHeight or 32, 0.0, windowWidth or 32, -1.0, 1.0) - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); - glRasterPos2i(x, y); - lines = 0 - for character in value: - if character == '\n': - glRasterPos2i(x, y-(lines*18)) - else: - glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord(character)); - glPopMatrix(); - glMatrixMode(GL_PROJECTION); - # For some reason the GL_PROJECTION_MATRIX is overflowing with a single push! - # glPopMatrix(); - glLoadMatrixd( matrix ) # should have un-decorated alias for this... - - glMatrixMode(GL_MODELVIEW); - -def display(): - glutSetWindow(window); - glClearColor (0.0, 0.0, (time.time()%1.0)/1.0, 0.0) - glClear (GL_COLOR_BUFFER_BIT) - drawText( 'hello', 20,20, size[0],size[1] ) - #glutBitmapCharacter( GLUT_BITMAP_8_BY_13, ord('a')) - glutSolidTeapot( .2 ) - glFlush () - glutSwapBuffers() - -size = (250,250) - -def reshape( *args ): - print 'reshape', args - global size - size = args - display() - -def ontimer( *args ): - print 'timer', args, '@time', time.time()-start - glutTimerFunc( 1000, ontimer, 24 ) - -def idle(): - if time.time()-start < 10: - glutSetWindow(window) - glutPostRedisplay() - else: - glutDestroyWindow( window ) - print 'window destroyed' - import sys - sys.exit( 0 ) - -def testFunction( name ): - def onevent( *args ): - print '%s -> %s'%(name, ", ".join( [str(a) for a in args ])) - return onevent - - - -if __name__ == "__main__": - import sys - newArgv = glutInit(sys.argv) - print 'newArguments', newArgv - glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB ) - glutInitWindowSize(250, 250) - glutInitWindowPosition(100, 100) - window = glutCreateWindow("hello") - print 'window', repr(window) - glutDisplayFunc(display) - glutReshapeFunc(reshape) - glutMouseFunc(testFunction( 'Mouse' )) - glutEntryFunc(testFunction( 'Entry' )) - glutKeyboardFunc( testFunction( 'Keyboard' )) - glutKeyboardUpFunc( testFunction( 'KeyboardUp' )) - glutMotionFunc( testFunction( 'Motion' )) - glutPassiveMotionFunc( testFunction( 'PassiveMotion' )) - glutVisibilityFunc( testFunction( 'Visibility' )) - glutWindowStatusFunc( testFunction( 'WindowStatus' )) - glutSpecialFunc( testFunction( 'Special' )) - glutSpecialUpFunc( testFunction( 'SpecialUp' )) - glutTimerFunc( 1000, ontimer, 23 ) - - glutIdleFunc( idle ) - glutMainLoop() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/testing_context.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/testing_context.py --- pyopengl-3.0.0~b6/OpenGL/tests/testing_context.py 2006-09-29 00:38:49.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/testing_context.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,26 +0,0 @@ -import pygame -from pygame.locals import * -import pygame.key -import pygame.display -from OpenGL.GLUT import * - - -def createPyGameContext(): - """Setup a minimal PyGame context for testing""" - pygame.display.init() - screen = pygame.display.set_mode( - (300,300), - OPENGL | DOUBLEBUF, - ) - pygame.display.set_caption("testing") - pygame.key.set_repeat(500,30) - return pygame.display - -def createGLUTContext(): - """Setup a minimal GLUT context for testing""" - glutInit( [] ) - glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB ) - glutInitWindowSize(250, 250) - glutInitWindowPosition(100, 100) - window = glutCreateWindow("hello") - return window diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_loadglut.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_loadglut.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_loadglut.py 2006-01-07 21:09:31.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_loadglut.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,16 +0,0 @@ -import ctypes -try: - from ctypes.util import find_library -except ImportError, err: - from ctypes.util import findLib - def find_library( string ): - return findLib( string )[0] - -GL = OpenGL = ctypes.CDLL( find_library('GL'), mode=ctypes.RTLD_GLOBAL ) -GLU = ctypes.CDLL( find_library('GLU'), mode=ctypes.RTLD_GLOBAL ) -# glut shouldn't need to be global IIUC -GLUT = ctypes.CDLL( find_library('glut'), mode=ctypes.RTLD_GLOBAL ) -print 'GL', GL -print 'GLU', GLU -print 'GLUT', GLUT -print GLUT.glutSolidTeapot diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/tests.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/tests.py --- pyopengl-3.0.0~b6/OpenGL/tests/tests.py 2008-09-07 15:36:25.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/tests/tests.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,631 +0,0 @@ -#! /usr/bin/env python -import unittest, pygame, pygame.display, time, traceback -try: - from numpy import * -except ImportError, err: - from Numeric import * -pygame.display.init() -from OpenGL.GL import * -from OpenGL import constants, error -from OpenGL.GLU import * -from OpenGL.arrays import arraydatatype -import OpenGL -import ctypes -from OpenGL.GL.EXT.framebuffer_object import * - - -class Test( unittest.TestCase ): - evaluator_ctrlpoints = [[[ -1.5, -1.5, 4.0], [-0.5, -1.5, 2.0], [0.5, -1.5, - -1.0], [1.5, -1.5, 2.0]], [[-1.5, -0.5, 1.0], [-0.5, -0.5, 3.0], [0.5, -0.5, - 0.0], [1.5, -0.5, -1.0]], [[-1.5, 0.5, 4.0], [-0.5, 0.5, 0.0], [0.5, 0.5, - 3.0], [1.5, 0.5, 4.0]], [[-1.5, 1.5, -2.0], [-0.5, 1.5, -2.0], [0.5, 1.5, - 0.0], [1.5, 1.5, -1.0]]] - width = height = 300 - def setUp( self ): - """Set up the operation""" - - self.screen = pygame.display.set_mode( - (self.width,self.height), - pygame.OPENGL | pygame.DOUBLEBUF, - ) - - pygame.display.set_caption('Testing system') - pygame.key.set_repeat(500,30) - glMatrixMode (GL_PROJECTION) - glLoadIdentity() - gluPerspective(40.0, 300/300, 1.0, 20.0) - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - gluLookAt( - -2,0,3, # eyepoint - 0,0,0, # center-of-view - 0,1,0, # up-vector - ) - glClearColor( 0,0,.25, 0 ) - glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ) - def tearDown( self ): - glFlush() - pygame.display.flip() - time.sleep( .25 ) - #raw_input( 'Okay? ' ) - def test_arrayPointer( self ): - dt = arraydatatype.GLuintArray - d = dt.zeros( (3,)) - dp = dt.typedPointer( d ) - assert dp[0] == 0 - assert dp[1] == 0 - assert dp[2] == 0 - dp[1] = 1 - assert dp[1] == 1 - assert d[1] == 1 - def test_evaluator( self ): - """Test whether the evaluator functions work""" - glDisable(GL_CULL_FACE) - glEnable(GL_MAP2_VERTEX_3) - glEnable(GL_DEPTH_TEST) - glEnable(GL_NORMALIZE) - glMap2f(GL_MAP2_VERTEX_3, 0, 1, 0, 1, self.evaluator_ctrlpoints) - glMapGrid2f(20, 0.0, 1.0, 20, 0.0, 1.0) - glShadeModel(GL_FLAT) - glEvalMesh2(GL_FILL, 0, 20, 0, 20) - glTranslatef( 0,0.001, 0 ) - glEvalMesh2(GL_POINT, 0, 20, 0, 20) - def test_nurbs_raw( self ): - """Test nurbs rendering using raw API calls""" - from OpenGL.raw import GLU - knots = (constants.GLfloat* 8) ( 0,0,0,0,1,1,1,1 ) - ctlpoints = (constants.GLfloat*(3*4*4))( -3., -3., -3., - -3., -1., -3., - -3., 1., -3., - -3., 3., -3., - - -1., -3., -3., - -1., -1., 3., - -1., 1., 3., - -1., 3., -3., - - 1., -3., -3., - 1., -1., 3., - 1., 1., 3., - 1., 3., -3., - - 3., -3., -3., - 3., -1., -3., - 3., 1., -3., - 3., 3., -3. ) - theNurb = gluNewNurbsRenderer() - GLU.gluBeginSurface(theNurb) - GLU.gluNurbsSurface( - theNurb, - 8, ctypes.byref(knots), 8, ctypes.byref(knots), - 4 * 3, 3, ctypes.byref( ctlpoints ), - 4, 4, GL_MAP2_VERTEX_3 - ) - GLU.gluEndSurface(theNurb) - def test_nurbs_raw_arrays( self ): - """Test nurbs rendering using raw API calls with arrays""" - from OpenGL.raw import GLU - import numpy - knots = numpy.array( ( 0,0,0,0,1,1,1,1 ), 'f' ) - ctlpoints = numpy.array( [[[-3., -3., -3.], - [-3., -1., -3.], - [-3., 1., -3.], - [-3., 3., -3.]], - - [[-1., -3., -3.], - [-1., -1., 3.], - [-1., 1., 3.], - [-1., 3., -3.]], - - [[ 1., -3., -3.], - [ 1., -1., 3.], - [ 1., 1., 3.], - [ 1., 3., -3.]], - - [[ 3., -3., -3.], - [ 3., -1., -3.], - [ 3., 1., -3.], - [ 3., 3., -3.]]], 'f' ) - theNurb = GLU.gluNewNurbsRenderer() - GLU.gluBeginSurface(theNurb) - GLU.gluNurbsSurface( - theNurb, - 8, knots, 8, knots, - 4 * 3, 3, ctlpoints , - 4, 4, GL_MAP2_VERTEX_3 - ) - GLU.gluEndSurface(theNurb) - def test_nurbs( self ): - """Test nurbs rendering""" - from OpenGL.raw import GLU - def buildControlPoints( ): - ctlpoints = zeros( (4,4,3), 'd') - for u in range( 4 ): - for v in range( 4): - ctlpoints[u][v][0] = 2.0*(u - 1.5) - ctlpoints[u][v][1] = 2.0*(v - 1.5); - if (u == 1 or u ==2) and (v == 1 or v == 2): - ctlpoints[u][v][2] = 3.0; - else: - ctlpoints[u][v][2] = -3.0; - return ctlpoints - controlPoints = buildControlPoints() - theNurb = GLU.gluNewNurbsRenderer()[0] - #theNurb = gluNewNurbsRenderer(); - gluNurbsProperty(theNurb, GLU_SAMPLING_TOLERANCE, 25.0); - gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL); - knots= array ([0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0], "d") - glPushMatrix(); - try: - glRotatef(330.0, 1.,0.,0.); - glScalef (0.5, 0.5, 0.5); - - gluBeginSurface(theNurb); - try: - gluNurbsSurface( - theNurb, - knots, knots, - controlPoints, - GL_MAP2_VERTEX_3 - ); - finally: - gluEndSurface(theNurb); - finally: - glPopMatrix(); - def test_errors( self ): - """Test for error catching/checking""" - try: - glClear( GL_INVALID_VALUE ) - except Exception, err: - assert err.err == 1281, ("""Expected invalid value (1281)""", err.err) - else: - raise RuntimeError( """No error on invalid glClear""" ) - try: - glColorPointer(GL_INVALID_VALUE,GL_BYTE,0,None) - except Exception, err: - assert err.err == 1281, ("""Expected invalid value (1281)""", err.err) - assert err.baseOperation, err.baseOperation - assert err.pyArgs == [GL_INVALID_VALUE, GL_BYTE, 0, None], err.pyArgs - assert err.cArgs == [GL_INVALID_VALUE, GL_BYTE, 0, None], err.cArgs - else: - raise RuntimeError( """No error on invalid glColorPointer""" ) - try: - glBitmap(-1,-1,0,0,0,0,"") - except Exception, err: - assert err.err == 1281, ("""Expected invalid value (1281)""", err.err) - else: - raise RuntimeError( """No error on invalid glBitmap""" ) - def test_quadrics( self ): - """Test for rendering quadric objects""" - quad = gluNewQuadric() - glColor3f( 1,0, 0 ) - gluSphere( quad, 1.0, 16, 16 ) - def test_simple( self ): - """Test for simple vertex-based drawing""" - glDisable( GL_LIGHTING ) - glBegin( GL_TRIANGLES ) - try: - try: - glVertex3f( 0.,1.,0. ) - except Exception, err: - traceback.print_exc() - glVertex3fv( [-1,0,0] ) - glVertex3dv( [1,0,0] ) - try: - glVertex3dv( [1,0] ) - except ValueError, err: - #Got expected value error (good) - pass - else: - raise RuntimeError( - """Should have raised a value error on passing 2-element array to 3-element function!""", - ) - finally: - glEnd() - a = glGenTextures( 1 ) - assert a - b = glGenTextures( 2 ) - assert len(b) == 2 - def test_arbwindowpos( self ): - """Test the ARB window_pos extension will load if available""" - from OpenGL.GL.ARB.window_pos import glWindowPos2dARB - if glWindowPos2dARB: - glWindowPos2dARB( 0.0, 3.0 ) - def test_getstring( self ): - assert glGetString( GL_EXTENSIONS ) - def test_pointers( self ): - """Test that basic pointer functions work""" - vertex = constants.GLdouble * 3 - vArray = vertex * 2 - glVertexPointerd( [[2,3,4,5],[2,3,4,5]] ) - glVertexPointeri( ([2,3,4,5],[2,3,4,5]) ) - glVertexPointers( [[2,3,4,5],[2,3,4,5]] ) - glVertexPointerd( vArray( vertex(2,3,4),vertex(2,3,4) ) ) - myVector = vArray( vertex(2,3,4),vertex(2,3,4) ) - glVertexPointer( - 3, - GL_DOUBLE, - 0, - ctypes.cast( myVector, ctypes.POINTER(constants.GLdouble)) - ) - - repr(glVertexPointerb( [[2,3],[4,5]] )) - glVertexPointerf( [[2,3],[4,5]] ) - assert arrays.ArrayDatatype.dataPointer( None ) == None - glVertexPointerf( None ) - - glNormalPointerd( [[2,3,4],[2,3,4]] ) - glNormalPointerd( None ) - - glTexCoordPointerd( [[2,3,4],[2,3,4]] ) - glTexCoordPointerd( None ) - - glColorPointerd( [[2,3,4],[2,3,4]] ) - glColorPointerd( None ) - - glEdgeFlagPointerb( [0,1,0,0,1,0] ) - glEdgeFlagPointerb( None ) - - glIndexPointerd( [0,1,0,0,1,0] ) - glIndexPointerd( None ) - - glColor4fv( [0,0,0,1] ) - - # string data-types... - import struct - s = struct.pack( '>iiii', 2,3,4,5 ) * 2 - result = glVertexPointer( 4,GL_INT,0,s ) - TESS_TEST_SHAPE = [ - [191, 0], - [ 191, 1480], - [ 191, 1480], - [ 401, 1480], - [ 401, 1480], - [401, 856], - [401, 856], - [1105, 856], - [1105, 856], - [1105, 1480], - [1105, 1480], - [1315, 1480], - [1315, 1480], - [1315, 0], - [1315, 0], - [1105, 0], - [1105, 0], - [1105, 699], - [1105, 699], - [401, 699], - [401, 699], - [401, 0], - [401, 0], - [191, 0], - [191, 0], - [191, 0], - ] - def test_tess(self ): - """Test that tessellation works""" - glDisable( GL_LIGHTING ) - glColor3f( 1,1,1 ) - glNormal3f( 0,0,1 ) - def begin( *args ): - return glBegin( *args ) - def vertex( *args ): - return glVertex3dv( *args ) - def end( *args ): - return glEnd( *args ) - def combine( coords, vertex_data, weight): - return coords - tobj = gluNewTess() - gluTessCallback(tobj, GLU_TESS_BEGIN, begin); - gluTessCallback(tobj, GLU_TESS_VERTEX, vertex); - gluTessCallback(tobj, GLU_TESS_END, end); - gluTessCallback(tobj, GLU_TESS_COMBINE, combine); - gluTessBeginPolygon(tobj, None); - gluTessBeginContour(tobj); - for (x,y) in self.TESS_TEST_SHAPE: - vert = (x,y,0.0) - gluTessVertex(tobj, vert, vert); - gluTessEndContour(tobj); - gluTessEndPolygon(tobj); - def test_texture( self ): - """Test texture (requires OpenGLContext and PIL)""" - try: - from OpenGLContext import texture - import Image - from OpenGL.GLUT import glutSolidTeapot - except ImportError, err: - pass - else: - glEnable( GL_TEXTURE_2D ) - ourTexture = texture.Texture( - Image.open( 'yingyang.png' ) - ) - ourTexture() - - glEnable( GL_LIGHTING ) - glEnable( GL_LIGHT0 ) - glBegin( GL_TRIANGLES ) - try: - try: - glTexCoord2f( .5, 1 ) - glVertex3f( 0.,1.,0. ) - except Exception, err: - traceback.print_exc() - glTexCoord2f( 0, 0 ) - glVertex3fv( [-1,0,0] ) - glTexCoord2f( 1, 0 ) - glVertex3dv( [1,0,0] ) - try: - glVertex3dv( [1,0] ) - except ValueError, err: - #Got expected value error (good) - pass - else: - raise RuntimeError( - """Should have raised a value error on passing 2-element array to 3-element function!""", - ) - finally: - glEnd() - def test_numpyConversion( self ): - """Test that we can run a numpy conversion from double to float for glColorArray""" - import numpy - a = numpy.arange( 0,1.2, .1, 'd' ).reshape( (-1,3 )) - glEnableClientState(GL_VERTEX_ARRAY) - glColorPointerf( a ) - glColorPointerd( a ) - def test_constantPickle( self ): - """Test that our constants can be pickled/unpickled properly""" - import pickle, cPickle - for p in pickle,cPickle: - v = p.loads( p.dumps( GL_VERTEX_ARRAY )) - assert v == GL_VERTEX_ARRAY, (v,GL_VERTEX_ARRAY) - assert v.name == GL_VERTEX_ARRAY.name, v.name - - def test_copyNonContiguous( self ): - """Test that a non-contiguous (transposed) array gets applied as a copy""" - glMatrixMode(GL_MODELVIEW) - glPushMatrix( ) - try: - import numpy - transf = numpy.identity(4, dtype=numpy.float32) - # some arbitrary transformation... - transf[0,3] = 2.5 - transf[2,3] = -80 - - # what do we get with the un-transposed version... - glMatrixMode(GL_MODELVIEW) - glLoadIdentity() - glMultMatrixf(transf) - untransposed = glGetFloatv(GL_MODELVIEW_MATRIX) - # now transposed... - - # with a copy it works... - t2 = transf.transpose().copy() - # This doesn't work: - glLoadIdentity() - glMultMatrixf(t2) - # This does work: - #glMultMatrixf(transf.transpose().copy()) - transposed = glGetFloatv(GL_MODELVIEW_MATRIX) - - assert not numpy.allclose( transposed, untransposed ), (transposed, untransposed) - - t2 = transf.transpose() - # This doesn't work: - glLoadIdentity() - glMultMatrixf(t2) - # This does work: - #glMultMatrixf(transf.transpose().copy()) - transposed = glGetFloatv(GL_MODELVIEW_MATRIX) - - assert not numpy.allclose( transposed, untransposed ), (transposed, untransposed) - finally: - glMatrixMode(GL_MODELVIEW) - glPopMatrix() - def test_nullTexture( self ): - """Test that we can create null textures""" - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 512, 512, 0, GL_RGB, GL_INT, None) - - def test_nonFloatColor( self ): - """Test that we handle non-floating-point colour inputs""" - for notFloat,shouldWork in ((0,True), (object(),False), (object,False)): - try: - glColor4f( 0,1,1,notFloat ) - except Exception, err: - if shouldWork: - raise - else: - if not shouldWork: - raise RuntimeError( """Expected failure for non-float value %s, succeeded"""%( notFloat, )) - someData = [ (0,255,0)] - def test_glAreTexturesResident( self ): - """Test that PyOpenGL api for glAreTexturesResident is working - - Note: not currently working on AMD64 Linux for some reason - """ - import numpy - textures = glGenTextures(2) - residents = [] - for texture in textures: - glBindTexture( GL_TEXTURE_2D,int(texture) ) - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 1, 1, 0, GL_RGB, GL_INT, self.someData) - residents.append( - glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_RESIDENT ) - ) - error.glCheckError(None) - result = glAreTexturesResident( textures) - assert len(result) == 2 - for (tex,expected,found) in zip( textures, residents, result ): - if expected != found: - print 'Warning: texture %s residence expected %s got %s'%( tex, expected, found ) - - if OpenGL.ALLOW_NUMPY_SCALARS: - def test_passBackResults( self ): - """Test ALLOW_NUMPY_SCALARS to allow numpy scalars to be passed in""" - textures = glGenTextures(2) - glBindTexture( GL_TEXTURE_2D, textures[0] ) - def test_arrayTranspose( self ): - import numpy - m = glGetFloatv( GL_MODELVIEW_MATRIX ) - glMatrixMode( GL_MODELVIEW ) - glLoadIdentity() - - t = eye(4) - t[3,0] = 20.0 - - # the following glMultMatrixf call ignored this transpose - t = t.T - - glMultMatrixf( t ) - - m = glGetFloatv( GL_MODELVIEW_MATRIX ) - assert numpy.allclose( m[-1], [0,0,0,1] ), m - def test_glreadpixelsf( self ): - """Issue #1979002 crash due to mis-calculation of resulting array size""" - width,height = self.width, self.height - readback_image1 = glReadPixelsub(0,0,width,height,GL_RGB) - readback_image2 = glReadPixelsf(0,0,width,height,GL_RGB) - def test_glreadpixels_is_string( self ): - """Issue #1959860 incompatable change to returning arrays reversed""" - width,height = self.width, self.height - readback_image1 = glReadPixels(0,0,width,height,GL_RGB, GL_UNSIGNED_BYTE) - assert isinstance( readback_image1, str ), type( readback_image1 ) - readback_image1 = glReadPixels(0,0,width,height,GL_RGB, GL_BYTE) - assert not isinstance( readback_image1, str ), type(readback_image2) - - def test_mmap_data( self ): - """Test that we can use mmap data array - - If we had a reasonable lib that dumped raw image data to a shared-mem file - we might be able to use this for movie display :) - """ - fh = open( 'mmap-test-data.dat', 'w+' ) - fh.write( '\000'*(32*32*3+1)) - fh.flush() - fh.close() - # using numpy.memmap here... - data = memmap( 'mmap-test-data.dat' ) - for i in range( 0,255,2 ): - glDrawPixels( 32,32, GL_RGB, GL_UNSIGNED_BYTE, data, ) - glFlush() - pygame.display.flip() - data[::2] = i - time.sleep( 0.001 ) - - def test_vbo( self ): - """Test utility vbo wrapper""" - import numpy - from OpenGL.arrays import vbo - assert vbo.get_implementation() - dt = arraydatatype.GLdoubleArray - array = numpy.array( [ - [0,0,0], - [0,1,0], - [1,.5,0], - [1,0,0], - [1.5,.5,0], - [1.5,0,0], - ], dtype='d') - indices = numpy.array( - range(len(array)), - 'i', - ) - d = vbo.VBO(array) - glDisable( GL_CULL_FACE ) - glNormal3f( 0,0,1 ) - glColor3f( 1,1,1 ) - glEnableClientState(GL_VERTEX_ARRAY) - for x in range( 1, 255, 10 ): - d.bind() - try: - glVertexPointerd( d ) - glDrawElements( GL_LINE_LOOP, len(indices), GL_UNSIGNED_INT, indices ) - finally: - d.unbind() - lastPoint = [[1.5,(1/255.) * float(x),0]] - d[-2:-1] = lastPoint - glFlush() - pygame.display.flip() - glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ) - time.sleep( 0.001 ) - def test_fbo( self ): - """Test that we support framebuffer objects - - http://www.gamedev.net/reference/articles/article2331.asp - """ - if not glGenFramebuffersEXT: - return False - width = height = 128 - fbo = glGenFramebuffersEXT(1) - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo) - depthbuffer = glGenRenderbuffersEXT(1 ) - glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, depthbuffer) - glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT24, width, height) - glFramebufferRenderbufferEXT( - GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, - depthbuffer - ) - img = glGenTextures(1) - glBindTexture(GL_TEXTURE_2D, img) - # NOTE: these lines are *key*, without them you'll likely get an unsupported format error, - # ie. GL_FRAMEBUFFER_UNSUPPORTED_EXT - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST); - glTexImage2D( - GL_TEXTURE_2D, 0, GL_RGB8, - width, height, 0, GL_RGB, - GL_INT, - None # no data transferred - ) - glFramebufferTexture2DEXT( - GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, - img, - 0 # mipmap level, normally 0 - ) - status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) - assert status == GL_FRAMEBUFFER_COMPLETE_EXT, status - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo) - glPushAttrib(GL_VIEWPORT_BIT) # viewport is shared with the main context - try: - glViewport(0,0,width, height) - - # rendering to the texture here... - glColor3f( 1,0,0 ) - glNormal3f( 0,0,1 ) - glBegin( GL_QUADS ) - for v in [[0,0,0],[0,1,0],[1,1,0],[1,0,0]]: - glColor3fv( v ) - glVertex3dv( v ) - glEnd() - finally: - glPopAttrib(); # restore viewport - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0) # unbind - - glBindTexture(GL_TEXTURE_2D, img) - - glEnable( GL_TEXTURE_2D ) - - # rendering with the texture here... - glColor3f( 1,1,1 ) - glNormal3f( 0,0,1 ) - glDisable( GL_LIGHTING ) - glBegin( GL_QUADS ) - try: - for v in [[0,0,0],[0,1,0],[1,1,0],[1,0,0]]: - glTexCoord2fv( v[:2] ) - glVertex3dv( v ) - finally: - glEnd() - def test_gl_1_2_support( self ): - if glBlendColor: - glBlendColor( .3, .4, 1.0, .3 ) - print 'OpenGL 1.2 support' - -if __name__ == "__main__": - import logging - logging.basicConfig() - unittest.main() - pygame.display.quit() - pygame.quit() - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/test_tess1.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/test_tess1.py --- pyopengl-3.0.0~b6/OpenGL/tests/test_tess1.py 2006-01-07 23:57:28.000000000 +0000 +++ pyopengl-3.0.0/OpenGL/tests/test_tess1.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#! /usr/bin/env python -"""Simple GLU Tess-object test w/out combine callback""" -from OpenGLContext import testingcontext -BaseContext, MainFunction = testingcontext.getInteractive() -from OpenGLContext.scenegraph import polygontessellator, vertex -from OpenGL.GL import * -from OpenGL.GLU import * -from Numeric import * - - -outline = array([ - [ 0, 0, 0], - [ 1, 1, 0], - [ -1, 1, 0], -], 'd') - -class TestContext( BaseContext ): - scale = 1.0 - def OnInit( self ): - self.tess = polygontessellator.PolygonTessellator() - def Render( self, mode = 0): - BaseContext.Render( self, mode ) - self.renderCap( self.scale ) - def renderCap( self, scale = 1.0): - """The cap is generated with GLU tessellation routines... - """ - vertices = [ - vertex.Vertex( (x/scale,y/scale,z/scale) ) for (x,y,z) in outline - ] - glColor3f( 1,0,0) - glDisable( GL_LIGHTING) - for type, vertices in self.tess.tessellate( vertices, forceTriangles=0 ): - print ' geometry type %s, %s vertices (GL_TRIANGLES=%s GL_TRIANGLE_FAN=%s GL_TRIANGLE_STRIP=%s)'%( - type, - len(vertices), - GL_TRIANGLES, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP - ) - glNormal3f( 0,0,1 ) - glBegin( type ) - for v in vertices: - glVertex2dv( v.point[:2] ) - glEnd() - -if __name__ == "__main__": - MainFunction ( TestContext) Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/tests/yingyang.png and /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/tests/yingyang.png differ diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/version.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/version.py --- pyopengl-3.0.0~b6/OpenGL/version.py 2008-09-14 23:12:57.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/version.py 2009-03-31 16:01:17.000000000 +0100 @@ -1,2 +1,2 @@ """Declares the current version for use in setuptools and the like""" -__version__ = '3.0.0b6' +__version__ = '3.0.0' diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/OpenGL/wrapper.py /tmp/6jwPQaot5C/pyopengl-3.0.0/OpenGL/wrapper.py --- pyopengl-3.0.0~b6/OpenGL/wrapper.py 2008-04-07 02:51:59.000000000 +0100 +++ pyopengl-3.0.0/OpenGL/wrapper.py 2009-03-26 14:43:56.000000000 +0000 @@ -5,6 +5,15 @@ from OpenGL import converters from OpenGL.converters import DefaultCConverter from OpenGL.converters import returnCArgument,returnPyArgument +try: + from OpenGL_accelerate.wrapper import ( + Wrapper as cWrapper, + CArgCalculator, + PyArgCalculator, + CArgumentCalculator, + ) +except ImportError, err: + cWrapper = None NULL = object() def asList( o ): @@ -52,6 +61,7 @@ 'cResolvers', 'storeValues', 'returnValues', + '_finalCall', ) def __init__( self, wrappedOperation ): """Initialise the wrapper, storing wrappedOperation""" @@ -272,8 +282,15 @@ if not callFunction: raise RuntimeError( """Missing finalised call type for %s"""%( self, )) else: - self.__class__.__call__ = callFunction - return self + #self.__class__.finalize = lambda *args: callFunction + #self.__call__ = callFunction + #self.__class__.__call__ = callFunction + #self.__class__.set_call( callFunction ) + #self.__class__.__dict__[ '__call__' ] = callFunction + #print 'setting class call', callFunction + self._finalCall = callFunction + return callFunction + #return self def finaliseCall( self ): """Produce specialised versions of call for finalised wrapper object @@ -290,51 +307,100 @@ storeValues = getattr( self, 'storeValues', None ) returnValues = getattr( self, 'returnValues', None ) if pyConverters: + if cWrapper: + calculate_pyArgs = PyArgCalculator( + self,pyConverters, + ) + else: + pyConverters_mapped = [ + (i,converter,(converter is None)) + for (i,converter) in enumerate( pyConverters ) + ] + pyConverters_length = len(pyConverters) + def calculate_pyArgs( args ): + if pyConverters_length != len(args): + raise ValueError( + """%s requires %r arguments (%s), received %s: %r"""%( + wrappedOperation.__name__, + pyConverters_length, + ", ".join( self.pyConverterNames ), + len(args), + args + ) + ) + for index,converter,isNone in pyConverters_mapped: + if isNone: + yield args[index] + else: + try: + yield converter(args[index], self, args) + except Exception, err: + if hasattr( err, 'args' ): + err.args += ( converter, ) + raise + else: + calculate_pyArgs = None + if cConverters: + if cWrapper: + calculate_cArgs = CArgCalculator( self, cConverters ) + else: + cConverters_mapped = [ + (i,converter,callable(converter)) + for (i,converter) in enumerate( cConverters ) + ] + def calculate_cArgs( pyArgs ): + for index,converter,canCall in cConverters_mapped: + if canCall: + try: + yield converter( pyArgs, index, self ) + except Exception, err: + if hasattr( err, 'args' ): + err.args += ( + """Failure in cConverter %r"""%(converter), + pyArgs, index, self, + ) + raise + else: + yield converter + else: + calculate_cArgs = None + if cResolvers: + if cWrapper: + calculate_cArguments = CArgumentCalculator( cResolvers ) + else: + cResolvers_mapped = list(enumerate(cResolvers)) + def calculate_cArguments( cArgs ): + for i,converter in cResolvers_mapped: + if converter is None: + yield cArgs[i] + else: + try: + yield converter( cArgs[i] ) + except Exception, err: + err.args += (converter,) + raise + else: + calculate_cArguments = None + if cWrapper: + return cWrapper( + wrappedOperation, + calculate_pyArgs=calculate_pyArgs, + calculate_cArgs=calculate_cArgs, + calculate_cArguments=calculate_cArguments, + storeValues=storeValues, + returnValues=returnValues, + ) + if pyConverters: if cConverters: + # create a map of index,converter, callable if cResolvers: if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -359,47 +425,11 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -420,51 +450,11 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - try: - cArguments.append( converter( value ) ) - except Exception, err: - err.args += (converter,) - raise + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -482,47 +472,11 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -538,41 +492,10 @@ # null cResolvers if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) cArguments = cArgs try: result = self.wrappedOperation( *cArguments ) @@ -598,41 +521,10 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) cArguments = cArgs try: result = self.wrappedOperation( *cArguments ) @@ -654,41 +546,10 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) cArguments = cArgs try: result = self.wrappedOperation( *cArguments ) @@ -707,41 +568,10 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) - cArgs = [] - for (index,converter) in enumerate( cConverters ): - # move enumerate out... - if not callable(converter): - cArgs.append( converter ) - else: - try: - cArgs.append( - converter( pyArgs, index, self ) - ) - except Exception, err: - if hasattr( err, 'args' ): - err.args += ( - """Failure in cConverter %r"""%(converter), - pyArgs, index, self, - ) - raise + pyArgs = tuple( calculate_pyArgs( args )) + cArgs = tuple(calculate_cArgs( pyArgs )) cArguments = cArgs try: result = self.wrappedOperation( *cArguments ) @@ -759,31 +589,11 @@ if cResolvers: if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArgs = pyArgs - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -808,31 +618,11 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArgs = pyArgs - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -853,31 +643,11 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArgs = pyArgs - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -895,31 +665,11 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArgs = pyArgs - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -935,24 +685,9 @@ # null cResolvers if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArguments = pyArgs try: result = self.wrappedOperation( *cArguments ) @@ -978,24 +713,9 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArguments = pyArgs try: result = self.wrappedOperation( *cArguments ) @@ -1017,24 +737,9 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArguments = pyArgs try: result = self.wrappedOperation( *cArguments ) @@ -1053,24 +758,9 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" - if len(pyConverters) != len(args): - raise ValueError( - """%s requires %r arguments (%s), received %s: %r"""%( - wrappedOperation.__name__, - len(pyConverters), - ", ".join( self.pyConverterNames ), - len(args), - args - ) - ) - pyArgs = [] - for (converter,arg) in zip(pyConverters,args): - if converter is None: - pyArgs.append( arg ) - else: - pyArgs.append( converter(arg, self, args) ) + pyArgs = tuple( calculate_pyArgs( args )) cArguments = pyArgs try: result = self.wrappedOperation( *cArguments ) @@ -1089,7 +779,7 @@ if cResolvers: if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" pyArgs = args cArgs = [] @@ -1106,15 +796,10 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1139,7 +824,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" pyArgs = args cArgs = [] @@ -1156,15 +841,10 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1185,7 +865,7 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" pyArgs = args cArgs = [] @@ -1202,15 +882,10 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1228,7 +903,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" pyArgs = args cArgs = [] @@ -1245,15 +920,10 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1269,7 +939,7 @@ # null cResolvers if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" pyArgs = args cArgs = [] @@ -1286,7 +956,7 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise cArguments = cArgs @@ -1314,7 +984,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" pyArgs = args cArgs = [] @@ -1331,7 +1001,7 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise cArguments = cArgs @@ -1355,7 +1025,7 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" pyArgs = args cArgs = [] @@ -1372,7 +1042,7 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise cArguments = cArgs @@ -1393,7 +1063,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" pyArgs = args cArgs = [] @@ -1410,7 +1080,7 @@ if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), - pyArgs, index, self, + pyArgs, index, ) raise cArguments = cArgs @@ -1430,15 +1100,10 @@ if cResolvers: if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" cArgs = args - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1463,15 +1128,10 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" cArgs = args - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1492,15 +1152,10 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" cArgs = args - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1518,15 +1173,10 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" cArgs = args - cArguments = [] - for (converter, value) in zip( cResolvers, cArgs ): - if converter is None: - cArguments.append( value ) - else: - cArguments.append( converter( value ) ) + cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: @@ -1542,7 +1192,7 @@ # null cResolvers if storeValues: if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all possible operations""" cArguments = args try: @@ -1569,7 +1219,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues""" cArguments = args try: @@ -1592,7 +1242,7 @@ return wrapperCall else: # null storeValues if returnValues: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save storeValues""" cArguments = args try: @@ -1612,7 +1262,7 @@ ) return wrapperCall else: - def wrapperCall( self, *args ): + def wrapperCall( *args ): """Wrapper with all save returnValues and storeValues""" cArguments = args try: @@ -1628,7 +1278,10 @@ return wrapperCall def __call__( self, *args, **named ): """Finalise the wrapper before calling it""" - return self.finalise()( *args, **named ) + try: + return self._finalCall( *args, **named ) + except AttributeError, err: + return self.finalise()( *args, **named ) def _unspecialised__call__( self, *args ): """Expand arguments, call the function, store values and check errors""" diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PKG-INFO /tmp/6jwPQaot5C/pyopengl-3.0.0/PKG-INFO --- pyopengl-3.0.0~b6/PKG-INFO 2008-09-15 00:31:57.000000000 +0100 +++ pyopengl-3.0.0/PKG-INFO 2009-03-31 20:39:18.000000000 +0100 @@ -1,12 +1,12 @@ Metadata-Version: 1.0 Name: PyOpenGL -Version: 3.0.0b6 +Version: 3.0.0 Summary: Standard OpenGL bindings for Python -Home-page: http://pyopengl.sourceforge.net/ctypes/ +Home-page: http://pyopengl.sourceforge.net Author: Mike C. Fletcher Author-email: mcfletch@vrplumber.com License: BSD -Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988 +Download-URL: https://sourceforge.net/project/showfiles.php?group_id=5988&package_id=6035 Description: UNKNOWN Keywords: Graphics,3D,OpenGL,GLU,GLUT,GLE,GLX,EXT,ARB,Mesa,ctypes Platform: UNKNOWN diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PyOpenGL.egg-info/dependency_links.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/PyOpenGL.egg-info/dependency_links.txt --- pyopengl-3.0.0~b6/PyOpenGL.egg-info/dependency_links.txt 2008-09-15 00:31:55.000000000 +0100 +++ pyopengl-3.0.0/PyOpenGL.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PyOpenGL.egg-info/not-zip-safe /tmp/6jwPQaot5C/pyopengl-3.0.0/PyOpenGL.egg-info/not-zip-safe --- pyopengl-3.0.0~b6/PyOpenGL.egg-info/not-zip-safe 2007-12-17 02:12:15.000000000 +0000 +++ pyopengl-3.0.0/PyOpenGL.egg-info/not-zip-safe 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PyOpenGL.egg-info/PKG-INFO /tmp/6jwPQaot5C/pyopengl-3.0.0/PyOpenGL.egg-info/PKG-INFO --- pyopengl-3.0.0~b6/PyOpenGL.egg-info/PKG-INFO 2008-09-15 00:31:55.000000000 +0100 +++ pyopengl-3.0.0/PyOpenGL.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,17 +0,0 @@ -Metadata-Version: 1.0 -Name: PyOpenGL -Version: 3.0.0b6 -Summary: Standard OpenGL bindings for Python -Home-page: http://pyopengl.sourceforge.net/ctypes/ -Author: Mike C. Fletcher -Author-email: mcfletch@vrplumber.com -License: BSD -Download-URL: http://sourceforge.net/project/showfiles.php?group_id=5988 -Description: UNKNOWN -Keywords: Graphics,3D,OpenGL,GLU,GLUT,GLE,GLX,EXT,ARB,Mesa,ctypes -Platform: UNKNOWN -Classifier: License :: OSI Approved :: BSD License -Classifier: Programming Language :: Python -Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering -Classifier: Topic :: Software Development :: Libraries :: Python Modules -Classifier: Intended Audience :: Developers diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PyOpenGL.egg-info/SOURCES.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/PyOpenGL.egg-info/SOURCES.txt --- pyopengl-3.0.0~b6/PyOpenGL.egg-info/SOURCES.txt 2008-09-15 00:31:55.000000000 +0100 +++ pyopengl-3.0.0/PyOpenGL.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,815 +0,0 @@ -MANIFEST.in -license.txt -metadata.py -setup.py -OpenGL/__init__.py -OpenGL/constant.py -OpenGL/constants.py -OpenGL/contextdata.py -OpenGL/converters.py -OpenGL/error.py -OpenGL/extensions.py -OpenGL/images.py -OpenGL/lazywrapper.py -OpenGL/logs.py -OpenGL/plugins.py -OpenGL/version.py -OpenGL/wrapper.py -OpenGL/AGL/__init__.py -OpenGL/GL/__init__.py -OpenGL/GL/exceptional.py -OpenGL/GL/feedback.py -OpenGL/GL/glget.py -OpenGL/GL/images.py -OpenGL/GL/pointers.py -OpenGL/GL/selection.py -OpenGL/GL/APPLE/__init__.py -OpenGL/GL/APPLE/client_storage.py -OpenGL/GL/APPLE/element_array.py -OpenGL/GL/APPLE/fence.py -OpenGL/GL/APPLE/flush_buffer_range.py -OpenGL/GL/APPLE/specular_vector.py -OpenGL/GL/APPLE/transform_hint.py -OpenGL/GL/APPLE/vertex_array_object.py -OpenGL/GL/APPLE/vertex_array_range.py -OpenGL/GL/APPLE/ycbcr_422.py -OpenGL/GL/ARB/__init__.py -OpenGL/GL/ARB/color_buffer_float.py -OpenGL/GL/ARB/depth_buffer_float.py -OpenGL/GL/ARB/depth_texture.py -OpenGL/GL/ARB/draw_buffers.py -OpenGL/GL/ARB/draw_instanced.py -OpenGL/GL/ARB/fragment_program.py -OpenGL/GL/ARB/fragment_program_shadow.py -OpenGL/GL/ARB/fragment_shader.py -OpenGL/GL/ARB/framebuffer_object.py -OpenGL/GL/ARB/framebuffer_sRGB.py -OpenGL/GL/ARB/geometry_shader4.py -OpenGL/GL/ARB/half_float_pixel.py -OpenGL/GL/ARB/half_float_vertex.py -OpenGL/GL/ARB/imaging.py -OpenGL/GL/ARB/instanced_arrays.py -OpenGL/GL/ARB/map_buffer_range.py -OpenGL/GL/ARB/matrix_palette.py -OpenGL/GL/ARB/multisample.py -OpenGL/GL/ARB/multitexture.py -OpenGL/GL/ARB/occlusion_query.py -OpenGL/GL/ARB/pixel_buffer_object.py -OpenGL/GL/ARB/point_parameters.py -OpenGL/GL/ARB/point_sprite.py -OpenGL/GL/ARB/shader_objects.py -OpenGL/GL/ARB/shader_objects_new.py -OpenGL/GL/ARB/shading_language_100.py -OpenGL/GL/ARB/shadow.py -OpenGL/GL/ARB/shadow_ambient.py -OpenGL/GL/ARB/texture_border_clamp.py -OpenGL/GL/ARB/texture_buffer_object.py -OpenGL/GL/ARB/texture_compression.py -OpenGL/GL/ARB/texture_compression_rgtc.py -OpenGL/GL/ARB/texture_cube_map.py -OpenGL/GL/ARB/texture_env_add.py -OpenGL/GL/ARB/texture_env_combine.py -OpenGL/GL/ARB/texture_env_crossbar.py -OpenGL/GL/ARB/texture_env_dot3.py -OpenGL/GL/ARB/texture_float.py -OpenGL/GL/ARB/texture_mirrored_repeat.py -OpenGL/GL/ARB/texture_non_power_of_two.py -OpenGL/GL/ARB/texture_rectangle.py -OpenGL/GL/ARB/texture_rg.py -OpenGL/GL/ARB/transpose_matrix.py -OpenGL/GL/ARB/vertex_array_object.py -OpenGL/GL/ARB/vertex_blend.py -OpenGL/GL/ARB/vertex_buffer_object.py -OpenGL/GL/ARB/vertex_program.py -OpenGL/GL/ARB/vertex_shader.py -OpenGL/GL/ARB/window_pos.py -OpenGL/GL/ATI/__init__.py -OpenGL/GL/ATI/draw_buffers.py -OpenGL/GL/ATI/element_array.py -OpenGL/GL/ATI/envmap_bumpmap.py -OpenGL/GL/ATI/fragment_shader.py -OpenGL/GL/ATI/map_object_buffer.py -OpenGL/GL/ATI/pixel_format_float.py -OpenGL/GL/ATI/pn_triangles.py -OpenGL/GL/ATI/separate_stencil.py -OpenGL/GL/ATI/text_fragment_shader.py -OpenGL/GL/ATI/texture_env_combine3.py -OpenGL/GL/ATI/texture_float.py -OpenGL/GL/ATI/texture_mirror_once.py -OpenGL/GL/ATI/vertex_array_object.py -OpenGL/GL/ATI/vertex_attrib_array_object.py -OpenGL/GL/ATI/vertex_streams.py -OpenGL/GL/DFX/__init__.py -OpenGL/GL/DFX/multisample.py -OpenGL/GL/DFX/tbuffer.py -OpenGL/GL/DFX/texture_compression_FXT1.py -OpenGL/GL/EXT/422_pixels.py -OpenGL/GL/EXT/GL_422_pixels.py -OpenGL/GL/EXT/__init__.py -OpenGL/GL/EXT/abgr.py -OpenGL/GL/EXT/bgra.py -OpenGL/GL/EXT/bindable_uniform.py -OpenGL/GL/EXT/blend_color.py -OpenGL/GL/EXT/blend_equation_separate.py -OpenGL/GL/EXT/blend_func_separate.py -OpenGL/GL/EXT/blend_logic_op.py -OpenGL/GL/EXT/blend_minmax.py -OpenGL/GL/EXT/blend_subtract.py -OpenGL/GL/EXT/clip_volume_hint.py -OpenGL/GL/EXT/cmyka.py -OpenGL/GL/EXT/color_matrix.py -OpenGL/GL/EXT/color_subtable.py -OpenGL/GL/EXT/compiled_vertex_array.py -OpenGL/GL/EXT/convolution.py -OpenGL/GL/EXT/coordinate_frame.py -OpenGL/GL/EXT/copy_texture.py -OpenGL/GL/EXT/cull_vertex.py -OpenGL/GL/EXT/depth_bounds_test.py -OpenGL/GL/EXT/draw_buffers2.py -OpenGL/GL/EXT/draw_instanced.py -OpenGL/GL/EXT/draw_range_elements.py -OpenGL/GL/EXT/fog_coord.py -OpenGL/GL/EXT/framebuffer_blit.py -OpenGL/GL/EXT/framebuffer_multisample.py -OpenGL/GL/EXT/framebuffer_object.py -OpenGL/GL/EXT/framebuffer_sRGB.py -OpenGL/GL/EXT/geometry_shader4.py -OpenGL/GL/EXT/gpu_program_parameters.py -OpenGL/GL/EXT/gpu_shader4.py -OpenGL/GL/EXT/histogram.py -OpenGL/GL/EXT/index_array_formats.py -OpenGL/GL/EXT/index_func.py -OpenGL/GL/EXT/index_material.py -OpenGL/GL/EXT/index_texture.py -OpenGL/GL/EXT/light_texture.py -OpenGL/GL/EXT/misc_attribute.py -OpenGL/GL/EXT/multi_draw_arrays.py -OpenGL/GL/EXT/multisample.py -OpenGL/GL/EXT/packed_depth_stencil.py -OpenGL/GL/EXT/packed_float.py -OpenGL/GL/EXT/packed_pixels.py -OpenGL/GL/EXT/paletted_texture.py -OpenGL/GL/EXT/pixel_buffer_object.py -OpenGL/GL/EXT/pixel_transform.py -OpenGL/GL/EXT/pixel_transform_color_table.py -OpenGL/GL/EXT/point_parameters.py -OpenGL/GL/EXT/polygon_offset.py -OpenGL/GL/EXT/rescale_normal.py -OpenGL/GL/EXT/secondary_color.py -OpenGL/GL/EXT/separate_specular_color.py -OpenGL/GL/EXT/shadow_funcs.py -OpenGL/GL/EXT/shared_texture_palette.py -OpenGL/GL/EXT/stencil_clear_tag.py -OpenGL/GL/EXT/stencil_two_side.py -OpenGL/GL/EXT/stencil_wrap.py -OpenGL/GL/EXT/subtexture.py -OpenGL/GL/EXT/texture.py -OpenGL/GL/EXT/texture3D.py -OpenGL/GL/EXT/texture_array.py -OpenGL/GL/EXT/texture_buffer_object.py -OpenGL/GL/EXT/texture_compression_latc.py -OpenGL/GL/EXT/texture_compression_rgtc.py -OpenGL/GL/EXT/texture_compression_s3tc.py -OpenGL/GL/EXT/texture_cube_map.py -OpenGL/GL/EXT/texture_env_add.py -OpenGL/GL/EXT/texture_env_combine.py -OpenGL/GL/EXT/texture_env_dot3.py -OpenGL/GL/EXT/texture_filter_anisotropic.py -OpenGL/GL/EXT/texture_integer.py -OpenGL/GL/EXT/texture_lod_bias.py -OpenGL/GL/EXT/texture_mirror_clamp.py -OpenGL/GL/EXT/texture_object.py -OpenGL/GL/EXT/texture_perturb_normal.py -OpenGL/GL/EXT/texture_sRGB.py -OpenGL/GL/EXT/texture_shared_exponent.py -OpenGL/GL/EXT/timer_query.py -OpenGL/GL/EXT/transform_feedback.py -OpenGL/GL/EXT/vertex_array.py -OpenGL/GL/EXT/vertex_shader.py -OpenGL/GL/EXT/vertex_weighting.py -OpenGL/GL/GREMEDY/__init__.py -OpenGL/GL/GREMEDY/frame_terminator.py -OpenGL/GL/GREMEDY/string_marker.py -OpenGL/GL/HP/__init__.py -OpenGL/GL/HP/convolution_border_modes.py -OpenGL/GL/HP/image_transform.py -OpenGL/GL/HP/occlusion_test.py -OpenGL/GL/HP/texture_lighting.py -OpenGL/GL/IBM/__init__.py -OpenGL/GL/IBM/cull_vertex.py -OpenGL/GL/IBM/multimode_draw_arrays.py -OpenGL/GL/IBM/rasterpos_clip.py -OpenGL/GL/IBM/texture_mirrored_repeat.py -OpenGL/GL/IBM/vertex_array_lists.py -OpenGL/GL/INGR/__init__.py -OpenGL/GL/INGR/blend_func_separate.py -OpenGL/GL/INGR/color_clamp.py -OpenGL/GL/INGR/interlace_read.py -OpenGL/GL/INGR/palette_buffer.py -OpenGL/GL/INTEL/__init__.py -OpenGL/GL/INTEL/parallel_arrays.py -OpenGL/GL/INTEL/texture_scissor.py -OpenGL/GL/MESA/__init__.py -OpenGL/GL/MESA/pack_invert.py -OpenGL/GL/MESA/resize_buffers.py -OpenGL/GL/MESA/window_pos.py -OpenGL/GL/MESA/ycbcr_texture.py -OpenGL/GL/MESAX/__init__.py -OpenGL/GL/MESAX/texture_stack.py -OpenGL/GL/NV/__init__.py -OpenGL/GL/NV/blend_square.py -OpenGL/GL/NV/conditional_render.py -OpenGL/GL/NV/copy_depth_to_color.py -OpenGL/GL/NV/depth_buffer_float.py -OpenGL/GL/NV/depth_clamp.py -OpenGL/GL/NV/evaluators.py -OpenGL/GL/NV/fence.py -OpenGL/GL/NV/float_buffer.py -OpenGL/GL/NV/fog_distance.py -OpenGL/GL/NV/fragment_program.py -OpenGL/GL/NV/fragment_program2.py -OpenGL/GL/NV/fragment_program4.py -OpenGL/GL/NV/fragment_program_option.py -OpenGL/GL/NV/framebuffer_multisample_coverage.py -OpenGL/GL/NV/geometry_program4.py -OpenGL/GL/NV/geometry_shader4.py -OpenGL/GL/NV/gpu_program4.py -OpenGL/GL/NV/half_float.py -OpenGL/GL/NV/light_max_exponent.py -OpenGL/GL/NV/multisample_filter_hint.py -OpenGL/GL/NV/occlusion_query.py -OpenGL/GL/NV/packed_depth_stencil.py -OpenGL/GL/NV/parameter_buffer_object.py -OpenGL/GL/NV/pixel_data_range.py -OpenGL/GL/NV/point_sprite.py -OpenGL/GL/NV/present_video.py -OpenGL/GL/NV/primitive_restart.py -OpenGL/GL/NV/register_combiners.py -OpenGL/GL/NV/register_combiners2.py -OpenGL/GL/NV/texgen_emboss.py -OpenGL/GL/NV/texgen_reflection.py -OpenGL/GL/NV/texture_compression_vtc.py -OpenGL/GL/NV/texture_env_combine4.py -OpenGL/GL/NV/texture_expand_normal.py -OpenGL/GL/NV/texture_rectangle.py -OpenGL/GL/NV/texture_shader.py -OpenGL/GL/NV/texture_shader2.py -OpenGL/GL/NV/texture_shader3.py -OpenGL/GL/NV/transform_feedback.py -OpenGL/GL/NV/vertex_array_range.py -OpenGL/GL/NV/vertex_array_range2.py -OpenGL/GL/NV/vertex_program.py -OpenGL/GL/NV/vertex_program1_1.py -OpenGL/GL/NV/vertex_program2.py -OpenGL/GL/NV/vertex_program2_option.py -OpenGL/GL/NV/vertex_program3.py -OpenGL/GL/NV/vertex_program4.py -OpenGL/GL/OES/__init__.py -OpenGL/GL/OES/read_format.py -OpenGL/GL/OML/__init__.py -OpenGL/GL/OML/interlace.py -OpenGL/GL/OML/resample.py -OpenGL/GL/OML/subsample.py -OpenGL/GL/PGI/__init__.py -OpenGL/GL/PGI/misc_hints.py -OpenGL/GL/PGI/vertex_hints.py -OpenGL/GL/REND/__init__.py -OpenGL/GL/REND/screen_coordinates.py -OpenGL/GL/S3/__init__.py -OpenGL/GL/S3/s3tc.py -OpenGL/GL/SGI/__init__.py -OpenGL/GL/SGI/color_matrix.py -OpenGL/GL/SGI/color_table.py -OpenGL/GL/SGI/depth_pass_instrument.py -OpenGL/GL/SGI/texture_color_table.py -OpenGL/GL/SGIS/__init__.py -OpenGL/GL/SGIS/detail_texture.py -OpenGL/GL/SGIS/fog_function.py -OpenGL/GL/SGIS/generate_mipmap.py -OpenGL/GL/SGIS/multisample.py -OpenGL/GL/SGIS/pixel_texture.py -OpenGL/GL/SGIS/point_line_texgen.py -OpenGL/GL/SGIS/point_parameters.py -OpenGL/GL/SGIS/sharpen_texture.py -OpenGL/GL/SGIS/texture4D.py -OpenGL/GL/SGIS/texture_border_clamp.py -OpenGL/GL/SGIS/texture_color_mask.py -OpenGL/GL/SGIS/texture_edge_clamp.py -OpenGL/GL/SGIS/texture_filter4.py -OpenGL/GL/SGIS/texture_lod.py -OpenGL/GL/SGIS/texture_select.py -OpenGL/GL/SGIX/FfdMask.py -OpenGL/GL/SGIX/__init__.py -OpenGL/GL/SGIX/async.py -OpenGL/GL/SGIX/async_histogram.py -OpenGL/GL/SGIX/async_pixel.py -OpenGL/GL/SGIX/blend_alpha_minmax.py -OpenGL/GL/SGIX/calligraphic_fragment.py -OpenGL/GL/SGIX/clipmap.py -OpenGL/GL/SGIX/convolution_accuracy.py -OpenGL/GL/SGIX/depth_pass_instrument.py -OpenGL/GL/SGIX/depth_texture.py -OpenGL/GL/SGIX/flush_raster.py -OpenGL/GL/SGIX/fog_offset.py -OpenGL/GL/SGIX/fog_scale.py -OpenGL/GL/SGIX/fragment_lighting.py -OpenGL/GL/SGIX/framezoom.py -OpenGL/GL/SGIX/igloo_interface.py -OpenGL/GL/SGIX/impact_pixel_texture.py -OpenGL/GL/SGIX/instruments.py -OpenGL/GL/SGIX/interlace.py -OpenGL/GL/SGIX/ir_instrument1.py -OpenGL/GL/SGIX/list_priority.py -OpenGL/GL/SGIX/pixel_texture.py -OpenGL/GL/SGIX/pixel_tiles.py -OpenGL/GL/SGIX/polynomial_ffd.py -OpenGL/GL/SGIX/reference_plane.py -OpenGL/GL/SGIX/resample.py -OpenGL/GL/SGIX/scalebias_hint.py -OpenGL/GL/SGIX/shadow.py -OpenGL/GL/SGIX/shadow_ambient.py -OpenGL/GL/SGIX/sprite.py -OpenGL/GL/SGIX/subsample.py -OpenGL/GL/SGIX/tag_sample_buffer.py -OpenGL/GL/SGIX/texture_add_env.py -OpenGL/GL/SGIX/texture_coordinate_clamp.py -OpenGL/GL/SGIX/texture_lod_bias.py -OpenGL/GL/SGIX/texture_multi_buffer.py -OpenGL/GL/SGIX/texture_scale_bias.py -OpenGL/GL/SGIX/texture_select.py -OpenGL/GL/SGIX/vertex_preclip.py -OpenGL/GL/SGIX/ycrcb.py -OpenGL/GL/SGIX/ycrcb_subsample.py -OpenGL/GL/SGIX/ycrcba.py -OpenGL/GL/SUN/__init__.py -OpenGL/GL/SUN/convolution_border_modes.py -OpenGL/GL/SUN/global_alpha.py -OpenGL/GL/SUN/mesh_array.py -OpenGL/GL/SUN/slice_accum.py -OpenGL/GL/SUN/triangle_list.py -OpenGL/GL/SUN/vertex.py -OpenGL/GL/SUNX/__init__.py -OpenGL/GL/SUNX/constant_data.py -OpenGL/GL/VERSION/GL_1_2.py -OpenGL/GL/VERSION/GL_1_2_images.py -OpenGL/GL/VERSION/GL_1_3.py -OpenGL/GL/VERSION/GL_1_3_images.py -OpenGL/GL/VERSION/GL_1_4.py -OpenGL/GL/VERSION/GL_1_5.py -OpenGL/GL/VERSION/GL_2_0.py -OpenGL/GL/VERSION/GL_2_1.py -OpenGL/GL/VERSION/GL_3_0.py -OpenGL/GL/VERSION/__init__.py -OpenGL/GL/WIN/__init__.py -OpenGL/GL/WIN/phong_shading.py -OpenGL/GL/WIN/specular_fog.py -OpenGL/GLE/__init__.py -OpenGL/GLE/exceptional.py -OpenGL/GLU/__init__.py -OpenGL/GLU/glunurbs.py -OpenGL/GLU/glustruct.py -OpenGL/GLU/projection.py -OpenGL/GLU/quadrics.py -OpenGL/GLU/tess.py -OpenGL/GLU/EXT/__init__.py -OpenGL/GLU/EXT/nurbs_tessellator.py -OpenGL/GLU/EXT/object_space_tess.py -OpenGL/GLUT/__init__.py -OpenGL/GLUT/fonts.py -OpenGL/GLUT/freeglut.py -OpenGL/GLUT/special.py -OpenGL/GLX/__init__.py -OpenGL/Tk/__init__.py -OpenGL/WGL/__init__.py -OpenGL/arrays/__init__.py -OpenGL/arrays/_numeric.py -OpenGL/arrays/_strings.py -OpenGL/arrays/arraydatatype.py -OpenGL/arrays/arrayhelpers.py -OpenGL/arrays/ctypesarrays.py -OpenGL/arrays/ctypesparameters.py -OpenGL/arrays/ctypespointers.py -OpenGL/arrays/formathandler.py -OpenGL/arrays/lists.py -OpenGL/arrays/nones.py -OpenGL/arrays/numarrays.py -OpenGL/arrays/numbers.py -OpenGL/arrays/numeric.py -OpenGL/arrays/numericnames.py -OpenGL/arrays/numpymodule.py -OpenGL/arrays/strings.py -OpenGL/arrays/vbo.py -OpenGL/platform/__init__.py -OpenGL/platform/baseplatform.py -OpenGL/platform/ctypesloader.py -OpenGL/platform/darwin.py -OpenGL/platform/glx.py -OpenGL/platform/win32.py -OpenGL/raw/GLX.py -OpenGL/raw/WGL.py -OpenGL/raw/_GLX.py -OpenGL/raw/_GLX_ARB.py -OpenGL/raw/_GLX_NV.py -OpenGL/raw/_WGL.py -OpenGL/raw/_WGL_ARB.py -OpenGL/raw/_WGL_NV.py -OpenGL/raw/__init__.py -OpenGL/raw/gl.py -OpenGL/raw/glu.py -OpenGL/raw/AGL/__init__.py -OpenGL/raw/GL/__init__.py -OpenGL/raw/GL/annotations.py -OpenGL/raw/GL/constants.py -OpenGL/raw/GL/APPLE/__init__.py -OpenGL/raw/GL/APPLE/client_storage.py -OpenGL/raw/GL/APPLE/element_array.py -OpenGL/raw/GL/APPLE/fence.py -OpenGL/raw/GL/APPLE/flush_buffer_range.py -OpenGL/raw/GL/APPLE/specular_vector.py -OpenGL/raw/GL/APPLE/transform_hint.py -OpenGL/raw/GL/APPLE/vertex_array_object.py -OpenGL/raw/GL/APPLE/vertex_array_range.py -OpenGL/raw/GL/APPLE/ycbcr_422.py -OpenGL/raw/GL/ARB/__init__.py -OpenGL/raw/GL/ARB/color_buffer_float.py -OpenGL/raw/GL/ARB/depth_buffer_float.py -OpenGL/raw/GL/ARB/depth_texture.py -OpenGL/raw/GL/ARB/draw_buffers.py -OpenGL/raw/GL/ARB/draw_instanced.py -OpenGL/raw/GL/ARB/fragment_program.py -OpenGL/raw/GL/ARB/fragment_program_shadow.py -OpenGL/raw/GL/ARB/fragment_shader.py -OpenGL/raw/GL/ARB/framebuffer_object.py -OpenGL/raw/GL/ARB/framebuffer_sRGB.py -OpenGL/raw/GL/ARB/geometry_shader4.py -OpenGL/raw/GL/ARB/half_float_pixel.py -OpenGL/raw/GL/ARB/half_float_vertex.py -OpenGL/raw/GL/ARB/imaging.py -OpenGL/raw/GL/ARB/instanced_arrays.py -OpenGL/raw/GL/ARB/map_buffer_range.py -OpenGL/raw/GL/ARB/matrix_palette.py -OpenGL/raw/GL/ARB/multisample.py -OpenGL/raw/GL/ARB/multitexture.py -OpenGL/raw/GL/ARB/occlusion_query.py -OpenGL/raw/GL/ARB/pixel_buffer_object.py -OpenGL/raw/GL/ARB/point_parameters.py -OpenGL/raw/GL/ARB/point_sprite.py -OpenGL/raw/GL/ARB/shader_objects.py -OpenGL/raw/GL/ARB/shading_language_100.py -OpenGL/raw/GL/ARB/shadow.py -OpenGL/raw/GL/ARB/shadow_ambient.py -OpenGL/raw/GL/ARB/texture_border_clamp.py -OpenGL/raw/GL/ARB/texture_buffer_object.py -OpenGL/raw/GL/ARB/texture_compression.py -OpenGL/raw/GL/ARB/texture_compression_rgtc.py -OpenGL/raw/GL/ARB/texture_cube_map.py -OpenGL/raw/GL/ARB/texture_env_add.py -OpenGL/raw/GL/ARB/texture_env_combine.py -OpenGL/raw/GL/ARB/texture_env_crossbar.py -OpenGL/raw/GL/ARB/texture_env_dot3.py -OpenGL/raw/GL/ARB/texture_float.py -OpenGL/raw/GL/ARB/texture_mirrored_repeat.py -OpenGL/raw/GL/ARB/texture_non_power_of_two.py -OpenGL/raw/GL/ARB/texture_rectangle.py -OpenGL/raw/GL/ARB/texture_rg.py -OpenGL/raw/GL/ARB/transpose_matrix.py -OpenGL/raw/GL/ARB/vertex_array_object.py -OpenGL/raw/GL/ARB/vertex_blend.py -OpenGL/raw/GL/ARB/vertex_buffer_object.py -OpenGL/raw/GL/ARB/vertex_program.py -OpenGL/raw/GL/ARB/vertex_shader.py -OpenGL/raw/GL/ARB/window_pos.py -OpenGL/raw/GL/ATI/__init__.py -OpenGL/raw/GL/ATI/draw_buffers.py -OpenGL/raw/GL/ATI/element_array.py -OpenGL/raw/GL/ATI/envmap_bumpmap.py -OpenGL/raw/GL/ATI/fragment_shader.py -OpenGL/raw/GL/ATI/map_object_buffer.py -OpenGL/raw/GL/ATI/pixel_format_float.py -OpenGL/raw/GL/ATI/pn_triangles.py -OpenGL/raw/GL/ATI/separate_stencil.py -OpenGL/raw/GL/ATI/text_fragment_shader.py -OpenGL/raw/GL/ATI/texture_env_combine3.py -OpenGL/raw/GL/ATI/texture_float.py -OpenGL/raw/GL/ATI/texture_mirror_once.py -OpenGL/raw/GL/ATI/vertex_array_object.py -OpenGL/raw/GL/ATI/vertex_attrib_array_object.py -OpenGL/raw/GL/ATI/vertex_streams.py -OpenGL/raw/GL/DFX/__init__.py -OpenGL/raw/GL/DFX/multisample.py -OpenGL/raw/GL/DFX/tbuffer.py -OpenGL/raw/GL/DFX/texture_compression_FXT1.py -OpenGL/raw/GL/EXT/422_pixels.py -OpenGL/raw/GL/EXT/GL_422_pixels.py -OpenGL/raw/GL/EXT/__init__.py -OpenGL/raw/GL/EXT/abgr.py -OpenGL/raw/GL/EXT/bgra.py -OpenGL/raw/GL/EXT/bindable_uniform.py -OpenGL/raw/GL/EXT/blend_color.py -OpenGL/raw/GL/EXT/blend_equation_separate.py -OpenGL/raw/GL/EXT/blend_func_separate.py -OpenGL/raw/GL/EXT/blend_logic_op.py -OpenGL/raw/GL/EXT/blend_minmax.py -OpenGL/raw/GL/EXT/blend_subtract.py -OpenGL/raw/GL/EXT/clip_volume_hint.py -OpenGL/raw/GL/EXT/cmyka.py -OpenGL/raw/GL/EXT/color_matrix.py -OpenGL/raw/GL/EXT/color_subtable.py -OpenGL/raw/GL/EXT/compiled_vertex_array.py -OpenGL/raw/GL/EXT/convolution.py -OpenGL/raw/GL/EXT/coordinate_frame.py -OpenGL/raw/GL/EXT/copy_texture.py -OpenGL/raw/GL/EXT/cull_vertex.py -OpenGL/raw/GL/EXT/depth_bounds_test.py -OpenGL/raw/GL/EXT/draw_buffers2.py -OpenGL/raw/GL/EXT/draw_instanced.py -OpenGL/raw/GL/EXT/draw_range_elements.py -OpenGL/raw/GL/EXT/fog_coord.py -OpenGL/raw/GL/EXT/framebuffer_blit.py -OpenGL/raw/GL/EXT/framebuffer_multisample.py -OpenGL/raw/GL/EXT/framebuffer_object.py -OpenGL/raw/GL/EXT/framebuffer_sRGB.py -OpenGL/raw/GL/EXT/geometry_shader4.py -OpenGL/raw/GL/EXT/gpu_program_parameters.py -OpenGL/raw/GL/EXT/gpu_shader4.py -OpenGL/raw/GL/EXT/histogram.py -OpenGL/raw/GL/EXT/index_array_formats.py -OpenGL/raw/GL/EXT/index_func.py -OpenGL/raw/GL/EXT/index_material.py -OpenGL/raw/GL/EXT/index_texture.py -OpenGL/raw/GL/EXT/light_texture.py -OpenGL/raw/GL/EXT/misc_attribute.py -OpenGL/raw/GL/EXT/multi_draw_arrays.py -OpenGL/raw/GL/EXT/multisample.py -OpenGL/raw/GL/EXT/packed_depth_stencil.py -OpenGL/raw/GL/EXT/packed_float.py -OpenGL/raw/GL/EXT/packed_pixels.py -OpenGL/raw/GL/EXT/paletted_texture.py -OpenGL/raw/GL/EXT/pixel_buffer_object.py -OpenGL/raw/GL/EXT/pixel_transform.py -OpenGL/raw/GL/EXT/pixel_transform_color_table.py -OpenGL/raw/GL/EXT/point_parameters.py -OpenGL/raw/GL/EXT/polygon_offset.py -OpenGL/raw/GL/EXT/rescale_normal.py -OpenGL/raw/GL/EXT/secondary_color.py -OpenGL/raw/GL/EXT/separate_specular_color.py -OpenGL/raw/GL/EXT/shadow_funcs.py -OpenGL/raw/GL/EXT/shared_texture_palette.py -OpenGL/raw/GL/EXT/stencil_clear_tag.py -OpenGL/raw/GL/EXT/stencil_two_side.py -OpenGL/raw/GL/EXT/stencil_wrap.py -OpenGL/raw/GL/EXT/subtexture.py -OpenGL/raw/GL/EXT/texture.py -OpenGL/raw/GL/EXT/texture3D.py -OpenGL/raw/GL/EXT/texture_array.py -OpenGL/raw/GL/EXT/texture_buffer_object.py -OpenGL/raw/GL/EXT/texture_compression_latc.py -OpenGL/raw/GL/EXT/texture_compression_rgtc.py -OpenGL/raw/GL/EXT/texture_compression_s3tc.py -OpenGL/raw/GL/EXT/texture_cube_map.py -OpenGL/raw/GL/EXT/texture_env_add.py -OpenGL/raw/GL/EXT/texture_env_combine.py -OpenGL/raw/GL/EXT/texture_env_dot3.py -OpenGL/raw/GL/EXT/texture_filter_anisotropic.py -OpenGL/raw/GL/EXT/texture_integer.py -OpenGL/raw/GL/EXT/texture_lod_bias.py -OpenGL/raw/GL/EXT/texture_mirror_clamp.py -OpenGL/raw/GL/EXT/texture_object.py -OpenGL/raw/GL/EXT/texture_perturb_normal.py -OpenGL/raw/GL/EXT/texture_sRGB.py -OpenGL/raw/GL/EXT/texture_shared_exponent.py -OpenGL/raw/GL/EXT/timer_query.py -OpenGL/raw/GL/EXT/transform_feedback.py -OpenGL/raw/GL/EXT/vertex_array.py -OpenGL/raw/GL/EXT/vertex_shader.py -OpenGL/raw/GL/EXT/vertex_weighting.py -OpenGL/raw/GL/GREMEDY/__init__.py -OpenGL/raw/GL/GREMEDY/frame_terminator.py -OpenGL/raw/GL/GREMEDY/string_marker.py -OpenGL/raw/GL/HP/__init__.py -OpenGL/raw/GL/HP/convolution_border_modes.py -OpenGL/raw/GL/HP/image_transform.py -OpenGL/raw/GL/HP/occlusion_test.py -OpenGL/raw/GL/HP/texture_lighting.py -OpenGL/raw/GL/IBM/__init__.py -OpenGL/raw/GL/IBM/cull_vertex.py -OpenGL/raw/GL/IBM/multimode_draw_arrays.py -OpenGL/raw/GL/IBM/rasterpos_clip.py -OpenGL/raw/GL/IBM/texture_mirrored_repeat.py -OpenGL/raw/GL/IBM/vertex_array_lists.py -OpenGL/raw/GL/INGR/__init__.py -OpenGL/raw/GL/INGR/blend_func_separate.py -OpenGL/raw/GL/INGR/color_clamp.py -OpenGL/raw/GL/INGR/interlace_read.py -OpenGL/raw/GL/INGR/palette_buffer.py -OpenGL/raw/GL/INTEL/__init__.py -OpenGL/raw/GL/INTEL/parallel_arrays.py -OpenGL/raw/GL/INTEL/texture_scissor.py -OpenGL/raw/GL/MESA/__init__.py -OpenGL/raw/GL/MESA/pack_invert.py -OpenGL/raw/GL/MESA/resize_buffers.py -OpenGL/raw/GL/MESA/window_pos.py -OpenGL/raw/GL/MESA/ycbcr_texture.py -OpenGL/raw/GL/MESAX/__init__.py -OpenGL/raw/GL/MESAX/texture_stack.py -OpenGL/raw/GL/NV/__init__.py -OpenGL/raw/GL/NV/blend_square.py -OpenGL/raw/GL/NV/conditional_render.py -OpenGL/raw/GL/NV/copy_depth_to_color.py -OpenGL/raw/GL/NV/depth_buffer_float.py -OpenGL/raw/GL/NV/depth_clamp.py -OpenGL/raw/GL/NV/evaluators.py -OpenGL/raw/GL/NV/fence.py -OpenGL/raw/GL/NV/float_buffer.py -OpenGL/raw/GL/NV/fog_distance.py -OpenGL/raw/GL/NV/fragment_program.py -OpenGL/raw/GL/NV/fragment_program2.py -OpenGL/raw/GL/NV/fragment_program4.py -OpenGL/raw/GL/NV/fragment_program_option.py -OpenGL/raw/GL/NV/framebuffer_multisample_coverage.py -OpenGL/raw/GL/NV/geometry_program4.py -OpenGL/raw/GL/NV/geometry_shader4.py -OpenGL/raw/GL/NV/gpu_program4.py -OpenGL/raw/GL/NV/half_float.py -OpenGL/raw/GL/NV/light_max_exponent.py -OpenGL/raw/GL/NV/multisample_filter_hint.py -OpenGL/raw/GL/NV/occlusion_query.py -OpenGL/raw/GL/NV/packed_depth_stencil.py -OpenGL/raw/GL/NV/parameter_buffer_object.py -OpenGL/raw/GL/NV/pixel_data_range.py -OpenGL/raw/GL/NV/point_sprite.py -OpenGL/raw/GL/NV/present_video.py -OpenGL/raw/GL/NV/primitive_restart.py -OpenGL/raw/GL/NV/register_combiners.py -OpenGL/raw/GL/NV/register_combiners2.py -OpenGL/raw/GL/NV/texgen_emboss.py -OpenGL/raw/GL/NV/texgen_reflection.py -OpenGL/raw/GL/NV/texture_compression_vtc.py -OpenGL/raw/GL/NV/texture_env_combine4.py -OpenGL/raw/GL/NV/texture_expand_normal.py -OpenGL/raw/GL/NV/texture_rectangle.py -OpenGL/raw/GL/NV/texture_shader.py -OpenGL/raw/GL/NV/texture_shader2.py -OpenGL/raw/GL/NV/texture_shader3.py -OpenGL/raw/GL/NV/transform_feedback.py -OpenGL/raw/GL/NV/vertex_array_range.py -OpenGL/raw/GL/NV/vertex_array_range2.py -OpenGL/raw/GL/NV/vertex_program.py -OpenGL/raw/GL/NV/vertex_program1_1.py -OpenGL/raw/GL/NV/vertex_program2.py -OpenGL/raw/GL/NV/vertex_program2_option.py -OpenGL/raw/GL/NV/vertex_program3.py -OpenGL/raw/GL/NV/vertex_program4.py -OpenGL/raw/GL/OES/__init__.py -OpenGL/raw/GL/OES/read_format.py -OpenGL/raw/GL/OML/__init__.py -OpenGL/raw/GL/OML/interlace.py -OpenGL/raw/GL/OML/resample.py -OpenGL/raw/GL/OML/subsample.py -OpenGL/raw/GL/PGI/__init__.py -OpenGL/raw/GL/PGI/misc_hints.py -OpenGL/raw/GL/PGI/vertex_hints.py -OpenGL/raw/GL/REND/__init__.py -OpenGL/raw/GL/REND/screen_coordinates.py -OpenGL/raw/GL/S3/__init__.py -OpenGL/raw/GL/S3/s3tc.py -OpenGL/raw/GL/SGI/__init__.py -OpenGL/raw/GL/SGI/color_matrix.py -OpenGL/raw/GL/SGI/color_table.py -OpenGL/raw/GL/SGI/depth_pass_instrument.py -OpenGL/raw/GL/SGI/texture_color_table.py -OpenGL/raw/GL/SGIS/__init__.py -OpenGL/raw/GL/SGIS/detail_texture.py -OpenGL/raw/GL/SGIS/fog_function.py -OpenGL/raw/GL/SGIS/generate_mipmap.py -OpenGL/raw/GL/SGIS/multisample.py -OpenGL/raw/GL/SGIS/pixel_texture.py -OpenGL/raw/GL/SGIS/point_line_texgen.py -OpenGL/raw/GL/SGIS/point_parameters.py -OpenGL/raw/GL/SGIS/sharpen_texture.py -OpenGL/raw/GL/SGIS/texture4D.py -OpenGL/raw/GL/SGIS/texture_border_clamp.py -OpenGL/raw/GL/SGIS/texture_color_mask.py -OpenGL/raw/GL/SGIS/texture_edge_clamp.py -OpenGL/raw/GL/SGIS/texture_filter4.py -OpenGL/raw/GL/SGIS/texture_lod.py -OpenGL/raw/GL/SGIS/texture_select.py -OpenGL/raw/GL/SGIX/FfdMask.py -OpenGL/raw/GL/SGIX/__init__.py -OpenGL/raw/GL/SGIX/async.py -OpenGL/raw/GL/SGIX/async_histogram.py -OpenGL/raw/GL/SGIX/async_pixel.py -OpenGL/raw/GL/SGIX/blend_alpha_minmax.py -OpenGL/raw/GL/SGIX/calligraphic_fragment.py -OpenGL/raw/GL/SGIX/clipmap.py -OpenGL/raw/GL/SGIX/convolution_accuracy.py -OpenGL/raw/GL/SGIX/depth_pass_instrument.py -OpenGL/raw/GL/SGIX/depth_texture.py -OpenGL/raw/GL/SGIX/flush_raster.py -OpenGL/raw/GL/SGIX/fog_offset.py -OpenGL/raw/GL/SGIX/fog_scale.py -OpenGL/raw/GL/SGIX/fragment_lighting.py -OpenGL/raw/GL/SGIX/framezoom.py -OpenGL/raw/GL/SGIX/igloo_interface.py -OpenGL/raw/GL/SGIX/impact_pixel_texture.py -OpenGL/raw/GL/SGIX/instruments.py -OpenGL/raw/GL/SGIX/interlace.py -OpenGL/raw/GL/SGIX/ir_instrument1.py -OpenGL/raw/GL/SGIX/list_priority.py -OpenGL/raw/GL/SGIX/pixel_texture.py -OpenGL/raw/GL/SGIX/pixel_tiles.py -OpenGL/raw/GL/SGIX/polynomial_ffd.py -OpenGL/raw/GL/SGIX/reference_plane.py -OpenGL/raw/GL/SGIX/resample.py -OpenGL/raw/GL/SGIX/scalebias_hint.py -OpenGL/raw/GL/SGIX/shadow.py -OpenGL/raw/GL/SGIX/shadow_ambient.py -OpenGL/raw/GL/SGIX/sprite.py -OpenGL/raw/GL/SGIX/subsample.py -OpenGL/raw/GL/SGIX/tag_sample_buffer.py -OpenGL/raw/GL/SGIX/texture_add_env.py -OpenGL/raw/GL/SGIX/texture_coordinate_clamp.py -OpenGL/raw/GL/SGIX/texture_lod_bias.py -OpenGL/raw/GL/SGIX/texture_multi_buffer.py -OpenGL/raw/GL/SGIX/texture_scale_bias.py -OpenGL/raw/GL/SGIX/texture_select.py -OpenGL/raw/GL/SGIX/vertex_preclip.py -OpenGL/raw/GL/SGIX/ycrcb.py -OpenGL/raw/GL/SGIX/ycrcb_subsample.py -OpenGL/raw/GL/SGIX/ycrcba.py -OpenGL/raw/GL/SUN/__init__.py -OpenGL/raw/GL/SUN/convolution_border_modes.py -OpenGL/raw/GL/SUN/global_alpha.py -OpenGL/raw/GL/SUN/mesh_array.py -OpenGL/raw/GL/SUN/slice_accum.py -OpenGL/raw/GL/SUN/triangle_list.py -OpenGL/raw/GL/SUN/vertex.py -OpenGL/raw/GL/SUNX/__init__.py -OpenGL/raw/GL/SUNX/constant_data.py -OpenGL/raw/GL/VERSION/GL_1_2.py -OpenGL/raw/GL/VERSION/GL_1_3.py -OpenGL/raw/GL/VERSION/GL_1_4.py -OpenGL/raw/GL/VERSION/GL_1_5.py -OpenGL/raw/GL/VERSION/GL_2_0.py -OpenGL/raw/GL/VERSION/GL_2_1.py -OpenGL/raw/GL/VERSION/GL_3_0.py -OpenGL/raw/GL/VERSION/__init__.py -OpenGL/raw/GL/WIN/__init__.py -OpenGL/raw/GL/WIN/phong_shading.py -OpenGL/raw/GL/WIN/specular_fog.py -OpenGL/raw/GLE/__init__.py -OpenGL/raw/GLE/annotations.py -OpenGL/raw/GLE/constants.py -OpenGL/raw/GLEXT/TYPES_DEFINED.py -OpenGL/raw/GLEXT/__init__.py -OpenGL/raw/GLU/__init__.py -OpenGL/raw/GLU/annotations.py -OpenGL/raw/GLU/constants.py -OpenGL/raw/GLU/old__init__.py -OpenGL/raw/GLUT/__init__.py -OpenGL/raw/GLUT/annotations.py -OpenGL/raw/GLUT/constants.py -OpenGL/raw/GLUT/freeglut.py -OpenGL/raw/GLUT/old__init__.py -OpenGL/raw/GLX/__init__.py -OpenGL/raw/GLX/annotations.py -OpenGL/raw/GLX/constants.py -OpenGL/tests/__init__.py -OpenGL/tests/glreadpixelsubformat.py -OpenGL/tests/test_colorpointer.py -OpenGL/tests/test_contiguous.py -OpenGL/tests/test_glcolorpointerf.py -OpenGL/tests/test_glgetfloat_leak.py -OpenGL/tests/test_glutinit.py -OpenGL/tests/test_glutinit_0args.py -OpenGL/tests/test_glutwindow.py -OpenGL/tests/test_loadglut.py -OpenGL/tests/test_tess1.py -OpenGL/tests/testing_context.py -OpenGL/tests/tests.py -OpenGL/tests/yingyang.png -PyOpenGL.egg-info/PKG-INFO -PyOpenGL.egg-info/SOURCES.txt -PyOpenGL.egg-info/dependency_links.txt -PyOpenGL.egg-info/not-zip-safe -PyOpenGL.egg-info/top_level.txt -documentation/buildepydoc.py -documentation/development.html -documentation/pyaccellerate.png -documentation/pyaccellerate.svg -documentation/using.html -documentation/images/pyopengl_icon.jpg -documentation/pydoc/builddocs.py -documentation/pydoc/pydoc2.py -documentation/style/tutorial.css -src/_arrays.c -src/_numarrayarrays.c -src/buildgledll.bat -src/generateraw.py -src/gengl.py -src/get_gl_extensions.py -src/glgetsizes.csv -src/openglgenerator.py -src/print_base_array_types.py -src/py2exeeggs.py -src/win32deps.py diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/PyOpenGL.egg-info/top_level.txt /tmp/6jwPQaot5C/pyopengl-3.0.0/PyOpenGL.egg-info/top_level.txt --- pyopengl-3.0.0~b6/PyOpenGL.egg-info/top_level.txt 2008-09-15 00:31:55.000000000 +0100 +++ pyopengl-3.0.0/PyOpenGL.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -OpenGL diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/setup.cfg /tmp/6jwPQaot5C/pyopengl-3.0.0/setup.cfg --- pyopengl-3.0.0~b6/setup.cfg 2008-09-15 00:31:57.000000000 +0100 +++ pyopengl-3.0.0/setup.cfg 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -[egg_info] -tag_build = -tag_date = 0 -tag_svn_revision = 0 - diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/setup.py /tmp/6jwPQaot5C/pyopengl-3.0.0/setup.py --- pyopengl-3.0.0~b6/setup.py 2008-09-07 16:36:33.000000000 +0100 +++ pyopengl-3.0.0/setup.py 2009-02-15 01:37:02.000000000 +0000 @@ -1,32 +1,58 @@ #! /usr/bin/env python """OpenGL-ctypes setup script (setuptools-based) """ -from setuptools import setup, find_packages +from distutils.core import setup import sys, os sys.path.insert(0, '.' ) import metadata +def is_package( path ): + return os.path.isfile( os.path.join( path, '__init__.py' )) +def find_packages( root ): + """Find all packages under this directory""" + for path, directories, files in os.walk( root ): + if is_package( path ): + yield path.replace( '/','.' ) + requirements = [] if sys.hexversion < 0x2050000: requirements.append( 'ctypes' ) +from distutils.command.install_data import install_data +class smart_install_data(install_data): + def run(self): + #need to change self.install_dir to the library dir + install_cmd = self.get_finalized_command('install') + self.install_dir = getattr(install_cmd, 'install_lib') + # should create the directory if it doesn't exist!!! + return install_data.run(self) + +if sys.platform == 'win32': + # binary versions of GLUT and GLE for Win32 (sigh) + DLL_DIRECTORY = os.path.join('OpenGL','DLLS') + datafiles = [ + ( + DLL_DIRECTORY, [ + os.path.join( DLL_DIRECTORY,file) + for file in os.listdir( DLL_DIRECTORY ) + ] + ), + ] +else: + datafiles = [] + + if __name__ == "__main__": setup( name = "PyOpenGL", - packages = find_packages(), - + packages = list( find_packages('OpenGL') ), description = 'Standard OpenGL bindings for Python', - include_package_data = True, - exclude_package_data = { - '': [ '*.odp' ], - }, - zip_safe = False, - - install_requires = requirements, options = { 'sdist': { 'formats': ['gztar','zip'], }, }, + data_files = datafiles, + cmdclass = {'install_data':smart_install_data}, **metadata.metadata ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/_arrays.c /tmp/6jwPQaot5C/pyopengl-3.0.0/src/_arrays.c --- pyopengl-3.0.0~b6/src/_arrays.c 2006-10-16 02:44:32.000000000 +0100 +++ pyopengl-3.0.0/src/_arrays.c 2008-12-20 16:01:54.000000000 +0000 @@ -1,23 +1,29 @@ /* C helper functions for OpenGL Numeric arrays */ -#include +#include "Python.h" +#ifdef USE_NUMPY +#include "numpy/arrayobject.h" +#else #include "Numeric/arrayobject.h" +#endif + #ifdef __cplusplus extern "C" { #endif static PyObject * dataPointer( PyObject * self, PyObject * args ) { PyObject * array = NULL; - PyObject * result = NULL; char * dataPointer = NULL; if (!PyArg_ParseTuple( args, "O", &array )) { return NULL; } if (array==Py_None) { dataPointer = NULL; - } else if (PyString_Check( array )) { - /* This is undocumented, is there a better way? */ - dataPointer = ((PyStringObject *) array)->ob_sval; } else { + if (!PyArray_Check(array)){ + // raise TypeError... + PyErr_SetString( PyExc_TypeError, "Require a numpy/Numeric array" ); + return NULL; + } /* XXX do a check here for array type! */ dataPointer = ((PyArrayObject *) array)->data; } @@ -31,11 +37,22 @@ {NULL, NULL} }; -void MODULE_INIT(void) +#ifdef USE_NUMPY +void +initnumpy_accel(void) { - Py_InitModule( MODULE_NAME, _arrays_methods); + Py_InitModule("numpy_accel", _arrays_methods); import_array(); } +#else +void +inittnumeric_accel(void) +{ + Py_InitModule("numeric_accel", _arrays_methods); + import_array(); +} +#endif + #ifdef __cplusplus } #endif diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/buildgledll.bat /tmp/6jwPQaot5C/pyopengl-3.0.0/src/buildgledll.bat --- pyopengl-3.0.0~b6/src/buildgledll.bat 2008-03-04 04:39:36.000000000 +0000 +++ pyopengl-3.0.0/src/buildgledll.bat 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -;REM Batch file to compile GLE as a DLL using Toolkit compiler -;REM Copy to the GLE source directory, i.e.: -;REM -;REM cp buildgledll.bat \csrc\gle-3.1.0\src\ -;REM vc7.bat -;REM buildgledll.bat -;REM -;REM Now put the DLL somewhere useful, such as \winnt\system32 -;REM -;REM cp gle32.dll \WINNT\system32 -;REM -;REM Though realistically, we want to package it for regular users - -rm *.obj -rm *.dll -cp ..\ms-visual-c\config.h ..\ -cp ..\ms-visual-c\config.h .\ -cl -c /D"WIN32" /D "_WINDLL" /Gd /MD *.c -link /EXPORT:gleExtrusion /EXPORT:gleGetNumSides /EXPORT:gleSetJoinStyle /EXPORT:glePolyCylinder /EXPORT:gleSpiral /EXPORT:gleSetNumSides /EXPORT:uview_direction /EXPORT:gleScrew /EXPORT:gleHelicoid /EXPORT:gleToroid /EXPORT:urot_omega /EXPORT:rot_about_axis /EXPORT:gleExtrusion /EXPORT:gleTextureMode /EXPORT:urot_prince /EXPORT:rot_prince /EXPORT:gleSuperExtrusion /EXPORT:urot_about_axis /EXPORT:rot_omega /EXPORT:gleLathe /EXPORT:gleGetJoinStyle /EXPORT:glePolyCone /EXPORT:rot_axis /EXPORT:uviewpoint /EXPORT:gleTwistExtrusion /EXPORT:urot_axis /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /DLL /OUT:opengle32.dll opengl32.lib glu32.lib *.obj diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/glgetsizes.csv /tmp/6jwPQaot5C/pyopengl-3.0.0/src/glgetsizes.csv --- pyopengl-3.0.0~b6/src/glgetsizes.csv 2008-04-25 23:29:05.000000000 +0100 +++ pyopengl-3.0.0/src/glgetsizes.csv 1970-01-01 01:00:00.000000000 +0100 @@ -1,432 +0,0 @@ -GL_ACTIVE_STENCIL_FACE_EXT (1,) -GL_ACTIVE_VERTEX_UNITS_ARB (1,) -GL_ALPHA_MAX_CLAMP_INGR (1,) -GL_ALPHA_MIN_CLAMP_INGR (1,) -GL_ARRAY_BUFFER_BINDING_ARB (1,) -GL_ASYNC_DRAW_PIXELS_SGIX (1,) -GL_ASYNC_HISTOGRAM_SGIX (1,) -GL_ASYNC_MARKER_SGIX (1,) -GL_ASYNC_READ_PIXELS_SGIX (1,) -GL_ASYNC_TEX_IMAGE_SGIX (1,) -GL_BINORMAL_ARRAY_EXT -GL_BINORMAL_ARRAY_STRIDE_EXT (1,) -GL_BINORMAL_ARRAY_TYPE_EXT (1,) -GL_BLEND_COLOR_EXT (4,) -GL_BLEND_DST_ALPHA_EXT (1,) -GL_BLEND_DST_RGB_EXT (1,) -GL_BLEND_EQUATION_ALPHA_EXT (1,) -GL_BLEND_EQUATION_EXT (1,) -GL_BLEND_SRC_ALPHA_EXT (1,) -GL_BLEND_SRC_RGB_EXT (1,) -GL_BLUE_MAX_CLAMP_INGR (1,) -GL_BLUE_MIN_CLAMP_INGR (1,) -GL_CLAMP_FRAGMENT_COLOR_ARB (1,) -GL_CLAMP_READ_COLOR_ARB (1,) -GL_CLAMP_VERTEX_COLOR_ARB (1,) -GL_CLIP_VOLUME_CLIPPING_HINT_EXT (1,) -GL_COLOR_ARRAY_BUFFER_BINDING_ARB (1,) -GL_COLOR_ARRAY_COUNT_EXT (1,) -GL_COLOR_ARRAY_EXT -GL_COLOR_ARRAY_SIZE_EXT (1,) -GL_COLOR_ARRAY_STRIDE_EXT (1,) -GL_COLOR_ARRAY_TYPE_EXT (1,) -GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI (4,) -GL_COLOR_MATRIX (4,4) -GL_COLOR_MATRIX_SGI (4,4) -GL_COLOR_MATRIX_STACK_DEPTH_SGI (1,) -GL_COLOR_SUM_ARB (1,) -GL_COLOR_SUM_CLAMP_NV (1,) -GL_COLOR_SUM_EXT (1,) -GL_COLOR_TABLE_SGI (1,) -GL_COMPRESSED_TEXTURE_FORMATS_ARB (1,) -GL_CONVOLUTION_1D_EXT (1,) -GL_CONVOLUTION_2D_EXT (1,) -GL_CURRENT_BINORMAL_EXT (1,) -GL_CURRENT_FOG_COORDINATE_EXT (1,) -GL_CURRENT_MATRIX_ARB (4,4) -GL_CURRENT_MATRIX_NV (4,4) -GL_CURRENT_MATRIX_STACK_DEPTH_ARB (1,) -GL_CURRENT_MATRIX_STACK_DEPTH_NV (1,) -GL_CURRENT_OCCLUSION_QUERY_ID_NV (1,) -GL_CURRENT_PALETTE_MATRIX_ARB -GL_CURRENT_SECONDARY_COLOR_EXT (1,) -GL_CURRENT_TANGENT_EXT (1,) -GL_CURRENT_VERTEX_WEIGHT_EXT (1,) -GL_CURRENT_WEIGHT_ARB (1,) -GL_DEPTH_BOUNDS_EXT (1,) -GL_DEPTH_BOUNDS_TEST_EXT (1,) -GL_DEPTH_CLAMP_NV (1,) -GL_DRAW_BUFFER0_ARB -GL_DRAW_BUFFER0_ATI -GL_DRAW_BUFFER10_ARB -GL_DRAW_BUFFER10_ATI -GL_DRAW_BUFFER11_ARB -GL_DRAW_BUFFER11_ATI -GL_DRAW_BUFFER12_ARB -GL_DRAW_BUFFER12_ATI -GL_DRAW_BUFFER13_ARB -GL_DRAW_BUFFER13_ATI -GL_DRAW_BUFFER14_ARB -GL_DRAW_BUFFER14_ATI -GL_DRAW_BUFFER15_ARB -GL_DRAW_BUFFER15_ATI -GL_DRAW_BUFFER1_ARB -GL_DRAW_BUFFER1_ATI -GL_DRAW_BUFFER2_ARB -GL_DRAW_BUFFER2_ATI -GL_DRAW_BUFFER3_ARB -GL_DRAW_BUFFER3_ATI -GL_DRAW_BUFFER4_ARB -GL_DRAW_BUFFER4_ATI -GL_DRAW_BUFFER5_ARB -GL_DRAW_BUFFER5_ATI -GL_DRAW_BUFFER6_ARB -GL_DRAW_BUFFER6_ATI -GL_DRAW_BUFFER7_ARB -GL_DRAW_BUFFER7_ATI -GL_DRAW_BUFFER8_ARB -GL_DRAW_BUFFER8_ATI -GL_DRAW_BUFFER9_ARB -GL_DRAW_BUFFER9_ATI -GL_DS_BIAS_NV (1,) -GL_DS_SCALE_NV (1,) -GL_DT_BIAS_NV (1,) -GL_DT_SCALE_NV (1,) -GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB (1,) -GL_EDGE_FLAG_ARRAY_COUNT_EXT (1,) -GL_EDGE_FLAG_ARRAY_EXT -GL_EDGE_FLAG_ARRAY_STRIDE_EXT (1,) -GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB (1,) -GL_ELEMENT_ARRAY_TYPE_APPLE (1,) -GL_ELEMENT_ARRAY_TYPE_ATI (1,) -GL_EVAL_FRACTIONAL_TESSELLATION_NV (1,) -GL_EVAL_VERTEX_ATTRIB0_NV (1,) -GL_EVAL_VERTEX_ATTRIB10_NV (1,) -GL_EVAL_VERTEX_ATTRIB11_NV (1,) -GL_EVAL_VERTEX_ATTRIB12_NV (1,) -GL_EVAL_VERTEX_ATTRIB13_NV (1,) -GL_EVAL_VERTEX_ATTRIB14_NV (1,) -GL_EVAL_VERTEX_ATTRIB15_NV (1,) -GL_EVAL_VERTEX_ATTRIB1_NV (1,) -GL_EVAL_VERTEX_ATTRIB2_NV (1,) -GL_EVAL_VERTEX_ATTRIB3_NV (1,) -GL_EVAL_VERTEX_ATTRIB4_NV (1,) -GL_EVAL_VERTEX_ATTRIB5_NV (1,) -GL_EVAL_VERTEX_ATTRIB6_NV (1,) -GL_EVAL_VERTEX_ATTRIB7_NV (1,) -GL_EVAL_VERTEX_ATTRIB8_NV (1,) -GL_EVAL_VERTEX_ATTRIB9_NV (1,) -GL_FLOAT_CLEAR_COLOR_VALUE_NV (4,) -GL_FLOAT_RGBA_MODE_NV (1,) -GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB (1,) -GL_FOG_COORDINATE_ARRAY_STRIDE_EXT (1,) -GL_FOG_COORDINATE_ARRAY_TYPE_EXT (1,) -GL_FOG_DISTANCE_MODE_NV (1,) -GL_FRAGMENT_PROGRAM_ARB (1,) -GL_FRAGMENT_PROGRAM_BINDING_NV (1,) -GL_FRAGMENT_PROGRAM_NV (1,) -GL_FRAGMENT_SHADER_ATI (1,) -GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB (1,) -GL_FRAMEBUFFER_BINDING_EXT (1,) -GL_GENERATE_MIPMAP_HINT_SGIS (1,) -GL_GLOBAL_ALPHA_FACTOR_SUN (1,) -GL_GREEN_MAX_CLAMP_INGR (1,) -GL_GREEN_MIN_CLAMP_INGR (1,) -GL_HISTOGRAM_EXT (1,) -GL_HI_BIAS_NV (1,) -GL_HI_SCALE_NV (1,) -GL_INDEX_ARRAY_BUFFER_BINDING_ARB (1,) -GL_INDEX_ARRAY_COUNT_EXT (1,) -GL_INDEX_ARRAY_EXT -GL_INDEX_ARRAY_STRIDE_EXT (1,) -GL_INDEX_ARRAY_TYPE_EXT (1,) -GL_INTERLACE_OML (1,) -GL_INTERLACE_READ_INGR (1,) -GL_INTERLACE_READ_OML (1,) -GL_INTERLACE_SGIX (1,) -GL_LIGHT_MODEL_COLOR_CONTROL_EXT (1,) -GL_LO_BIAS_NV (1,) -GL_LO_SCALE_NV (1,) -GL_MAGNITUDE_BIAS_NV (1,) -GL_MAGNITUDE_SCALE_NV (1,) -GL_MAP1_VERTEX_ATTRIB0_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB10_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB11_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB12_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB13_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB14_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB15_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB1_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB2_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB3_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB4_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB5_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB6_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB7_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB8_4_NV (4,) -GL_MAP1_VERTEX_ATTRIB9_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB0_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB10_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB11_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB12_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB13_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB14_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB15_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB1_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB2_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB3_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB4_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB5_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB6_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB7_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB8_4_NV (4,) -GL_MAP2_VERTEX_ATTRIB9_4_NV (4,) -GL_MATRIX_INDEX_ARRAY_SIZE_ARB (1,) -GL_MATRIX_INDEX_ARRAY_STRIDE_ARB (1,) -GL_MATRIX_INDEX_ARRAY_TYPE_ARB (1,) -GL_MAX_3D_TEXTURE_SIZE_EXT (1,) -GL_MAX_ASYNC_DRAW_PIXELS_SGIX (1,) -GL_MAX_ASYNC_HISTOGRAM_SGIX (1,) -GL_MAX_ASYNC_READ_PIXELS_SGIX (1,) -GL_MAX_ASYNC_TEX_IMAGE_SGIX (1,) -GL_MAX_COLOR_ATTACHMENTS_EXT (1,) -GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI (1,) -GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB (1,) -GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB (1,) -GL_MAX_DRAW_BUFFERS_ARB (1,) -GL_MAX_DRAW_BUFFERS_ATI (1,) -GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV (1,) -GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB (1,) -GL_MAX_GENERAL_COMBINERS_NV (1,) -GL_MAX_MAP_TESSELLATION_NV (1,) -GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB -GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT -GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT -GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT -GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT -GL_MAX_PALETTE_MATRICES_ARB -GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT -GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI (1,) -GL_MAX_PROGRAM_MATRICES_ARB (1,) -GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB (1,) -GL_MAX_RATIONAL_EVAL_ORDER_NV (1,) -GL_MAX_RECTANGLE_TEXTURE_SIZE_NV (1,) -GL_MAX_RENDERBUFFER_SIZE_EXT (1,) -GL_MAX_SHININESS_NV (1,) -GL_MAX_SPOT_EXPONENT_NV (1,) -GL_MAX_TEXTURE_COORDS_ARB (1,) -GL_MAX_TEXTURE_COORDS_NV (1,) -GL_MAX_TEXTURE_IMAGE_UNITS_ARB (1,) -GL_MAX_TEXTURE_IMAGE_UNITS_NV (1,) -GL_MAX_TEXTURE_LOD_BIAS_EXT (1,) -GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT (1,) -GL_MAX_TRACK_MATRICES_NV (1,) -GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV (1,) -GL_MAX_VARYING_FLOATS_ARB (1,) -GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV (1,) -GL_MAX_VERTEX_ATTRIBS_ARB (1,) -GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT -GL_MAX_VERTEX_SHADER_INVARIANTS_EXT -GL_MAX_VERTEX_SHADER_LOCALS_EXT -GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT -GL_MAX_VERTEX_SHADER_VARIANTS_EXT -GL_MAX_VERTEX_STREAMS_ATI -GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB (1,) -GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB (1,) -GL_MAX_VERTEX_UNITS_ARB (1,) -GL_MINMAX_EXT (1,) -GL_MODELVIEW1_MATRIX_EXT (4,4) -GL_MODELVIEW1_STACK_DEPTH_EXT (1,) -GL_MULTISAMPLE_3DFX (1,) -GL_MULTISAMPLE_ARB (1,) -GL_MULTISAMPLE_FILTER_HINT_NV (1,) -GL_MULTISAMPLE_SGIS (1,) -GL_NORMAL_ARRAY_BUFFER_BINDING_ARB (1,) -GL_NORMAL_ARRAY_COUNT_EXT (1,) -GL_NORMAL_ARRAY_EXT -GL_NORMAL_ARRAY_STRIDE_EXT (1,) -GL_NORMAL_ARRAY_TYPE_EXT (1,) -GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB (1,) -GL_NUM_GENERAL_COMBINERS_NV (1,) -GL_OCCLUSION_TEST_HP (1,) -GL_OCCLUSION_TEST_RESULT_HP (1,) -GL_PACK_CMYK_HINT_EXT (1,) -GL_PACK_IMAGE_HEIGHT_EXT (1,) -GL_PACK_INVERT_MESA (1,) -GL_PACK_RESAMPLE_OML (1,) -GL_PACK_RESAMPLE_SGIX (1,) -GL_PACK_SKIP_IMAGES_EXT (1,) -GL_PARALLEL_ARRAYS_INTEL (1,) -GL_PER_STAGE_CONSTANTS_NV (1,) -GL_PIXEL_COUNTER_BITS_NV (1,) -GL_PIXEL_PACK_BUFFER_BINDING_ARB (1,) -GL_PIXEL_PACK_BUFFER_BINDING_EXT (1,) -GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT -GL_PIXEL_UNPACK_BUFFER_BINDING_ARB (1,) -GL_PIXEL_UNPACK_BUFFER_BINDING_EXT (1,) -GL_PN_TRIANGLES_NORMAL_MODE_ATI (1,) -GL_PN_TRIANGLES_POINT_MODE_ATI (1,) -GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI (1,) -GL_POINT_DISTANCE_ATTENUATION_ARB -GL_POINT_FADE_THRESHOLD_SIZE_ARB -GL_POINT_SIZE_MAX_ARB -GL_POINT_SIZE_MIN_ARB -GL_POINT_SPRITE_ARB (1,) -GL_POINT_SPRITE_NV (1,) -GL_POINT_SPRITE_R_MODE_NV (1,) -GL_POLYGON_OFFSET_BIAS_EXT (1,) -GL_POLYGON_OFFSET_EXT (1,) -GL_POLYGON_OFFSET_FACTOR_EXT (1,) -GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI (1,) -GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI (1,) -GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI (1,) -GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI (1,) -GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI (1,) -GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI (1,) -GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI (1,) -GL_POST_COLOR_MATRIX_RED_BIAS_SGI (1,) -GL_POST_COLOR_MATRIX_RED_SCALE_SGI (1,) -GL_POST_CONVOLUTION_ALPHA_BIAS_EXT (1,) -GL_POST_CONVOLUTION_ALPHA_SCALE_EXT (1,) -GL_POST_CONVOLUTION_BLUE_BIAS_EXT (1,) -GL_POST_CONVOLUTION_BLUE_SCALE_EXT (1,) -GL_POST_CONVOLUTION_COLOR_TABLE_SGI (1,) -GL_POST_CONVOLUTION_GREEN_BIAS_EXT (1,) -GL_POST_CONVOLUTION_GREEN_SCALE_EXT (1,) -GL_POST_CONVOLUTION_RED_BIAS_EXT (1,) -GL_POST_CONVOLUTION_RED_SCALE_EXT (1,) -GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX (1,) -GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX (1,) -GL_PRIMITIVE_RESTART_INDEX_NV (1,) -GL_PRIMITIVE_RESTART_NV (1,) -GL_PROGRAM_ERROR_POSITION_ARB (1,) -GL_PROGRAM_ERROR_POSITION_NV (1,) -GL_RASTER_POSITION_UNCLIPPED_IBM (1,) -GL_READ_PIXEL_DATA_RANGE_LENGTH_NV (1,) -GL_RED_MAX_CLAMP_INGR (1,) -GL_RED_MIN_CLAMP_INGR (1,) -GL_REGISTER_COMBINERS_NV (1,) -GL_RENDERBUFFER_BINDING_EXT (1,) -GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN (1,) -GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN (1,) -GL_REPLACEMENT_CODE_SUN (1,) -GL_RGBA_FLOAT_MODE_ARB (1,) -GL_SAMPLES_3DFX (1,) -GL_SAMPLES_ARB (1,) -GL_SAMPLES_SGIS (1,) -GL_SAMPLE_ALPHA_TO_COVERAGE_ARB (1,) -GL_SAMPLE_ALPHA_TO_MASK_SGIS (1,) -GL_SAMPLE_ALPHA_TO_ONE_ARB (1,) -GL_SAMPLE_ALPHA_TO_ONE_SGIS (1,) -GL_SAMPLE_BUFFERS_3DFX (1,) -GL_SAMPLE_BUFFERS_ARB (1,) -GL_SAMPLE_BUFFERS_SGIS (1,) -GL_SAMPLE_COVERAGE_ARB (1,) -GL_SAMPLE_COVERAGE_INVERT_ARB (1,) -GL_SAMPLE_COVERAGE_VALUE_ARB (1,) -GL_SAMPLE_MASK_INVERT_SGIS (1,) -GL_SAMPLE_MASK_SGIS (1,) -GL_SAMPLE_MASK_VALUE_SGIS (1,) -GL_SAMPLE_PATTERN_SGIS (1,) -GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB (1,) -GL_SECONDARY_COLOR_ARRAY_SIZE_EXT (1,) -GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT (1,) -GL_SECONDARY_COLOR_ARRAY_TYPE_EXT (1,) -GL_SEPARABLE_2D_EXT (1,) -GL_STENCIL_BACK_FAIL_ATI -GL_STENCIL_BACK_FUNC_ATI -GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI -GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI -GL_STENCIL_CLEAR_TAG_VALUE_EXT -GL_STENCIL_TAG_BITS_EXT -GL_STENCIL_TEST_TWO_SIDE_EXT (1,) -GL_TANGENT_ARRAY_EXT -GL_TANGENT_ARRAY_STRIDE_EXT (1,) -GL_TANGENT_ARRAY_TYPE_EXT (1,) -GL_TEXTURE_1D_BINDING_EXT (1,) -GL_TEXTURE_1D_STACK_BINDING_MESAX -GL_TEXTURE_1D_STACK_MESAX -GL_TEXTURE_2D_BINDING_EXT (1,) -GL_TEXTURE_2D_STACK_BINDING_MESAX -GL_TEXTURE_2D_STACK_MESAX -GL_TEXTURE_3D_BINDING_EXT (1,) -GL_TEXTURE_3D_EXT (1,) -GL_TEXTURE_BINDING_CUBE_MAP_ARB (1,) -GL_TEXTURE_BINDING_RECTANGLE_NV (1,) -GL_TEXTURE_COLOR_TABLE_SGI (1,) -GL_TEXTURE_COMPRESSION_HINT_ARB (1,) -GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB (1,) -GL_TEXTURE_COORD_ARRAY_COUNT_EXT (1,) -GL_TEXTURE_COORD_ARRAY_EXT -GL_TEXTURE_COORD_ARRAY_SIZE_EXT (1,) -GL_TEXTURE_COORD_ARRAY_STRIDE_EXT (1,) -GL_TEXTURE_COORD_ARRAY_TYPE_EXT (1,) -GL_TEXTURE_CUBE_MAP_ARB (1,) -GL_TEXTURE_RECTANGLE_NV (1,) -GL_TEXTURE_SHADER_NV (1,) -GL_TEXT_FRAGMENT_SHADER_ATI (1,) -GL_TRANSPOSE_COLOR_MATRIX_ARB (4,4) -GL_TRANSPOSE_CURRENT_MATRIX_ARB (4,4) -GL_TRANSPOSE_MODELVIEW_MATRIX_ARB (4,4) -GL_TRANSPOSE_PROJECTION_MATRIX_ARB (4,4) -GL_TRANSPOSE_TEXTURE_MATRIX_ARB (4,4) -GL_UNPACK_CMYK_HINT_EXT (1,) -GL_UNPACK_IMAGE_HEIGHT_EXT (1,) -GL_UNPACK_RESAMPLE_OML (1,) -GL_UNPACK_RESAMPLE_SGIX (1,) -GL_UNPACK_SKIP_IMAGES_EXT (1,) -GL_VERTEX_ARRAY_BUFFER_BINDING_ARB (1,) -GL_VERTEX_ARRAY_COUNT_EXT (1,) -GL_VERTEX_ARRAY_EXT -GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE (1,) -GL_VERTEX_ARRAY_RANGE_LENGTH_NV (1,) -GL_VERTEX_ARRAY_RANGE_VALID_NV (1,) -GL_VERTEX_ARRAY_SIZE_EXT (1,) -GL_VERTEX_ARRAY_STRIDE_EXT (1,) -GL_VERTEX_ARRAY_TYPE_EXT (1,) -GL_VERTEX_ATTRIB_ARRAY0_NV -GL_VERTEX_ATTRIB_ARRAY10_NV -GL_VERTEX_ATTRIB_ARRAY11_NV -GL_VERTEX_ATTRIB_ARRAY12_NV -GL_VERTEX_ATTRIB_ARRAY13_NV -GL_VERTEX_ATTRIB_ARRAY14_NV -GL_VERTEX_ATTRIB_ARRAY15_NV -GL_VERTEX_ATTRIB_ARRAY1_NV -GL_VERTEX_ATTRIB_ARRAY2_NV -GL_VERTEX_ATTRIB_ARRAY3_NV -GL_VERTEX_ATTRIB_ARRAY4_NV -GL_VERTEX_ATTRIB_ARRAY5_NV -GL_VERTEX_ATTRIB_ARRAY6_NV -GL_VERTEX_ATTRIB_ARRAY7_NV -GL_VERTEX_ATTRIB_ARRAY8_NV -GL_VERTEX_ATTRIB_ARRAY9_NV -GL_VERTEX_BLEND_ARB (1,) -GL_VERTEX_PROGRAM_ARB (1,) -GL_VERTEX_PROGRAM_BINDING_NV (1,) -GL_VERTEX_PROGRAM_NV (1,) -GL_VERTEX_PROGRAM_POINT_SIZE_ARB (1,) -GL_VERTEX_PROGRAM_POINT_SIZE_NV (1,) -GL_VERTEX_PROGRAM_TWO_SIDE_ARB (1,) -GL_VERTEX_PROGRAM_TWO_SIDE_NV (1,) -GL_VERTEX_SHADER_BINDING_EXT -GL_VERTEX_SHADER_EXT (1,) -GL_VERTEX_SHADER_INSTRUCTIONS_EXT -GL_VERTEX_SHADER_INVARIANTS_EXT -GL_VERTEX_SHADER_LOCALS_EXT -GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT -GL_VERTEX_SHADER_OPTIMIZED_EXT (1,) -GL_VERTEX_SHADER_VARIANTS_EXT -GL_VERTEX_WEIGHT_ARRAY_EXT -GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT -GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT (1,) -GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT (1,) -GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT (1,) -GL_VIBRANCE_BIAS_NV (1,) -GL_VIBRANCE_SCALE_NV (1,) -GL_WEIGHT_ARRAY_ARB -GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB (1,) -GL_WEIGHT_ARRAY_SIZE_ARB (1,) -GL_WEIGHT_ARRAY_STRIDE_ARB (1,) -GL_WEIGHT_ARRAY_TYPE_ARB (1,) -GL_WEIGHT_SUM_UNITY_ARB (1,) -GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV (1,) \ No newline at end of file diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/numpy_formathandler.c /tmp/6jwPQaot5C/pyopengl-3.0.0/src/numpy_formathandler.c --- pyopengl-3.0.0~b6/src/numpy_formathandler.c 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/src/numpy_formathandler.c 2009-03-23 23:02:10.000000000 +0000 @@ -0,0 +1,1327 @@ +/* Generated by Cython 0.9.6.14 on Mon Mar 23 19:02:09 2009 */ + +#define PY_SSIZE_T_CLEAN +#include "Python.h" +#include "structmember.h" +#ifndef PY_LONG_LONG + #define PY_LONG_LONG LONG_LONG +#endif +#if PY_VERSION_HEX < 0x02050000 + typedef int Py_ssize_t; + #define PY_SSIZE_T_MAX INT_MAX + #define PY_SSIZE_T_MIN INT_MIN + #define PyInt_FromSsize_t(z) PyInt_FromLong(z) + #define PyInt_AsSsize_t(o) PyInt_AsLong(o) + #define PyNumber_Index(o) PyNumber_Int(o) + #define PyIndex_Check(o) PyNumber_Check(o) +#endif +#if PY_VERSION_HEX < 0x02040000 + #define METH_COEXIST 0 +#endif +#ifndef __stdcall + #define __stdcall +#endif +#ifndef __cdecl + #define __cdecl +#endif +#ifdef __cplusplus +#define __PYX_EXTERN_C extern "C" +#else +#define __PYX_EXTERN_C extern +#endif +#include + + +#ifdef __GNUC__ +#define INLINE __inline__ +#elif _WIN32 +#define INLINE __inline +#else +#define INLINE +#endif + +typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/ +typedef struct {PyObject **p; char *s; long n; int is_unicode;} __Pyx_StringTabEntry; /*proto*/ + + + +static int __pyx_skip_dispatch = 0; + + +/* Type Conversion Predeclarations */ + +#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False)) +static INLINE int __Pyx_PyObject_IsTrue(PyObject* x); +static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x); +static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x); +static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b); + +#define __pyx_PyInt_AsLong(x) (PyInt_CheckExact(x) ? PyInt_AS_LONG(x) : PyInt_AsLong(x)) +#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) + +static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x); +static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x); +static INLINE char __pyx_PyInt_char(PyObject* x); +static INLINE short __pyx_PyInt_short(PyObject* x); +static INLINE int __pyx_PyInt_int(PyObject* x); +static INLINE long __pyx_PyInt_long(PyObject* x); +static INLINE signed char __pyx_PyInt_signed_char(PyObject* x); +static INLINE signed short __pyx_PyInt_signed_short(PyObject* x); +static INLINE signed int __pyx_PyInt_signed_int(PyObject* x); +static INLINE signed long __pyx_PyInt_signed_long(PyObject* x); +static INLINE long double __pyx_PyInt_long_double(PyObject* x); +#ifdef __GNUC__ +/* Test for GCC > 2.95 */ +#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) +#define likely(x) __builtin_expect(!!(x), 1) +#define unlikely(x) __builtin_expect(!!(x), 0) +#else /* __GNUC__ > 2 ... */ +#define likely(x) (x) +#define unlikely(x) (x) +#endif /* __GNUC__ > 2 ... */ +#else /* __GNUC__ */ +#define likely(x) (x) +#define unlikely(x) (x) +#endif /* __GNUC__ */ + +static PyObject *__pyx_m; +static PyObject *__pyx_b; +static PyObject *__pyx_empty_tuple; +static int __pyx_lineno; +static int __pyx_clineno = 0; +static char * __pyx_cfilenm= __FILE__; +static char *__pyx_filename; +static char **__pyx_f; + +static char __pyx_mdoc[] = "Accelerator for numpy format handler operations"; + +static INLINE void __Pyx_RaiseArgtupleTooLong(Py_ssize_t num_expected, Py_ssize_t num_found); /*proto*/ + +static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ + +static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ + +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ + +static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ + +static void __Pyx_AddTraceback(char *funcname); /*proto*/ + +/* Declarations */ + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":12 + * self.array = None + * + * cdef class FromParam: # <<<<<<<<<<<<<< + * """from_param as a helper object""" + * cdef public object dataPointer, asArray + */ + +struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam { + PyObject_HEAD + PyObject *dataPointer; + PyObject *asArray; + PyObject *converted; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":5 + * import traceback, weakref + * + * cdef class ArrayHolder: # <<<<<<<<<<<<<< + * cdef public object array + * def __init__( self, array ): + */ + +struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder { + PyObject_HEAD + PyObject *array; +}; + +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_19numpy_formathandler_FromParam = 0; + + +/* Implementation of OpenGL_accelerate.numpy_formathandler */ + + +static PyObject *__pyx_n___init__; +static PyObject *__pyx_n___call__; +static PyObject *__pyx_n_ctypes; +static PyObject *__pyx_n_c_void_p; +static PyObject *__pyx_n_traceback; +static PyObject *__pyx_n_weakref; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":7 + * cdef class ArrayHolder: + * cdef public object array + * def __init__( self, array ): # <<<<<<<<<<<<<< + * self.array = array + * def __call__( self, weak ): + */ + +static int __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_array = 0; + int __pyx_r; + static char *__pyx_argnames[] = {"array",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_array = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_array))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.ArrayHolder.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":8 + * cdef public object array + * def __init__( self, array ): + * self.array = array # <<<<<<<<<<<<<< + * def __call__( self, weak ): + * self.array = None + */ + Py_INCREF(__pyx_v_array); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)__pyx_v_self)->array); + ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)__pyx_v_self)->array = __pyx_v_array; + + __pyx_r = 0; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":9 + * def __init__( self, array ): + * self.array = array + * def __call__( self, weak ): # <<<<<<<<<<<<<< + * self.array = None + * + */ + +static PyObject *__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_weak = 0; + PyObject *__pyx_r; + static char *__pyx_argnames[] = {"weak",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_weak = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_weak))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.ArrayHolder.__call__"); + return NULL; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":10 + * self.array = array + * def __call__( self, weak ): + * self.array = None # <<<<<<<<<<<<<< + * + * cdef class FromParam: + */ + Py_INCREF(Py_None); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)__pyx_v_self)->array); + ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)__pyx_v_self)->array = Py_None; + + __pyx_r = Py_None; Py_INCREF(Py_None); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":16 + * cdef public object dataPointer, asArray + * cdef list converted + * def __init__( self, dataPointer, asArray ): # <<<<<<<<<<<<<< + * self.dataPointer = dataPointer + * self.asArray = asArray + */ + +static int __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_dataPointer = 0; + PyObject *__pyx_v_asArray = 0; + int __pyx_r; + static char *__pyx_argnames[] = {"dataPointer","asArray",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 2)) { + __pyx_v_dataPointer = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_asArray = PyTuple_GET_ITEM(__pyx_args, 1); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_dataPointer, &__pyx_v_asArray))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.FromParam.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":17 + * cdef list converted + * def __init__( self, dataPointer, asArray ): + * self.dataPointer = dataPointer # <<<<<<<<<<<<<< + * self.asArray = asArray + * def __call__( self, cls, instance, typeCode=None ): + */ + Py_INCREF(__pyx_v_dataPointer); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->dataPointer); + ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->dataPointer = __pyx_v_dataPointer; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":18 + * def __init__( self, dataPointer, asArray ): + * self.dataPointer = dataPointer + * self.asArray = asArray # <<<<<<<<<<<<<< + * def __call__( self, cls, instance, typeCode=None ): + * cdef object pointer + */ + Py_INCREF(__pyx_v_asArray); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->asArray); + ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->asArray = __pyx_v_asArray; + + __pyx_r = 0; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":19 + * self.dataPointer = dataPointer + * self.asArray = asArray + * def __call__( self, cls, instance, typeCode=None ): # <<<<<<<<<<<<<< + * cdef object pointer + * try: + */ + +static PyObject *__pyx_n_TypeError; +static PyObject *__pyx_n__temporary_array_; + +static PyObject *__pyx_builtin_TypeError; + +static PyObject *__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_cls = 0; + PyObject *__pyx_v_instance = 0; + PyObject *__pyx_v_typeCode = 0; + PyObject *__pyx_v_pointer; + PyObject *__pyx_v_err; + PyObject *__pyx_v_array; + PyObject *__pyx_v_dp; + PyObject *__pyx_v_pp; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + PyObject *__pyx_2 = 0; + int __pyx_3; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + PyObject *__pyx_7 = 0; + static char *__pyx_argnames[] = {"cls","instance","typeCode",0}; + __pyx_v_typeCode = Py_None; + if (likely(!__pyx_kwds) && likely(2 <= PyTuple_GET_SIZE(__pyx_args)) && likely(PyTuple_GET_SIZE(__pyx_args) <= 3)) { + __pyx_v_cls = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_instance = PyTuple_GET_ITEM(__pyx_args, 1); + if (PyTuple_GET_SIZE(__pyx_args) > 2) { + __pyx_v_typeCode = PyTuple_GET_ITEM(__pyx_args, 2); + } + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO|O", __pyx_argnames, &__pyx_v_cls, &__pyx_v_instance, &__pyx_v_typeCode))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.FromParam.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_pointer = Py_None; Py_INCREF(Py_None); + __pyx_v_err = Py_None; Py_INCREF(Py_None); + __pyx_v_array = Py_None; Py_INCREF(Py_None); + __pyx_v_dp = Py_None; Py_INCREF(Py_None); + __pyx_v_pp = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":21 + * def __call__( self, cls, instance, typeCode=None ): + * cdef object pointer + * try: # <<<<<<<<<<<<<< + * pointer = self.dataPointer( instance ) + * except TypeError, err: + */ + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":22 + * cdef object pointer + * try: + * pointer = self.dataPointer( instance ) # <<<<<<<<<<<<<< + * except TypeError, err: + * array = self.asArray( instance, typeCode ) + */ + __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L4;} + Py_INCREF(__pyx_v_instance); + PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_instance); + __pyx_2 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->dataPointer, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L4;} + Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0; + Py_DECREF(__pyx_v_pointer); + __pyx_v_pointer = __pyx_2; + __pyx_2 = 0; + } + /*else:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":30 + * return pp + * else: + * return c_void_p( pointer ) # <<<<<<<<<<<<<< + */ + __pyx_7 = __Pyx_GetName(__pyx_m, __pyx_n_c_void_p); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_pointer); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_pointer); + __pyx_6 = PyObject_Call(__pyx_7, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_7); __pyx_7 = 0; + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + __pyx_r = __pyx_6; + __pyx_6 = 0; + goto __pyx_L0; + } + goto __pyx_L5; + __pyx_L4:; + Py_XDECREF(__pyx_1); __pyx_1 = 0; + Py_XDECREF(__pyx_2); __pyx_2 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":23 + * try: + * pointer = self.dataPointer( instance ) + * except TypeError, err: # <<<<<<<<<<<<<< + * array = self.asArray( instance, typeCode ) + * dp = self.dataPointer( array ) + */ + __pyx_3 = PyErr_ExceptionMatches(__pyx_builtin_TypeError); + if (__pyx_3) { + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.__call__"); + if (__Pyx_GetException(&__pyx_1, &__pyx_2, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_2); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_2; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":24 + * pointer = self.dataPointer( instance ) + * except TypeError, err: + * array = self.asArray( instance, typeCode ) # <<<<<<<<<<<<<< + * dp = self.dataPointer( array ) + * pp = c_void_p( dp ) + */ + __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_instance); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_instance); + Py_INCREF(__pyx_v_typeCode); + PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_typeCode); + __pyx_6 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->asArray, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_v_array); + __pyx_v_array = __pyx_6; + __pyx_6 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":25 + * except TypeError, err: + * array = self.asArray( instance, typeCode ) + * dp = self.dataPointer( array ) # <<<<<<<<<<<<<< + * pp = c_void_p( dp ) + * pp._temporary_array_ = ArrayHolder( array ) + */ + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_array); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_array); + __pyx_6 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)__pyx_v_self)->dataPointer, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_v_dp); + __pyx_v_dp = __pyx_6; + __pyx_6 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":26 + * array = self.asArray( instance, typeCode ) + * dp = self.dataPointer( array ) + * pp = c_void_p( dp ) # <<<<<<<<<<<<<< + * pp._temporary_array_ = ArrayHolder( array ) + * return pp + */ + __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n_c_void_p); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_dp); + PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_dp); + __pyx_7 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0; + Py_DECREF(__pyx_v_pp); + __pyx_v_pp = __pyx_7; + __pyx_7 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":27 + * dp = self.dataPointer( array ) + * pp = c_void_p( dp ) + * pp._temporary_array_ = ArrayHolder( array ) # <<<<<<<<<<<<<< + * return pp + * else: + */ + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_array); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_array); + __pyx_6 = PyObject_Call(((PyObject*)__pyx_ptype_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder), ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + if (PyObject_SetAttr(__pyx_v_pp, __pyx_n__temporary_array_, __pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":28 + * pp = c_void_p( dp ) + * pp._temporary_array_ = ArrayHolder( array ) + * return pp # <<<<<<<<<<<<<< + * else: + * return c_void_p( pointer ) + */ + Py_INCREF(__pyx_v_pp); + __pyx_r = __pyx_v_pp; + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L0; + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L5; + } + goto __pyx_L1; + __pyx_L5:; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + Py_XDECREF(__pyx_7); + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler.FromParam.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_pointer); + Py_DECREF(__pyx_v_err); + Py_DECREF(__pyx_v_array); + Py_DECREF(__pyx_v_dp); + Py_DECREF(__pyx_v_pp); + return __pyx_r; +} + +static __Pyx_InternTabEntry __pyx_intern_tab[] = { + {&__pyx_n_TypeError, "TypeError"}, + {&__pyx_n___call__, "__call__"}, + {&__pyx_n___init__, "__init__"}, + {&__pyx_n__temporary_array_, "_temporary_array_"}, + {&__pyx_n_c_void_p, "c_void_p"}, + {&__pyx_n_ctypes, "ctypes"}, + {&__pyx_n_traceback, "traceback"}, + {&__pyx_n_weakref, "weakref"}, + {0, 0} +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)o); + p->array = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)o; + Py_XDECREF(p->array); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)o; + if (p->array) { + e = (*v)(p->array, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder *)o; + PyObject* tmp; + tmp = ((PyObject*)p->array); + p->array = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static struct PyMemberDef __pyx_members_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder[] = { + {"array", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, array), 0, 0}, + {0, 0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_ArrayHolder = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_ArrayHolder = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_ArrayHolder = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_ArrayHolder = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.numpy_formathandler.ArrayHolder", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_ArrayHolder, /*tp_as_number*/ + &__pyx_tp_as_sequence_ArrayHolder, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_ArrayHolder, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_ArrayHolder, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + 0, /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_methods*/ + __pyx_members_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_11ArrayHolder___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_19numpy_formathandler_FromParam(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)o); + p->dataPointer = Py_None; Py_INCREF(Py_None); + p->asArray = Py_None; Py_INCREF(Py_None); + p->converted = ((PyObject *)Py_None); Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_19numpy_formathandler_FromParam(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)o; + Py_XDECREF(p->dataPointer); + Py_XDECREF(p->asArray); + Py_XDECREF(((PyObject *)p->converted)); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_19numpy_formathandler_FromParam(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)o; + if (p->dataPointer) { + e = (*v)(p->dataPointer, a); if (e) return e; + } + if (p->asArray) { + e = (*v)(p->asArray, a); if (e) return e; + } + if (p->converted) { + e = (*v)(p->converted, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_19numpy_formathandler_FromParam(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *p = (struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam *)o; + PyObject* tmp; + tmp = ((PyObject*)p->dataPointer); + p->dataPointer = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->asArray); + p->asArray = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->converted); + p->converted = ((PyObject *)Py_None); Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_19numpy_formathandler_FromParam[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static struct PyMemberDef __pyx_members_17OpenGL_accelerate_19numpy_formathandler_FromParam[] = { + {"dataPointer", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam, dataPointer), 0, 0}, + {"asArray", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam, asArray), 0, 0}, + {0, 0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_FromParam = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_FromParam = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_FromParam = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_FromParam = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_19numpy_formathandler_FromParam = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.numpy_formathandler.FromParam", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_19numpy_formathandler_FromParam), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_FromParam, /*tp_as_number*/ + &__pyx_tp_as_sequence_FromParam, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_FromParam, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_FromParam, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + "from_param as a helper object", /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_methods*/ + __pyx_members_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_19numpy_formathandler_9FromParam___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_19numpy_formathandler_FromParam, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static struct PyMethodDef __pyx_methods[] = { + {0, 0, 0, 0} +}; + +static void __pyx_init_filenames(void); /*proto*/ + +PyMODINIT_FUNC initnumpy_formathandler(void); /*proto*/ +PyMODINIT_FUNC initnumpy_formathandler(void) { + PyObject *__pyx_1 = 0; + PyObject *__pyx_2 = 0; + /*--- Libary function declarations ---*/ + __pyx_init_filenames(); + /*--- Module creation code ---*/ + __pyx_m = Py_InitModule4("numpy_formathandler", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION); + if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + __pyx_b = PyImport_AddModule("__builtin__"); + if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + /*--- Intern code ---*/ + if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + /*--- String init code ---*/ + /*--- Builtin init code ---*/ + __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_skip_dispatch = 0; + /*--- Global init code ---*/ + /*--- Function export code ---*/ + /*--- Type init code ---*/ + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "ArrayHolder", (PyObject *)&__pyx_type_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder = &__pyx_type_17OpenGL_accelerate_19numpy_formathandler_ArrayHolder; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_19numpy_formathandler_FromParam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "FromParam", (PyObject *)&__pyx_type_17OpenGL_accelerate_19numpy_formathandler_FromParam) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_19numpy_formathandler_FromParam = &__pyx_type_17OpenGL_accelerate_19numpy_formathandler_FromParam; + /*--- Type import code ---*/ + /*--- Function import code ---*/ + /*--- Execution code ---*/ + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":2 + * """Accelerator for numpy format handler operations""" + * from ctypes import c_void_p # <<<<<<<<<<<<<< + * import traceback, weakref + * + */ + __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_n_c_void_p); + PyList_SET_ITEM(__pyx_1, 0, __pyx_n_c_void_p); + __pyx_2 = __Pyx_Import(__pyx_n_ctypes, ((PyObject *)__pyx_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0; + __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_c_void_p); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_c_void_p, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":3 + * """Accelerator for numpy format handler operations""" + * from ctypes import c_void_p + * import traceback, weakref # <<<<<<<<<<<<<< + * + * cdef class ArrayHolder: + */ + __pyx_2 = __Pyx_Import(__pyx_n_traceback, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_traceback, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + __pyx_1 = __Pyx_Import(__pyx_n_weakref, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_weakref, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/numpy_formathandler.pyx":19 + * self.dataPointer = dataPointer + * self.asArray = asArray + * def __call__( self, cls, instance, typeCode=None ): # <<<<<<<<<<<<<< + * cdef object pointer + * try: + */ + return; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_2); + __Pyx_AddTraceback("OpenGL_accelerate.numpy_formathandler"); +} + +static char *__pyx_filenames[] = { + "numpy_formathandler.pyx", +}; + +/* Runtime support code */ + +static void __pyx_init_filenames(void) { + __pyx_f = __pyx_filenames; +} + +static INLINE void __Pyx_RaiseArgtupleTooLong( + Py_ssize_t num_expected, + Py_ssize_t num_found) +{ + const char* error_message = + #if PY_VERSION_HEX < 0x02050000 + "function takes at most %d positional arguments (%d given)"; + #else + "function takes at most %zd positional arguments (%zd given)"; + #endif + PyErr_Format(PyExc_TypeError, error_message, num_expected, num_found); +} + +static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { + PyObject *__import__ = 0; + PyObject *empty_list = 0; + PyObject *module = 0; + PyObject *global_dict = 0; + PyObject *empty_dict = 0; + PyObject *list; + __import__ = PyObject_GetAttrString(__pyx_b, "__import__"); + if (!__import__) + goto bad; + if (from_list) + list = from_list; + else { + empty_list = PyList_New(0); + if (!empty_list) + goto bad; + list = empty_list; + } + global_dict = PyModule_GetDict(__pyx_m); + if (!global_dict) + goto bad; + empty_dict = PyDict_New(); + if (!empty_dict) + goto bad; + module = PyObject_CallFunction(__import__, "OOOO", + name, global_dict, empty_dict, list); +bad: + Py_XDECREF(empty_list); + Py_XDECREF(__import__); + Py_XDECREF(empty_dict); + return module; +} + +static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { + PyObject *result; + result = PyObject_GetAttr(dict, name); + if (!result) + PyErr_SetObject(PyExc_NameError, name); + return result; +} + +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { + PyObject *tmp_type, *tmp_value, *tmp_tb; + PyThreadState *tstate = PyThreadState_Get(); + PyErr_Fetch(type, value, tb); + PyErr_NormalizeException(type, value, tb); + if (PyErr_Occurred()) + goto bad; + Py_INCREF(*type); + Py_INCREF(*value); + Py_INCREF(*tb); + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = *type; + tstate->exc_value = *value; + tstate->exc_traceback = *tb; + /* Make sure tstate is in a consistent state when we XDECREF + these objects (XDECREF may run arbitrary code). */ + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); + return 0; +bad: + Py_XDECREF(*type); + Py_XDECREF(*value); + Py_XDECREF(*tb); + return -1; +} + +static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { + while (t->p) { + *t->p = PyString_InternFromString(t->s); + if (!*t->p) + return -1; + ++t; + } + return 0; +} + +#include "compile.h" +#include "frameobject.h" +#include "traceback.h" + +static void __Pyx_AddTraceback(char *funcname) { + PyObject *py_srcfile = 0; + PyObject *py_funcname = 0; + PyObject *py_globals = 0; + PyObject *empty_string = 0; + PyCodeObject *py_code = 0; + PyFrameObject *py_frame = 0; + + py_srcfile = PyString_FromString(__pyx_filename); + if (!py_srcfile) goto bad; + if (__pyx_clineno) { + py_funcname = PyString_FromFormat( "%s (%s:%u)", funcname, __pyx_cfilenm, __pyx_clineno); + } + else { + py_funcname = PyString_FromString(funcname); + } + if (!py_funcname) goto bad; + py_globals = PyModule_GetDict(__pyx_m); + if (!py_globals) goto bad; + empty_string = PyString_FromString(""); + if (!empty_string) goto bad; + py_code = PyCode_New( + 0, /*int argcount,*/ + 0, /*int nlocals,*/ + 0, /*int stacksize,*/ + 0, /*int flags,*/ + empty_string, /*PyObject *code,*/ + __pyx_empty_tuple, /*PyObject *consts,*/ + __pyx_empty_tuple, /*PyObject *names,*/ + __pyx_empty_tuple, /*PyObject *varnames,*/ + __pyx_empty_tuple, /*PyObject *freevars,*/ + __pyx_empty_tuple, /*PyObject *cellvars,*/ + py_srcfile, /*PyObject *filename,*/ + py_funcname, /*PyObject *name,*/ + __pyx_lineno, /*int firstlineno,*/ + empty_string /*PyObject *lnotab*/ + ); + if (!py_code) goto bad; + py_frame = PyFrame_New( + PyThreadState_Get(), /*PyThreadState *tstate,*/ + py_code, /*PyCodeObject *code,*/ + py_globals, /*PyObject *globals,*/ + 0 /*PyObject *locals*/ + ); + if (!py_frame) goto bad; + py_frame->f_lineno = __pyx_lineno; + PyTraceBack_Here(py_frame); +bad: + Py_XDECREF(py_srcfile); + Py_XDECREF(py_funcname); + Py_XDECREF(empty_string); + Py_XDECREF(py_code); + Py_XDECREF(py_frame); +} + +/* Type Conversion Functions */ + +static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b) { + Py_ssize_t ival; + PyObject* x = PyNumber_Index(b); + if (!x) return -1; + ival = PyInt_AsSsize_t(x); + Py_DECREF(x); + return ival; +} + +static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { + if (x == Py_True) return 1; + else if (x == Py_False) return 0; + else return PyObject_IsTrue(x); +} + +static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) { + if (PyInt_CheckExact(x)) { + return PyInt_AS_LONG(x); + } + else if (PyLong_CheckExact(x)) { + return PyLong_AsLongLong(x); + } + else { + PY_LONG_LONG val; + PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; + val = __pyx_PyInt_AsLongLong(tmp); + Py_DECREF(tmp); + return val; + } +} + +static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x) { + if (PyInt_CheckExact(x)) { + long val = PyInt_AS_LONG(x); + if (unlikely(val < 0)) { + PyErr_SetString(PyExc_TypeError, "Negative assignment to unsigned type."); + return (unsigned PY_LONG_LONG)-1; + } + return val; + } + else if (PyLong_CheckExact(x)) { + return PyLong_AsUnsignedLongLong(x); + } + else { + PY_LONG_LONG val; + PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; + val = __pyx_PyInt_AsUnsignedLongLong(tmp); + Py_DECREF(tmp); + return val; + } +} + + +static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x) { + if (sizeof(unsigned char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + unsigned char val = (unsigned char)long_val; + if (unlikely((val != long_val) || (long_val < 0))) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned char"); + return (unsigned char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x) { + if (sizeof(unsigned short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + unsigned short val = (unsigned short)long_val; + if (unlikely((val != long_val) || (long_val < 0))) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned short"); + return (unsigned short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE char __pyx_PyInt_char(PyObject* x) { + if (sizeof(char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + char val = (char)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to char"); + return (char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE short __pyx_PyInt_short(PyObject* x) { + if (sizeof(short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + short val = (short)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to short"); + return (short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE int __pyx_PyInt_int(PyObject* x) { + if (sizeof(int) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + int val = (int)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); + return (int)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE long __pyx_PyInt_long(PyObject* x) { + if (sizeof(long) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + long val = (long)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); + return (long)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed char __pyx_PyInt_signed_char(PyObject* x) { + if (sizeof(signed char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed char val = (signed char)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed char"); + return (signed char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed short __pyx_PyInt_signed_short(PyObject* x) { + if (sizeof(signed short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed short val = (signed short)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed short"); + return (signed short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed int __pyx_PyInt_signed_int(PyObject* x) { + if (sizeof(signed int) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed int val = (signed int)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed int"); + return (signed int)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed long __pyx_PyInt_signed_long(PyObject* x) { + if (sizeof(signed long) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed long val = (signed long)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed long"); + return (signed long)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE long double __pyx_PyInt_long_double(PyObject* x) { + if (sizeof(long double) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + long double val = (long double)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to long double"); + return (long double)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/numpy_formathandler.pyx /tmp/6jwPQaot5C/pyopengl-3.0.0/src/numpy_formathandler.pyx --- pyopengl-3.0.0~b6/src/numpy_formathandler.pyx 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/src/numpy_formathandler.pyx 2009-01-03 21:11:34.000000000 +0000 @@ -0,0 +1,30 @@ +"""Accelerator for numpy format handler operations""" +from ctypes import c_void_p +import traceback, weakref + +cdef class ArrayHolder: + cdef public object array + def __init__( self, array ): + self.array = array + def __call__( self, weak ): + self.array = None + +cdef class FromParam: + """from_param as a helper object""" + cdef public object dataPointer, asArray + cdef list converted + def __init__( self, dataPointer, asArray ): + self.dataPointer = dataPointer + self.asArray = asArray + def __call__( self, cls, instance, typeCode=None ): + cdef object pointer + try: + pointer = self.dataPointer( instance ) + except TypeError, err: + array = self.asArray( instance, typeCode ) + dp = self.dataPointer( array ) + pp = c_void_p( dp ) + pp._temporary_array_ = ArrayHolder( array ) + return pp + else: + return c_void_p( pointer ) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/toglinstall/get_togl.py /tmp/6jwPQaot5C/pyopengl-3.0.0/src/toglinstall/get_togl.py --- pyopengl-3.0.0~b6/src/toglinstall/get_togl.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/src/toglinstall/get_togl.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,48 @@ +"""Instally Togl on Win32 Python""" +import sys, urllib, zipfile, logging, os, shutil +import Tkinter +log = logging.getLogger( 'ToglInstaller' ) +log.setLevel( logging.INFO ) + +tk = Tkinter.Tk() +path = tk.getvar( 'tcl_libPath' )[0] + +TARGET_DIRECTORY = os.path.join( path, 'Togl2.0' ) +FILENAME = "Togl2.0-8.4-Windows.zip" +BASE_URL = "http://internap.dl.sourceforge.net/sourceforge/togl" + +def main(): + if not os.path.isdir( TARGET_DIRECTORY ): + log.info( """Togl directory: %s not found, will attempt installation""", TARGET_DIRECTORY ) + if not os.path.isfile( FILENAME ): + URL = '%s/%s'%( BASE_URL, FILENAME ) + log.info( """%s not found, downloading %s""", FILENAME, URL ) + urllib.urlretrieve( URL, FILENAME ) + if not os.path.isfile( FILENAME ): + sys.exit( 1 ) + + fh = zipfile.ZipFile( FILENAME ) + + os.makedirs( TARGET_DIRECTORY ) + try: + for name in fh.namelist(): + parts = name.split( '/' ) + if len(parts) > 1 and parts[1] == 'lib' and parts[4:]: + # wanted name... + target = os.path.join( TARGET_DIRECTORY, *parts[4:] ) + log.info( 'Reading file from zip: %s', name ) + data = fh.read( name ) + log.info( 'Writing file: %s', target ) + open( target, 'wb' ).write( data ) + except Exception, err: + log.warn( """Failure during installation""" ) + shutil.rmtree( TARGET_DIRECTORY ) + raise + log.info( 'Installation complete' ) + # now test... + log.info( 'Attempting to load the Togl module' ) + tk.call('package', 'require', 'Togl') + +if __name__ == "__main__": + logging.basicConfig() + main() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/wrapper.c /tmp/6jwPQaot5C/pyopengl-3.0.0/src/wrapper.c --- pyopengl-3.0.0~b6/src/wrapper.c 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/src/wrapper.c 2009-03-23 23:02:07.000000000 +0000 @@ -0,0 +1,5142 @@ +/* Generated by Cython 0.9.6.14 on Mon Mar 23 19:02:07 2009 */ + +#define PY_SSIZE_T_CLEAN +#include "Python.h" +#include "structmember.h" +#ifndef PY_LONG_LONG + #define PY_LONG_LONG LONG_LONG +#endif +#if PY_VERSION_HEX < 0x02050000 + typedef int Py_ssize_t; + #define PY_SSIZE_T_MAX INT_MAX + #define PY_SSIZE_T_MIN INT_MIN + #define PyInt_FromSsize_t(z) PyInt_FromLong(z) + #define PyInt_AsSsize_t(o) PyInt_AsLong(o) + #define PyNumber_Index(o) PyNumber_Int(o) + #define PyIndex_Check(o) PyNumber_Check(o) +#endif +#if PY_VERSION_HEX < 0x02040000 + #define METH_COEXIST 0 +#endif +#ifndef __stdcall + #define __stdcall +#endif +#ifndef __cdecl + #define __cdecl +#endif +#ifdef __cplusplus +#define __PYX_EXTERN_C extern "C" +#else +#define __PYX_EXTERN_C extern +#endif +#include + + +#ifdef __GNUC__ +#define INLINE __inline__ +#elif _WIN32 +#define INLINE __inline +#else +#define INLINE +#endif + +typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/ +typedef struct {PyObject **p; char *s; long n; int is_unicode;} __Pyx_StringTabEntry; /*proto*/ + + + +static int __pyx_skip_dispatch = 0; + + +/* Type Conversion Predeclarations */ + +#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False)) +static INLINE int __Pyx_PyObject_IsTrue(PyObject* x); +static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x); +static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x); +static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b); + +#define __pyx_PyInt_AsLong(x) (PyInt_CheckExact(x) ? PyInt_AS_LONG(x) : PyInt_AsLong(x)) +#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) + +static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x); +static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x); +static INLINE char __pyx_PyInt_char(PyObject* x); +static INLINE short __pyx_PyInt_short(PyObject* x); +static INLINE int __pyx_PyInt_int(PyObject* x); +static INLINE long __pyx_PyInt_long(PyObject* x); +static INLINE signed char __pyx_PyInt_signed_char(PyObject* x); +static INLINE signed short __pyx_PyInt_signed_short(PyObject* x); +static INLINE signed int __pyx_PyInt_signed_int(PyObject* x); +static INLINE signed long __pyx_PyInt_signed_long(PyObject* x); +static INLINE long double __pyx_PyInt_long_double(PyObject* x); +#ifdef __GNUC__ +/* Test for GCC > 2.95 */ +#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) +#define likely(x) __builtin_expect(!!(x), 1) +#define unlikely(x) __builtin_expect(!!(x), 0) +#else /* __GNUC__ > 2 ... */ +#define likely(x) (x) +#define unlikely(x) (x) +#endif /* __GNUC__ > 2 ... */ +#else /* __GNUC__ */ +#define likely(x) (x) +#define unlikely(x) (x) +#endif /* __GNUC__ */ + +static PyObject *__pyx_m; +static PyObject *__pyx_b; +static PyObject *__pyx_empty_tuple; +static int __pyx_lineno; +static int __pyx_clineno = 0; +static char * __pyx_cfilenm= __FILE__; +static char *__pyx_filename; +static char **__pyx_f; + +static INLINE void __Pyx_RaiseArgtupleTooLong(Py_ssize_t num_expected, Py_ssize_t num_found); /*proto*/ + +static INLINE int __Pyx_SplitStarArg(PyObject **args, Py_ssize_t nargs, PyObject **args2); /*proto*/ + +static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /*proto*/ + +static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ + +static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ + +static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ + +static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ + +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ + +static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t index); /*proto*/ +static int __Pyx_EndUnpack(PyObject *); /*proto*/ + +static inline PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) { + if (likely(PyList_CheckExact(L))) { + if (PyList_Append(L, x) < 0) return NULL; + Py_INCREF(Py_None); + return Py_None; // this is just to have an accurate signature + } + else { + return PyObject_CallMethod(L, "append", "(O)", x); + } +} + +static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ + +static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ + +static void __Pyx_AddTraceback(char *funcname); /*proto*/ + +/* Declarations */ + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":4 + * from OpenGL import error + * + * cdef class Wrapper: # <<<<<<<<<<<<<< + * """C-coded most-generic form of the wrapper's core function""" + * cdef public object calculate_pyArgs, calculate_cArgs, calculate_cArguments, wrappedOperation, storeValues,returnValues + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper { + PyObject_HEAD + PyObject *calculate_pyArgs; + PyObject *calculate_cArgs; + PyObject *calculate_cArguments; + PyObject *wrappedOperation; + PyObject *storeValues; + PyObject *returnValues; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":77 + * return self.converter + * + * cdef class CArgCalculator: # <<<<<<<<<<<<<< + * """C-coded version of the c-arg calculator pattern""" + * cdef list mapping + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator { + PyObject_HEAD + PyObject *mapping; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":210 + * return handler + * + * cdef class CallFuncPyConverter: # <<<<<<<<<<<<<< + * """PyConverter that takes a callable and calls it on incoming""" + * cdef object function + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter { + PyObject_HEAD + PyObject *function; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":178 + * return result + * + * cdef class HandlerRegistry: # <<<<<<<<<<<<<< + * cdef dict registry + * cdef object match + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry { + PyObject_HEAD + PyObject *registry; + PyObject *match; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":117 + * raise + * + * cdef class PyArgCalculator: # <<<<<<<<<<<<<< + * """C-coded version of the py-arg calculator pattern""" + * cdef list mapping + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator { + PyObject_HEAD + PyObject *mapping; + int length; + PyObject *wrapper; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":61 + * return result + * + * cdef class CArgCalculatorElement: # <<<<<<<<<<<<<< + * cdef object wrapper + * cdef long index + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement { + PyObject_HEAD + PyObject *wrapper; + long index; + int callable; + PyObject *converter; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":95 + * ] + * + * cdef class PyArgCalculatorElement: # <<<<<<<<<<<<<< + * cdef object wrapper + * cdef long index + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement { + PyObject_HEAD + PyObject *wrapper; + long index; + int callable; + PyObject *converter; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":150 + * ] + * + * cdef class CArgumentCalculator: # <<<<<<<<<<<<<< + * cdef list cResolvers + * def __init__( self, cResolvers ): + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator { + PyObject_HEAD + PyObject *cResolvers; +}; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":219 + * """Call our function on incoming""" + * return self.function( incoming ) + * cdef class DefaultCConverter: # <<<<<<<<<<<<<< + * cdef int index + * def __init__( self, index ): + */ + +struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter { + PyObject_HEAD + int index; +}; + +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_Wrapper = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_CArgCalculatorElement = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_CArgCalculator = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_PyArgCalculator = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_CArgumentCalculator = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_HandlerRegistry = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_CallFuncPyConverter = 0; +static PyTypeObject *__pyx_ptype_17OpenGL_accelerate_7wrapper_DefaultCConverter = 0; + + +/* Implementation of OpenGL_accelerate.wrapper */ + + +static PyObject *__pyx_n___init__; +static PyObject *__pyx_n___call__; +static PyObject *__pyx_n___setitem__; +static PyObject *__pyx_n_ctypes; +static PyObject *__pyx_n_OpenGL; +static PyObject *__pyx_n_error; + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":7 + * """C-coded most-generic form of the wrapper's core function""" + * cdef public object calculate_pyArgs, calculate_cArgs, calculate_cArguments, wrappedOperation, storeValues,returnValues + * def __init__( # <<<<<<<<<<<<<< + * self, wrappedOperation, + * calculate_pyArgs=None, calculate_cArgs=None, + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_wrappedOperation = 0; + PyObject *__pyx_v_calculate_pyArgs = 0; + PyObject *__pyx_v_calculate_cArgs = 0; + PyObject *__pyx_v_calculate_cArguments = 0; + PyObject *__pyx_v_storeValues = 0; + PyObject *__pyx_v_returnValues = 0; + int __pyx_r; + static char *__pyx_argnames[] = {"wrappedOperation","calculate_pyArgs","calculate_cArgs","calculate_cArguments","storeValues","returnValues",0}; + __pyx_v_calculate_pyArgs = Py_None; + __pyx_v_calculate_cArgs = Py_None; + __pyx_v_calculate_cArguments = Py_None; + __pyx_v_storeValues = Py_None; + __pyx_v_returnValues = Py_None; + if (likely(!__pyx_kwds) && likely(1 <= PyTuple_GET_SIZE(__pyx_args)) && likely(PyTuple_GET_SIZE(__pyx_args) <= 6)) { + __pyx_v_wrappedOperation = PyTuple_GET_ITEM(__pyx_args, 0); + if (PyTuple_GET_SIZE(__pyx_args) > 1) { + __pyx_v_calculate_pyArgs = PyTuple_GET_ITEM(__pyx_args, 1); + if (PyTuple_GET_SIZE(__pyx_args) > 2) { + __pyx_v_calculate_cArgs = PyTuple_GET_ITEM(__pyx_args, 2); + if (PyTuple_GET_SIZE(__pyx_args) > 3) { + __pyx_v_calculate_cArguments = PyTuple_GET_ITEM(__pyx_args, 3); + if (PyTuple_GET_SIZE(__pyx_args) > 4) { + __pyx_v_storeValues = PyTuple_GET_ITEM(__pyx_args, 4); + if (PyTuple_GET_SIZE(__pyx_args) > 5) { + __pyx_v_returnValues = PyTuple_GET_ITEM(__pyx_args, 5); + } + } + } + } + } + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OOOOO", __pyx_argnames, &__pyx_v_wrappedOperation, &__pyx_v_calculate_pyArgs, &__pyx_v_calculate_cArgs, &__pyx_v_calculate_cArguments, &__pyx_v_storeValues, &__pyx_v_returnValues))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.Wrapper.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":13 + * storeValues=None, returnValues=None, + * ): + * self.calculate_pyArgs = calculate_pyArgs # <<<<<<<<<<<<<< + * self.calculate_cArgs = calculate_cArgs + * self.calculate_cArguments = calculate_cArguments + */ + Py_INCREF(__pyx_v_calculate_pyArgs); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_pyArgs); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_pyArgs = __pyx_v_calculate_pyArgs; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":14 + * ): + * self.calculate_pyArgs = calculate_pyArgs + * self.calculate_cArgs = calculate_cArgs # <<<<<<<<<<<<<< + * self.calculate_cArguments = calculate_cArguments + * self.wrappedOperation = wrappedOperation + */ + Py_INCREF(__pyx_v_calculate_cArgs); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArgs); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArgs = __pyx_v_calculate_cArgs; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":15 + * self.calculate_pyArgs = calculate_pyArgs + * self.calculate_cArgs = calculate_cArgs + * self.calculate_cArguments = calculate_cArguments # <<<<<<<<<<<<<< + * self.wrappedOperation = wrappedOperation + * self.storeValues = storeValues + */ + Py_INCREF(__pyx_v_calculate_cArguments); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArguments); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArguments = __pyx_v_calculate_cArguments; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":16 + * self.calculate_cArgs = calculate_cArgs + * self.calculate_cArguments = calculate_cArguments + * self.wrappedOperation = wrappedOperation # <<<<<<<<<<<<<< + * self.storeValues = storeValues + * self.returnValues = returnValues + */ + Py_INCREF(__pyx_v_wrappedOperation); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->wrappedOperation); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->wrappedOperation = __pyx_v_wrappedOperation; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":17 + * self.calculate_cArguments = calculate_cArguments + * self.wrappedOperation = wrappedOperation + * self.storeValues = storeValues # <<<<<<<<<<<<<< + * self.returnValues = returnValues + * + */ + Py_INCREF(__pyx_v_storeValues); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->storeValues); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->storeValues = __pyx_v_storeValues; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":18 + * self.wrappedOperation = wrappedOperation + * self.storeValues = storeValues + * self.returnValues = returnValues # <<<<<<<<<<<<<< + * + * def __call__( self, *args ): + */ + Py_INCREF(__pyx_v_returnValues); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->returnValues); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->returnValues = __pyx_v_returnValues; + + __pyx_r = 0; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":20 + * self.returnValues = returnValues + * + * def __call__( self, *args ): # <<<<<<<<<<<<<< + * cdef tuple pyArgs, cArgs, cArguments + * if self.calculate_pyArgs is not None: + */ + +static PyObject *__pyx_n_ArgumentError; +static PyObject *__pyx_n_TypeError; +static PyObject *__pyx_n_AttributeError; +static PyObject *__pyx_n_args; +static PyObject *__pyx_n_GLError; +static PyObject *__pyx_n_cArgs; +static PyObject *__pyx_n_pyArgs; + +static PyObject *__pyx_builtin_TypeError; +static PyObject *__pyx_builtin_AttributeError; + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_pyArgs; + PyObject *__pyx_v_cArgs; + PyObject *__pyx_v_cArguments; + PyObject *__pyx_v_result; + PyObject *__pyx_v_err; + PyObject *__pyx_r; + int __pyx_1; + PyObject *__pyx_2 = 0; + PyObject *__pyx_3 = 0; + int __pyx_4; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + PyObject *__pyx_7 = 0; + PyObject *__pyx_8 = 0; + if (unlikely(__pyx_kwds)) { + if (unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__call__", 0))) return NULL; + } + Py_INCREF(__pyx_args); + __pyx_v_args = __pyx_args; + __pyx_v_pyArgs = ((PyObject *)Py_None); Py_INCREF(Py_None); + __pyx_v_cArgs = ((PyObject *)Py_None); Py_INCREF(Py_None); + __pyx_v_cArguments = ((PyObject *)Py_None); Py_INCREF(Py_None); + __pyx_v_result = Py_None; Py_INCREF(Py_None); + __pyx_v_err = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":22 + * def __call__( self, *args ): + * cdef tuple pyArgs, cArgs, cArguments + * if self.calculate_pyArgs is not None: # <<<<<<<<<<<<<< + * pyArgs = tuple(self.calculate_pyArgs( args )) + * else: + */ + __pyx_1 = (((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_pyArgs != Py_None); + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":23 + * cdef tuple pyArgs, cArgs, cArguments + * if self.calculate_pyArgs is not None: + * pyArgs = tuple(self.calculate_pyArgs( args )) # <<<<<<<<<<<<<< + * else: + * pyArgs = args + */ + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_args); + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_args); + __pyx_3 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_pyArgs, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); + __pyx_3 = 0; + __pyx_3 = PyObject_Call(((PyObject*)&PyTuple_Type), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + if (!(likely(PyTuple_CheckExact(__pyx_3)) || (__pyx_3) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected tuple, got %s", __pyx_3->ob_type->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_v_pyArgs)); + __pyx_v_pyArgs = ((PyObject *)__pyx_3); + __pyx_3 = 0; + goto __pyx_L4; + } + /*else*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":25 + * pyArgs = tuple(self.calculate_pyArgs( args )) + * else: + * pyArgs = args # <<<<<<<<<<<<<< + * if self.calculate_cArgs is not None: + * cArgs = tuple(self.calculate_cArgs( pyArgs )) + */ + if (!(likely(PyTuple_CheckExact(__pyx_v_args)) || (__pyx_v_args) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected tuple, got %s", __pyx_v_args->ob_type->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_args); + Py_DECREF(((PyObject *)__pyx_v_pyArgs)); + __pyx_v_pyArgs = ((PyObject *)__pyx_v_args); + } + __pyx_L4:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":26 + * else: + * pyArgs = args + * if self.calculate_cArgs is not None: # <<<<<<<<<<<<<< + * cArgs = tuple(self.calculate_cArgs( pyArgs )) + * else: + */ + __pyx_1 = (((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArgs != Py_None); + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":27 + * pyArgs = args + * if self.calculate_cArgs is not None: + * cArgs = tuple(self.calculate_cArgs( pyArgs )) # <<<<<<<<<<<<<< + * else: + * cArgs = pyArgs + */ + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(((PyObject *)__pyx_v_pyArgs)); + PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_v_pyArgs)); + __pyx_3 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArgs, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); + __pyx_3 = 0; + __pyx_3 = PyObject_Call(((PyObject*)&PyTuple_Type), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + if (!(likely(PyTuple_CheckExact(__pyx_3)) || (__pyx_3) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected tuple, got %s", __pyx_3->ob_type->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_v_cArgs)); + __pyx_v_cArgs = ((PyObject *)__pyx_3); + __pyx_3 = 0; + goto __pyx_L5; + } + /*else*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":29 + * cArgs = tuple(self.calculate_cArgs( pyArgs )) + * else: + * cArgs = pyArgs # <<<<<<<<<<<<<< + * if self.calculate_cArguments is not None: + * cArguments = tuple(self.calculate_cArguments( cArgs )) + */ + Py_INCREF(((PyObject *)__pyx_v_pyArgs)); + Py_DECREF(((PyObject *)__pyx_v_cArgs)); + __pyx_v_cArgs = __pyx_v_pyArgs; + } + __pyx_L5:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":30 + * else: + * cArgs = pyArgs + * if self.calculate_cArguments is not None: # <<<<<<<<<<<<<< + * cArguments = tuple(self.calculate_cArguments( cArgs )) + * else: + */ + __pyx_1 = (((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArguments != Py_None); + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":31 + * cArgs = pyArgs + * if self.calculate_cArguments is not None: + * cArguments = tuple(self.calculate_cArguments( cArgs )) # <<<<<<<<<<<<<< + * else: + * cArguments = cArgs + */ + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(((PyObject *)__pyx_v_cArgs)); + PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_v_cArgs)); + __pyx_3 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->calculate_cArguments, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); + __pyx_3 = 0; + __pyx_3 = PyObject_Call(((PyObject*)&PyTuple_Type), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + if (!(likely(PyTuple_CheckExact(__pyx_3)) || (__pyx_3) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected tuple, got %s", __pyx_3->ob_type->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_v_cArguments)); + __pyx_v_cArguments = ((PyObject *)__pyx_3); + __pyx_3 = 0; + goto __pyx_L6; + } + /*else*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":33 + * cArguments = tuple(self.calculate_cArguments( cArgs )) + * else: + * cArguments = cArgs # <<<<<<<<<<<<<< + * try: + * result = self.wrappedOperation( *cArguments ) + */ + Py_INCREF(((PyObject *)__pyx_v_cArgs)); + Py_DECREF(((PyObject *)__pyx_v_cArguments)); + __pyx_v_cArguments = __pyx_v_cArgs; + } + __pyx_L6:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":34 + * else: + * cArguments = cArgs + * try: # <<<<<<<<<<<<<< + * result = self.wrappedOperation( *cArguments ) + * except (ctypes.ArgumentError,TypeError,AttributeError), err: + */ + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":35 + * cArguments = cArgs + * try: + * result = self.wrappedOperation( *cArguments ) # <<<<<<<<<<<<<< + * except (ctypes.ArgumentError,TypeError,AttributeError), err: + * err.args = err.args + (cArguments,) + */ + __pyx_2 = PySequence_Tuple(((PyObject *)__pyx_v_cArguments)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L7;} + __pyx_3 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->wrappedOperation, __pyx_2, NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L7;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_v_result); + __pyx_v_result = __pyx_3; + __pyx_3 = 0; + } + goto __pyx_L8; + __pyx_L7:; + Py_XDECREF(__pyx_2); __pyx_2 = 0; + Py_XDECREF(__pyx_3); __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":36 + * try: + * result = self.wrappedOperation( *cArguments ) + * except (ctypes.ArgumentError,TypeError,AttributeError), err: # <<<<<<<<<<<<<< + * err.args = err.args + (cArguments,) + * raise err + */ + __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ctypes); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_ArgumentError); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); + Py_INCREF(__pyx_builtin_TypeError); + PyTuple_SET_ITEM(__pyx_2, 1, __pyx_builtin_TypeError); + Py_INCREF(__pyx_builtin_AttributeError); + PyTuple_SET_ITEM(__pyx_2, 2, __pyx_builtin_AttributeError); + __pyx_3 = 0; + __pyx_4 = PyErr_ExceptionMatches(((PyObject *)__pyx_2)); + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + if (__pyx_4) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_3, &__pyx_2, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_2); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_2; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":37 + * result = self.wrappedOperation( *cArguments ) + * except (ctypes.ArgumentError,TypeError,AttributeError), err: + * err.args = err.args + (cArguments,) # <<<<<<<<<<<<<< + * raise err + * except error.GLError, err: + */ + __pyx_6 = PyObject_GetAttr(__pyx_v_err, __pyx_n_args); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_7 = PyTuple_New(1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(((PyObject *)__pyx_v_cArguments)); + PyTuple_SET_ITEM(__pyx_7, 0, ((PyObject *)__pyx_v_cArguments)); + __pyx_8 = PyNumber_Add(__pyx_6, ((PyObject *)__pyx_7)); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + if (PyObject_SetAttr(__pyx_v_err, __pyx_n_args, __pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_8); __pyx_8 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":38 + * except (ctypes.ArgumentError,TypeError,AttributeError), err: + * err.args = err.args + (cArguments,) + * raise err # <<<<<<<<<<<<<< + * except error.GLError, err: + * err.cArgs = cArgs + */ + __Pyx_Raise(__pyx_v_err, 0, 0); + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_5); __pyx_5 = 0; + goto __pyx_L8; + } + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":39 + * err.args = err.args + (cArguments,) + * raise err + * except error.GLError, err: # <<<<<<<<<<<<<< + * err.cArgs = cArgs + * err.pyArgs = pyArgs + */ + __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_error); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_7 = PyObject_GetAttr(__pyx_6, __pyx_n_GLError); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + __pyx_4 = PyErr_ExceptionMatches(__pyx_7); + Py_DECREF(__pyx_7); __pyx_7 = 0; + if (__pyx_4) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_8, &__pyx_3, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_3); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_3; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":40 + * raise err + * except error.GLError, err: + * err.cArgs = cArgs # <<<<<<<<<<<<<< + * err.pyArgs = pyArgs + * raise err + */ + if (PyObject_SetAttr(__pyx_v_err, __pyx_n_cArgs, ((PyObject *)__pyx_v_cArgs)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":41 + * except error.GLError, err: + * err.cArgs = cArgs + * err.pyArgs = pyArgs # <<<<<<<<<<<<<< + * raise err + * # handle storage of persistent argument values... + */ + if (PyObject_SetAttr(__pyx_v_err, __pyx_n_pyArgs, ((PyObject *)__pyx_v_pyArgs)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":42 + * err.cArgs = cArgs + * err.pyArgs = pyArgs + * raise err # <<<<<<<<<<<<<< + * # handle storage of persistent argument values... + * if self.storeValues: + */ + __Pyx_Raise(__pyx_v_err, 0, 0); + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_8); __pyx_8 = 0; + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + goto __pyx_L8; + } + goto __pyx_L1; + __pyx_L8:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":44 + * raise err + * # handle storage of persistent argument values... + * if self.storeValues: # <<<<<<<<<<<<<< + * self.storeValues( + * result, + */ + __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->storeValues); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":49 + * self, + * pyArgs, + * cArgs, # <<<<<<<<<<<<<< + * ) + * if self.returnValues: + */ + __pyx_5 = PyTuple_New(4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_result); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_result); + Py_INCREF(__pyx_v_self); + PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_self); + Py_INCREF(((PyObject *)__pyx_v_pyArgs)); + PyTuple_SET_ITEM(__pyx_5, 2, ((PyObject *)__pyx_v_pyArgs)); + Py_INCREF(((PyObject *)__pyx_v_cArgs)); + PyTuple_SET_ITEM(__pyx_5, 3, ((PyObject *)__pyx_v_cArgs)); + __pyx_6 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->storeValues, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_6); __pyx_6 = 0; + goto __pyx_L9; + } + __pyx_L9:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":51 + * cArgs, + * ) + * if self.returnValues: # <<<<<<<<<<<<<< + * return self.returnValues( + * result, + */ + __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->returnValues); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":56 + * self, + * pyArgs, + * cArgs, # <<<<<<<<<<<<<< + * ) + * else: + */ + __pyx_7 = PyTuple_New(4); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_result); + PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_result); + Py_INCREF(__pyx_v_self); + PyTuple_SET_ITEM(__pyx_7, 1, __pyx_v_self); + Py_INCREF(((PyObject *)__pyx_v_pyArgs)); + PyTuple_SET_ITEM(__pyx_7, 2, ((PyObject *)__pyx_v_pyArgs)); + Py_INCREF(((PyObject *)__pyx_v_cArgs)); + PyTuple_SET_ITEM(__pyx_7, 3, ((PyObject *)__pyx_v_cArgs)); + __pyx_8 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)__pyx_v_self)->returnValues, ((PyObject *)__pyx_7), NULL); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + __pyx_r = __pyx_8; + __pyx_8 = 0; + goto __pyx_L0; + goto __pyx_L10; + } + /*else*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":59 + * ) + * else: + * return result # <<<<<<<<<<<<<< + * + * cdef class CArgCalculatorElement: + */ + Py_INCREF(__pyx_v_result); + __pyx_r = __pyx_v_result; + goto __pyx_L0; + } + __pyx_L10:; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + Py_XDECREF(__pyx_7); + Py_XDECREF(__pyx_8); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.Wrapper.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_args); + Py_DECREF(__pyx_v_pyArgs); + Py_DECREF(__pyx_v_cArgs); + Py_DECREF(__pyx_v_cArguments); + Py_DECREF(__pyx_v_result); + Py_DECREF(__pyx_v_err); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":66 + * cdef int callable + * cdef object converter + * def __init__( self, wrapper, index, converter ): # <<<<<<<<<<<<<< + * self.wrapper = wrapper + * self.index = index + */ + +static PyObject *__pyx_n_callable; + +static PyObject *__pyx_builtin_callable; + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_wrapper = 0; + PyObject *__pyx_v_index = 0; + PyObject *__pyx_v_converter = 0; + int __pyx_r; + long __pyx_1; + PyObject *__pyx_2 = 0; + PyObject *__pyx_3 = 0; + int __pyx_4; + static char *__pyx_argnames[] = {"wrapper","index","converter",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 3)) { + __pyx_v_wrapper = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_index = PyTuple_GET_ITEM(__pyx_args, 1); + __pyx_v_converter = PyTuple_GET_ITEM(__pyx_args, 2); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_wrapper, &__pyx_v_index, &__pyx_v_converter))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculatorElement.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":67 + * cdef object converter + * def __init__( self, wrapper, index, converter ): + * self.wrapper = wrapper # <<<<<<<<<<<<<< + * self.index = index + * self.converter = converter + */ + Py_INCREF(__pyx_v_wrapper); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->wrapper); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->wrapper = __pyx_v_wrapper; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":68 + * def __init__( self, wrapper, index, converter ): + * self.wrapper = wrapper + * self.index = index # <<<<<<<<<<<<<< + * self.converter = converter + * self.callable = callable( converter ) + */ + __pyx_1 = __pyx_PyInt_long(__pyx_v_index); if (unlikely((__pyx_1 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1;} + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->index = __pyx_1; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":69 + * self.wrapper = wrapper + * self.index = index + * self.converter = converter # <<<<<<<<<<<<<< + * self.callable = callable( converter ) + * def __call__( self, pyArgs ): + */ + Py_INCREF(__pyx_v_converter); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->converter); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->converter = __pyx_v_converter; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":70 + * self.index = index + * self.converter = converter + * self.callable = callable( converter ) # <<<<<<<<<<<<<< + * def __call__( self, pyArgs ): + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + */ + __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_converter); + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_converter); + __pyx_3 = PyObject_Call(__pyx_builtin_callable, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + __pyx_4 = __pyx_PyInt_int(__pyx_3); if (unlikely((__pyx_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->callable = __pyx_4; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_3); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculatorElement.__init__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":71 + * self.converter = converter + * self.callable = callable( converter ) + * def __call__( self, pyArgs ): # <<<<<<<<<<<<<< + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.callable: + */ + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__[] = "If callable, call converter( pyArgs, index, wrapper ), else return converter"; +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_pyArgs = 0; + PyObject *__pyx_r; + int __pyx_1; + PyObject *__pyx_2 = 0; + PyObject *__pyx_3 = 0; + static char *__pyx_argnames[] = {"pyArgs",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_pyArgs = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_pyArgs))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculatorElement.__call__"); + return NULL; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":73 + * def __call__( self, pyArgs ): + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.callable: # <<<<<<<<<<<<<< + * return self.converter( pyArgs, self.index, self.wrapper ) + * return self.converter + */ + __pyx_1 = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->callable; + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":74 + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.callable: + * return self.converter( pyArgs, self.index, self.wrapper ) # <<<<<<<<<<<<<< + * return self.converter + * + */ + __pyx_2 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->index); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_3 = PyTuple_New(3); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_pyArgs); + PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_pyArgs); + PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2); + Py_INCREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->wrapper); + PyTuple_SET_ITEM(__pyx_3, 2, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->wrapper); + __pyx_2 = 0; + __pyx_2 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->converter, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0; + __pyx_r = __pyx_2; + __pyx_2 = 0; + goto __pyx_L0; + goto __pyx_L4; + } + __pyx_L4:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":75 + * if self.callable: + * return self.converter( pyArgs, self.index, self.wrapper ) + * return self.converter # <<<<<<<<<<<<<< + * + * cdef class CArgCalculator: + */ + Py_INCREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->converter); + __pyx_r = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)__pyx_v_self)->converter; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_3); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculatorElement.__call__"); + __pyx_r = NULL; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":80 + * """C-coded version of the c-arg calculator pattern""" + * cdef list mapping + * def __init__( # <<<<<<<<<<<<<< + * self, + * wrapper, + */ + +static PyObject *__pyx_n_enumerate; + +static PyObject *__pyx_builtin_enumerate; + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_wrapper = 0; + PyObject *__pyx_v_cConverters = 0; + PyObject *__pyx_v_i; + PyObject *__pyx_v_converter; + int __pyx_r; + PyObject *__pyx_1 = 0; + Py_ssize_t __pyx_2 = 0; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + int __pyx_7; + static char *__pyx_argnames[] = {"wrapper","cConverters",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 2)) { + __pyx_v_wrapper = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_cConverters = PyTuple_GET_ITEM(__pyx_args, 1); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_wrapper, &__pyx_v_cConverters))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculator.__init__"); + return -1; + __pyx_L3:; + __pyx_v_i = Py_None; Py_INCREF(Py_None); + __pyx_v_converter = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":85 + * cConverters + * ): + * self.mapping = [ # <<<<<<<<<<<<<< + * CArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( cConverters ) + */ + __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":87 + * self.mapping = [ + * CArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( cConverters ) # <<<<<<<<<<<<<< + * ] + * def __call__( self, pyArgs ): + */ + __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_cConverters); + PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_cConverters); + __pyx_4 = PyObject_Call(__pyx_builtin_enumerate, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0; + if (PyList_CheckExact(__pyx_4)) { __pyx_2 = 0; __pyx_3 = __pyx_4; Py_INCREF(__pyx_3); } + else { __pyx_3 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} } + Py_DECREF(__pyx_4); __pyx_4 = 0; + for (;;) { + if (PyList_CheckExact(__pyx_3)) { if (__pyx_2 >= PyList_GET_SIZE(__pyx_3)) break; __pyx_4 = PyList_GET_ITEM(__pyx_3, __pyx_2++); Py_INCREF(__pyx_4); } + else { + __pyx_4 = PyIter_Next(__pyx_3); + if (!__pyx_4) { + break; + } + } + if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) { + PyObject* tuple = __pyx_4; + __pyx_6 = PyTuple_GET_ITEM(tuple, 0); + Py_INCREF(__pyx_6); + Py_DECREF(__pyx_v_i); + __pyx_v_i = __pyx_6; + __pyx_6 = 0; + __pyx_6 = PyTuple_GET_ITEM(tuple, 1); + Py_INCREF(__pyx_6); + Py_DECREF(__pyx_v_converter); + __pyx_v_converter = __pyx_6; + __pyx_6 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + else { + __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_i); + __pyx_v_i = __pyx_6; + __pyx_6 = 0; + __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_converter); + __pyx_v_converter = __pyx_6; + __pyx_6 = 0; + if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + } + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":86 + * ): + * self.mapping = [ + * CArgCalculatorElement(self,i,converter) # <<<<<<<<<<<<<< + * for (i,converter) in enumerate( cConverters ) + * ] + */ + __pyx_6 = PyTuple_New(3); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_self); + PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self); + Py_INCREF(__pyx_v_i); + PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_i); + Py_INCREF(__pyx_v_converter); + PyTuple_SET_ITEM(__pyx_6, 2, __pyx_v_converter); + __pyx_4 = PyObject_Call(((PyObject*)__pyx_ptype_17OpenGL_accelerate_7wrapper_CArgCalculatorElement), ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0; + __pyx_7 = PyList_Append(__pyx_1, __pyx_4); if (unlikely(__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + Py_DECREF(__pyx_3); __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":85 + * cConverters + * ): + * self.mapping = [ # <<<<<<<<<<<<<< + * CArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( cConverters ) + */ + Py_DECREF(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)__pyx_v_self)->mapping)); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)__pyx_v_self)->mapping = __pyx_1; + __pyx_1 = 0; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculator.__init__"); + __pyx_r = -1; + __pyx_L0:; + Py_DECREF(__pyx_v_i); + Py_DECREF(__pyx_v_converter); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":89 + * for (i,converter) in enumerate( cConverters ) + * ] + * def __call__( self, pyArgs ): # <<<<<<<<<<<<<< + * return [ + * calc( pyArgs ) + */ + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_pyArgs = 0; + PyObject *__pyx_v_calc; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + Py_ssize_t __pyx_2 = 0; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + int __pyx_6; + static char *__pyx_argnames[] = {"pyArgs",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_pyArgs = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_pyArgs))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculator.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_calc = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":90 + * ] + * def __call__( self, pyArgs ): + * return [ # <<<<<<<<<<<<<< + * calc( pyArgs ) + * for calc in self.mapping + */ + __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":92 + * return [ + * calc( pyArgs ) + * for calc in self.mapping # <<<<<<<<<<<<<< + * ] + * + */ + if (PyList_CheckExact(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)__pyx_v_self)->mapping))) { __pyx_2 = 0; __pyx_3 = ((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)__pyx_v_self)->mapping); Py_INCREF(__pyx_3); } + else { __pyx_3 = PyObject_GetIter(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)__pyx_v_self)->mapping)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1;} } + for (;;) { + if (PyList_CheckExact(__pyx_3)) { if (__pyx_2 >= PyList_GET_SIZE(__pyx_3)) break; __pyx_4 = PyList_GET_ITEM(__pyx_3, __pyx_2++); Py_INCREF(__pyx_4); } + else { + __pyx_4 = PyIter_Next(__pyx_3); + if (!__pyx_4) { + break; + } + } + Py_DECREF(__pyx_v_calc); + __pyx_v_calc = __pyx_4; + __pyx_4 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":91 + * def __call__( self, pyArgs ): + * return [ + * calc( pyArgs ) # <<<<<<<<<<<<<< + * for calc in self.mapping + * ] + */ + __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_pyArgs); + PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_pyArgs); + __pyx_5 = PyObject_Call(__pyx_v_calc, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0; + __pyx_6 = PyList_Append(__pyx_1, __pyx_5); if (unlikely(__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + } + Py_DECREF(__pyx_3); __pyx_3 = 0; + __pyx_r = ((PyObject *)__pyx_1); + __pyx_1 = 0; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgCalculator.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_calc); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":100 + * cdef int callable + * cdef object converter + * def __init__( self, wrapper, index, converter ): # <<<<<<<<<<<<<< + * self.wrapper = wrapper + * self.index = index + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_wrapper = 0; + PyObject *__pyx_v_index = 0; + PyObject *__pyx_v_converter = 0; + int __pyx_r; + long __pyx_1; + static char *__pyx_argnames[] = {"wrapper","index","converter",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 3)) { + __pyx_v_wrapper = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_index = PyTuple_GET_ITEM(__pyx_args, 1); + __pyx_v_converter = PyTuple_GET_ITEM(__pyx_args, 2); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_wrapper, &__pyx_v_index, &__pyx_v_converter))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculatorElement.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":101 + * cdef object converter + * def __init__( self, wrapper, index, converter ): + * self.wrapper = wrapper # <<<<<<<<<<<<<< + * self.index = index + * self.converter = converter + */ + Py_INCREF(__pyx_v_wrapper); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->wrapper); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->wrapper = __pyx_v_wrapper; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":102 + * def __init__( self, wrapper, index, converter ): + * self.wrapper = wrapper + * self.index = index # <<<<<<<<<<<<<< + * self.converter = converter + * def __call__( self, args ): + */ + __pyx_1 = __pyx_PyInt_long(__pyx_v_index); if (unlikely((__pyx_1 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1;} + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index = __pyx_1; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":103 + * self.wrapper = wrapper + * self.index = index + * self.converter = converter # <<<<<<<<<<<<<< + * def __call__( self, args ): + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + */ + Py_INCREF(__pyx_v_converter); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter = __pyx_v_converter; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculatorElement.__init__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":104 + * self.index = index + * self.converter = converter + * def __call__( self, args ): # <<<<<<<<<<<<<< + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.converter is None: + */ + +static PyObject *__pyx_n_Exception; + +static PyObject *__pyx_builtin_Exception; + + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__[] = "If callable, call converter( pyArgs, index, wrapper ), else return converter"; +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_err; + PyObject *__pyx_r; + int __pyx_1; + PyObject *__pyx_2 = 0; + PyObject *__pyx_3 = 0; + int __pyx_4; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + PyObject *__pyx_7 = 0; + PyObject *__pyx_8 = 0; + static char *__pyx_argnames[] = {"args",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_args = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_args))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculatorElement.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_err = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":106 + * def __call__( self, args ): + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.converter is None: # <<<<<<<<<<<<<< + * return args[self.index] + * try: + */ + __pyx_1 = (((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter == Py_None); + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":107 + * """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + * if self.converter is None: + * return args[self.index] # <<<<<<<<<<<<<< + * try: + * return self.converter( + */ + if (PyList_CheckExact(__pyx_v_args) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index < PyList_GET_SIZE(__pyx_v_args)) { + __pyx_3 = PyList_GET_ITEM(__pyx_v_args, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); Py_INCREF(__pyx_3); + } else if (PyTuple_CheckExact(__pyx_v_args) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index < PyTuple_GET_SIZE(__pyx_v_args)) { + __pyx_3 = PyTuple_GET_ITEM(__pyx_v_args, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); Py_INCREF(__pyx_3); + } else { + __pyx_2 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_3 = PyObject_GetItem(__pyx_v_args, __pyx_2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + } + __pyx_r = __pyx_3; + __pyx_3 = 0; + goto __pyx_L0; + goto __pyx_L4; + } + __pyx_L4:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":108 + * if self.converter is None: + * return args[self.index] + * try: # <<<<<<<<<<<<<< + * return self.converter( + * args[self.index], self.wrapper, args + */ + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":110 + * try: + * return self.converter( + * args[self.index], self.wrapper, args # <<<<<<<<<<<<<< + * ) + * except Exception, err: + */ + if (PyList_CheckExact(__pyx_v_args) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index < PyList_GET_SIZE(__pyx_v_args)) { + __pyx_3 = PyList_GET_ITEM(__pyx_v_args, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); Py_INCREF(__pyx_3); + } else if (PyTuple_CheckExact(__pyx_v_args) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index < PyTuple_GET_SIZE(__pyx_v_args)) { + __pyx_3 = PyTuple_GET_ITEM(__pyx_v_args, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); Py_INCREF(__pyx_3); + } else { + __pyx_2 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->index); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L5;} + __pyx_3 = PyObject_GetItem(__pyx_v_args, __pyx_2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L5;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + } + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":111 + * return self.converter( + * args[self.index], self.wrapper, args + * ) # <<<<<<<<<<<<<< + * except Exception, err: + * if hasattr( err, 'args' ): + */ + __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L5;} + PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); + Py_INCREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->wrapper); + PyTuple_SET_ITEM(__pyx_2, 1, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->wrapper); + Py_INCREF(__pyx_v_args); + PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_args); + __pyx_3 = 0; + __pyx_3 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L5;} + Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0; + __pyx_r = __pyx_3; + __pyx_3 = 0; + goto __pyx_L0; + } + goto __pyx_L6; + __pyx_L5:; + Py_XDECREF(__pyx_2); __pyx_2 = 0; + Py_XDECREF(__pyx_3); __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":112 + * args[self.index], self.wrapper, args + * ) + * except Exception, err: # <<<<<<<<<<<<<< + * if hasattr( err, 'args' ): + * err.args += ( self.converter, ) + */ + __pyx_4 = PyErr_ExceptionMatches(__pyx_builtin_Exception); + if (__pyx_4) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_2, &__pyx_3, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_3); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_3; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":113 + * ) + * except Exception, err: + * if hasattr( err, 'args' ): # <<<<<<<<<<<<<< + * err.args += ( self.converter, ) + * raise + */ + __pyx_1 = PyObject_HasAttr(__pyx_v_err, __pyx_n_args); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (__pyx_1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":114 + * except Exception, err: + * if hasattr( err, 'args' ): + * err.args += ( self.converter, ) # <<<<<<<<<<<<<< + * raise + * + */ + __pyx_7 = PyTuple_New(1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter); + PyTuple_SET_ITEM(__pyx_7, 0, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)__pyx_v_self)->converter); + __pyx_8 = PyObject_GetAttr(__pyx_v_err, __pyx_n_args); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_6 = PyNumber_InPlaceAdd(__pyx_8, ((PyObject *)__pyx_7)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + Py_DECREF(__pyx_8); __pyx_8 = 0; + if (PyObject_SetAttr(__pyx_v_err, __pyx_n_args, __pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + goto __pyx_L7; + } + __pyx_L7:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":115 + * if hasattr( err, 'args' ): + * err.args += ( self.converter, ) + * raise # <<<<<<<<<<<<<< + * + * cdef class PyArgCalculator: + */ + __Pyx_Raise(__pyx_2, __pyx_3, __pyx_5); + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_5); __pyx_5 = 0; + goto __pyx_L6; + } + goto __pyx_L1; + __pyx_L6:; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + Py_XDECREF(__pyx_7); + Py_XDECREF(__pyx_8); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculatorElement.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_err); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":122 + * cdef int length + * cdef object wrapper + * def __init__( # <<<<<<<<<<<<<< + * self, + * wrapper, + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_wrapper = 0; + PyObject *__pyx_v_pyConverters = 0; + PyObject *__pyx_v_i; + PyObject *__pyx_v_converter; + int __pyx_r; + PyObject *__pyx_1 = 0; + Py_ssize_t __pyx_2 = 0; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + int __pyx_7; + static char *__pyx_argnames[] = {"wrapper","pyConverters",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 2)) { + __pyx_v_wrapper = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_pyConverters = PyTuple_GET_ITEM(__pyx_args, 1); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_wrapper, &__pyx_v_pyConverters))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculator.__init__"); + return -1; + __pyx_L3:; + __pyx_v_i = Py_None; Py_INCREF(Py_None); + __pyx_v_converter = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":127 + * pyConverters + * ): + * self.wrapper = wrapper # <<<<<<<<<<<<<< + * self.mapping = [ + * PyArgCalculatorElement(self,i,converter) + */ + Py_INCREF(__pyx_v_wrapper); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->wrapper); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->wrapper = __pyx_v_wrapper; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":128 + * ): + * self.wrapper = wrapper + * self.mapping = [ # <<<<<<<<<<<<<< + * PyArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( pyConverters ) + */ + __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":130 + * self.mapping = [ + * PyArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( pyConverters ) # <<<<<<<<<<<<<< + * ] + * self.length = len(pyConverters) + */ + __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_pyConverters); + PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_pyConverters); + __pyx_4 = PyObject_Call(__pyx_builtin_enumerate, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0; + if (PyList_CheckExact(__pyx_4)) { __pyx_2 = 0; __pyx_3 = __pyx_4; Py_INCREF(__pyx_3); } + else { __pyx_3 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} } + Py_DECREF(__pyx_4); __pyx_4 = 0; + for (;;) { + if (PyList_CheckExact(__pyx_3)) { if (__pyx_2 >= PyList_GET_SIZE(__pyx_3)) break; __pyx_4 = PyList_GET_ITEM(__pyx_3, __pyx_2++); Py_INCREF(__pyx_4); } + else { + __pyx_4 = PyIter_Next(__pyx_3); + if (!__pyx_4) { + break; + } + } + if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) { + PyObject* tuple = __pyx_4; + __pyx_6 = PyTuple_GET_ITEM(tuple, 0); + Py_INCREF(__pyx_6); + Py_DECREF(__pyx_v_i); + __pyx_v_i = __pyx_6; + __pyx_6 = 0; + __pyx_6 = PyTuple_GET_ITEM(tuple, 1); + Py_INCREF(__pyx_6); + Py_DECREF(__pyx_v_converter); + __pyx_v_converter = __pyx_6; + __pyx_6 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + else { + __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_i); + __pyx_v_i = __pyx_6; + __pyx_6 = 0; + __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_converter); + __pyx_v_converter = __pyx_6; + __pyx_6 = 0; + if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + } + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":129 + * self.wrapper = wrapper + * self.mapping = [ + * PyArgCalculatorElement(self,i,converter) # <<<<<<<<<<<<<< + * for (i,converter) in enumerate( pyConverters ) + * ] + */ + __pyx_6 = PyTuple_New(3); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_self); + PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self); + Py_INCREF(__pyx_v_i); + PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_i); + Py_INCREF(__pyx_v_converter); + PyTuple_SET_ITEM(__pyx_6, 2, __pyx_v_converter); + __pyx_4 = PyObject_Call(((PyObject*)__pyx_ptype_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement), ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0; + __pyx_7 = PyList_Append(__pyx_1, __pyx_4); if (unlikely(__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + Py_DECREF(__pyx_3); __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":128 + * ): + * self.wrapper = wrapper + * self.mapping = [ # <<<<<<<<<<<<<< + * PyArgCalculatorElement(self,i,converter) + * for (i,converter) in enumerate( pyConverters ) + */ + Py_DECREF(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->mapping)); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->mapping = __pyx_1; + __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":132 + * for (i,converter) in enumerate( pyConverters ) + * ] + * self.length = len(pyConverters) # <<<<<<<<<<<<<< + * + * def __call__( self, args ): + */ + __pyx_2 = PyObject_Length(__pyx_v_pyConverters); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1;} + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->length = __pyx_2; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculator.__init__"); + __pyx_r = -1; + __pyx_L0:; + Py_DECREF(__pyx_v_i); + Py_DECREF(__pyx_v_converter); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":134 + * self.length = len(pyConverters) + * + * def __call__( self, args ): # <<<<<<<<<<<<<< + * if self.length != len(args): + * raise ValueError( + */ + +static PyObject *__pyx_n_ValueError; +static PyObject *__pyx_n_wrappedOperation; +static PyObject *__pyx_n___name__; +static PyObject *__pyx_n_join; +static PyObject *__pyx_n_pyConverterNames; + +static PyObject *__pyx_k_6p; +static PyObject *__pyx_k_5p; + +static PyObject *__pyx_builtin_ValueError; + +static char __pyx_k_5[] = "%s requires %r arguments (%s), received %s: %r"; +static char __pyx_k_6[] = ", "; + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_calc; + PyObject *__pyx_r; + Py_ssize_t __pyx_1 = 0; + int __pyx_2; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + PyObject *__pyx_7 = 0; + int __pyx_8; + static char *__pyx_argnames[] = {"args",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_args = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_args))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculator.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_calc = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":135 + * + * def __call__( self, args ): + * if self.length != len(args): # <<<<<<<<<<<<<< + * raise ValueError( + * """%s requires %r arguments (%s), received %s: %r"""%( + */ + __pyx_1 = PyObject_Length(__pyx_v_args); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_2 = (((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->length != __pyx_1); + if (__pyx_2) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":138 + * raise ValueError( + * """%s requires %r arguments (%s), received %s: %r"""%( + * self.wrapper.wrappedOperation.__name__, # <<<<<<<<<<<<<< + * self.length, + * ", ".join( self.wrapper.pyConverterNames ), + */ + __pyx_3 = PyObject_GetAttr(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->wrapper, __pyx_n_wrappedOperation); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n___name__); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":139 + * """%s requires %r arguments (%s), received %s: %r"""%( + * self.wrapper.wrappedOperation.__name__, + * self.length, # <<<<<<<<<<<<<< + * ", ".join( self.wrapper.pyConverterNames ), + * len(args), + */ + __pyx_3 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->length); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":140 + * self.wrapper.wrappedOperation.__name__, + * self.length, + * ", ".join( self.wrapper.pyConverterNames ), # <<<<<<<<<<<<<< + * len(args), + * args + */ + __pyx_5 = PyObject_GetAttr(__pyx_k_6p, __pyx_n_join); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_6 = PyObject_GetAttr(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->wrapper, __pyx_n_pyConverterNames); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_7 = PyTuple_New(1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_7, 0, __pyx_6); + __pyx_6 = 0; + __pyx_6 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_7), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":141 + * self.length, + * ", ".join( self.wrapper.pyConverterNames ), + * len(args), # <<<<<<<<<<<<<< + * args + * ) + */ + __pyx_1 = PyObject_Length(__pyx_v_args); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_5 = PyInt_FromSsize_t(__pyx_1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":143 + * len(args), + * args + * ) # <<<<<<<<<<<<<< + * ) + * return [ + */ + __pyx_7 = PyTuple_New(5); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_7, 0, __pyx_4); + PyTuple_SET_ITEM(__pyx_7, 1, __pyx_3); + PyTuple_SET_ITEM(__pyx_7, 2, __pyx_6); + PyTuple_SET_ITEM(__pyx_7, 3, __pyx_5); + Py_INCREF(__pyx_v_args); + PyTuple_SET_ITEM(__pyx_7, 4, __pyx_v_args); + __pyx_4 = 0; + __pyx_3 = 0; + __pyx_6 = 0; + __pyx_5 = 0; + __pyx_4 = PyNumber_Remainder(__pyx_k_5p, ((PyObject *)__pyx_7)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4); + __pyx_4 = 0; + __pyx_6 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0; + __Pyx_Raise(__pyx_6, 0, 0); + Py_DECREF(__pyx_6); __pyx_6 = 0; + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1;} + goto __pyx_L4; + } + __pyx_L4:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":145 + * ) + * ) + * return [ # <<<<<<<<<<<<<< + * calc( args ) + * for calc in self.mapping + */ + __pyx_5 = PyList_New(0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":147 + * return [ + * calc( args ) + * for calc in self.mapping # <<<<<<<<<<<<<< + * ] + * + */ + if (PyList_CheckExact(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->mapping))) { __pyx_1 = 0; __pyx_7 = ((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->mapping); Py_INCREF(__pyx_7); } + else { __pyx_7 = PyObject_GetIter(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)__pyx_v_self)->mapping)); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1;} } + for (;;) { + if (PyList_CheckExact(__pyx_7)) { if (__pyx_1 >= PyList_GET_SIZE(__pyx_7)) break; __pyx_4 = PyList_GET_ITEM(__pyx_7, __pyx_1++); Py_INCREF(__pyx_4); } + else { + __pyx_4 = PyIter_Next(__pyx_7); + if (!__pyx_4) { + break; + } + } + Py_DECREF(__pyx_v_calc); + __pyx_v_calc = __pyx_4; + __pyx_4 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":146 + * ) + * return [ + * calc( args ) # <<<<<<<<<<<<<< + * for calc in self.mapping + * ] + */ + __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_args); + PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_args); + __pyx_6 = PyObject_Call(__pyx_v_calc, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0; + __pyx_8 = PyList_Append(__pyx_5, __pyx_6); if (unlikely(__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + } + Py_DECREF(__pyx_7); __pyx_7 = 0; + __pyx_r = ((PyObject *)__pyx_5); + __pyx_5 = 0; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + Py_XDECREF(__pyx_7); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.PyArgCalculator.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_calc); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":152 + * cdef class CArgumentCalculator: + * cdef list cResolvers + * def __init__( self, cResolvers ): # <<<<<<<<<<<<<< + * self.cResolvers = cResolvers + * def __call__( self, cArgs ): + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_cResolvers = 0; + int __pyx_r; + static char *__pyx_argnames[] = {"cResolvers",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_cResolvers = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_cResolvers))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgumentCalculator.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":153 + * cdef list cResolvers + * def __init__( self, cResolvers ): + * self.cResolvers = cResolvers # <<<<<<<<<<<<<< + * def __call__( self, cArgs ): + * cdef int i + */ + if (!(likely(PyList_CheckExact(__pyx_v_cResolvers)) || (__pyx_v_cResolvers) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected list, got %s", __pyx_v_cResolvers->ob_type->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_cResolvers); + Py_DECREF(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers)); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers = ((PyObject *)__pyx_v_cResolvers); + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgumentCalculator.__init__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":154 + * def __init__( self, cResolvers ): + * self.cResolvers = cResolvers + * def __call__( self, cArgs ): # <<<<<<<<<<<<<< + * cdef int i + * cdef int resolver_length + */ + +static PyObject *__pyx_n_append; + +static PyObject *__pyx_k_7p; + +static char __pyx_k_7[] = "Expected %s C arguments for resolution, got %s"; + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_cArgs = 0; + int __pyx_v_i; + int __pyx_v_resolver_length; + PyObject *__pyx_v_converter; + PyObject *__pyx_v_result; + PyObject *__pyx_v_err; + PyObject *__pyx_r; + Py_ssize_t __pyx_1 = 0; + int __pyx_2; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + int __pyx_6; + PyObject *__pyx_7 = 0; + PyObject *__pyx_8 = 0; + PyObject *__pyx_9 = 0; + static char *__pyx_argnames[] = {"cArgs",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_cArgs = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_cArgs))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgumentCalculator.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_converter = Py_None; Py_INCREF(Py_None); + __pyx_v_result = Py_None; Py_INCREF(Py_None); + __pyx_v_err = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":158 + * cdef int resolver_length + * cdef object converter + * resolver_length = len(self.cResolvers ) # <<<<<<<<<<<<<< + * if len(cArgs) != resolver_length: + * raise TypeError( + */ + __pyx_1 = PyObject_Length(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers)); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_v_resolver_length = __pyx_1; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":159 + * cdef object converter + * resolver_length = len(self.cResolvers ) + * if len(cArgs) != resolver_length: # <<<<<<<<<<<<<< + * raise TypeError( + * """Expected %s C arguments for resolution, got %s"""%( + */ + __pyx_1 = PyObject_Length(__pyx_v_cArgs); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_2 = (__pyx_1 != __pyx_v_resolver_length); + if (__pyx_2) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":162 + * raise TypeError( + * """Expected %s C arguments for resolution, got %s"""%( + * resolver_length,len(cArgs) # <<<<<<<<<<<<<< + * ) + * ) + */ + __pyx_3 = PyInt_FromLong(__pyx_v_resolver_length); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_1 = PyObject_Length(__pyx_v_cArgs); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_4 = PyInt_FromSsize_t(__pyx_1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); + PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); + __pyx_3 = 0; + __pyx_4 = 0; + __pyx_3 = PyNumber_Remainder(__pyx_k_7p, ((PyObject *)__pyx_5)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); + __pyx_3 = 0; + __pyx_5 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0; + __Pyx_Raise(__pyx_5, 0, 0); + Py_DECREF(__pyx_5); __pyx_5 = 0; + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1;} + goto __pyx_L4; + } + __pyx_L4:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":165 + * ) + * ) + * result = [] # <<<<<<<<<<<<<< + * for i in range( resolver_length ): + * converter = self.cResolvers[i] + */ + __pyx_3 = PyList_New(0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_result); + __pyx_v_result = ((PyObject *)__pyx_3); + __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":166 + * ) + * result = [] + * for i in range( resolver_length ): # <<<<<<<<<<<<<< + * converter = self.cResolvers[i] + * if converter is None: + */ + for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_resolver_length; __pyx_v_i+=1) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":167 + * result = [] + * for i in range( resolver_length ): + * converter = self.cResolvers[i] # <<<<<<<<<<<<<< + * if converter is None: + * result.append( cArgs[i] ) + */ + if (PyList_CheckExact(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers)) && 0 <= __pyx_v_i && __pyx_v_i < PyList_GET_SIZE(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers))) { + __pyx_5 = PyList_GET_ITEM(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers), __pyx_v_i); Py_INCREF(__pyx_5); + } else if (PyTuple_CheckExact(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers)) && 0 <= __pyx_v_i && __pyx_v_i < PyTuple_GET_SIZE(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers))) { + __pyx_5 = PyTuple_GET_ITEM(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers), __pyx_v_i); Py_INCREF(__pyx_5); + } else { + __pyx_4 = PyInt_FromLong(__pyx_v_i); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_5 = PyObject_GetItem(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)__pyx_v_self)->cResolvers), __pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + Py_DECREF(__pyx_v_converter); + __pyx_v_converter = __pyx_5; + __pyx_5 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":168 + * for i in range( resolver_length ): + * converter = self.cResolvers[i] + * if converter is None: # <<<<<<<<<<<<<< + * result.append( cArgs[i] ) + * else: + */ + __pyx_2 = (__pyx_v_converter == Py_None); + if (__pyx_2) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":169 + * converter = self.cResolvers[i] + * if converter is None: + * result.append( cArgs[i] ) # <<<<<<<<<<<<<< + * else: + * try: + */ + if (PyList_CheckExact(__pyx_v_cArgs) && 0 <= __pyx_v_i && __pyx_v_i < PyList_GET_SIZE(__pyx_v_cArgs)) { + __pyx_4 = PyList_GET_ITEM(__pyx_v_cArgs, __pyx_v_i); Py_INCREF(__pyx_4); + } else if (PyTuple_CheckExact(__pyx_v_cArgs) && 0 <= __pyx_v_i && __pyx_v_i < PyTuple_GET_SIZE(__pyx_v_cArgs)) { + __pyx_4 = PyTuple_GET_ITEM(__pyx_v_cArgs, __pyx_v_i); Py_INCREF(__pyx_4); + } else { + __pyx_3 = PyInt_FromLong(__pyx_v_i); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_4 = PyObject_GetItem(__pyx_v_cArgs, __pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + } + __pyx_5 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_4); __pyx_4 = 0; + Py_DECREF(__pyx_5); __pyx_5 = 0; + goto __pyx_L7; + } + /*else*/ { + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":172 + * else: + * try: + * result.append( converter( cArgs[i] )) # <<<<<<<<<<<<<< + * except Exception, err: + * err.args += (converter,) + */ + if (PyList_CheckExact(__pyx_v_cArgs) && 0 <= __pyx_v_i && __pyx_v_i < PyList_GET_SIZE(__pyx_v_cArgs)) { + __pyx_4 = PyList_GET_ITEM(__pyx_v_cArgs, __pyx_v_i); Py_INCREF(__pyx_4); + } else if (PyTuple_CheckExact(__pyx_v_cArgs) && 0 <= __pyx_v_i && __pyx_v_i < PyTuple_GET_SIZE(__pyx_v_cArgs)) { + __pyx_4 = PyTuple_GET_ITEM(__pyx_v_cArgs, __pyx_v_i); Py_INCREF(__pyx_4); + } else { + __pyx_3 = PyInt_FromLong(__pyx_v_i); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L8;} + __pyx_4 = PyObject_GetItem(__pyx_v_cArgs, __pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L8;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + } + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L8;} + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); + __pyx_4 = 0; + __pyx_3 = PyObject_Call(__pyx_v_converter, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L8;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + __pyx_4 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L8;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + } + goto __pyx_L9; + __pyx_L8:; + Py_XDECREF(__pyx_5); __pyx_5 = 0; + Py_XDECREF(__pyx_3); __pyx_3 = 0; + Py_XDECREF(__pyx_4); __pyx_4 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":173 + * try: + * result.append( converter( cArgs[i] )) + * except Exception, err: # <<<<<<<<<<<<<< + * err.args += (converter,) + * raise + */ + __pyx_6 = PyErr_ExceptionMatches(__pyx_builtin_Exception); + if (__pyx_6) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_5, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_3); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_3; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":174 + * result.append( converter( cArgs[i] )) + * except Exception, err: + * err.args += (converter,) # <<<<<<<<<<<<<< + * raise + * return result + */ + __pyx_8 = PyTuple_New(1); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_converter); + PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_converter); + __pyx_9 = PyObject_GetAttr(__pyx_v_err, __pyx_n_args); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_7 = PyNumber_InPlaceAdd(__pyx_9, ((PyObject *)__pyx_8)); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_8)); __pyx_8 = 0; + Py_DECREF(__pyx_9); __pyx_9 = 0; + if (PyObject_SetAttr(__pyx_v_err, __pyx_n_args, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_7); __pyx_7 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":175 + * except Exception, err: + * err.args += (converter,) + * raise # <<<<<<<<<<<<<< + * return result + * + */ + __Pyx_Raise(__pyx_5, __pyx_3, __pyx_4); + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L9; + } + goto __pyx_L1; + __pyx_L9:; + } + __pyx_L7:; + } + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":176 + * err.args += (converter,) + * raise + * return result # <<<<<<<<<<<<<< + * + * cdef class HandlerRegistry: + */ + Py_INCREF(__pyx_v_result); + __pyx_r = __pyx_v_result; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_7); + Py_XDECREF(__pyx_8); + Py_XDECREF(__pyx_9); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CArgumentCalculator.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_converter); + Py_DECREF(__pyx_v_result); + Py_DECREF(__pyx_v_err); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":181 + * cdef dict registry + * cdef object match + * def __init__( self, plugin_match ): # <<<<<<<<<<<<<< + * self.registry = {} + * self.match = plugin_match + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_plugin_match = 0; + int __pyx_r; + PyObject *__pyx_1 = 0; + static char *__pyx_argnames[] = {"plugin_match",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_plugin_match = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_plugin_match))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.HandlerRegistry.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":182 + * cdef object match + * def __init__( self, plugin_match ): + * self.registry = {} # <<<<<<<<<<<<<< + * self.match = plugin_match + * def __setitem__( self,key,value ): + */ + __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry)); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry = __pyx_1; + __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":183 + * def __init__( self, plugin_match ): + * self.registry = {} + * self.match = plugin_match # <<<<<<<<<<<<<< + * def __setitem__( self,key,value ): + * self.registry[key] = value + */ + Py_INCREF(__pyx_v_plugin_match); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->match); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->match = __pyx_v_plugin_match; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.HandlerRegistry.__init__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":184 + * self.registry = {} + * self.match = plugin_match + * def __setitem__( self,key,value ): # <<<<<<<<<<<<<< + * self.registry[key] = value + * def __call__( self, value ): + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) { + int __pyx_r; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":185 + * self.match = plugin_match + * def __setitem__( self,key,value ): + * self.registry[key] = value # <<<<<<<<<<<<<< + * def __call__( self, value ): + * try: + */ + if (PyObject_SetItem(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry), __pyx_v_key, __pyx_v_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1;} + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.HandlerRegistry.__setitem__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":186 + * def __setitem__( self,key,value ): + * self.registry[key] = value + * def __call__( self, value ): # <<<<<<<<<<<<<< + * try: + * typ = value.__class__ + */ + +static PyObject *__pyx_n___class__; +static PyObject *__pyx_n_get; +static PyObject *__pyx_n___mro__; +static PyObject *__pyx_n_registerEquivalent; + +static PyObject *__pyx_k_9p; + +static char __pyx_k_9[] = "No array-type handler for type %r (value: %s) registered"; + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_value = 0; + PyObject *__pyx_v_typ; + PyObject *__pyx_v_err; + PyObject *__pyx_v_handler; + PyObject *__pyx_v_base; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + int __pyx_2; + PyObject *__pyx_3 = 0; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + PyObject *__pyx_6 = 0; + int __pyx_7; + Py_ssize_t __pyx_8 = 0; + static char *__pyx_argnames[] = {"value",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_value))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.HandlerRegistry.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_typ = Py_None; Py_INCREF(Py_None); + __pyx_v_err = Py_None; Py_INCREF(Py_None); + __pyx_v_handler = Py_None; Py_INCREF(Py_None); + __pyx_v_base = Py_None; Py_INCREF(Py_None); + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":187 + * self.registry[key] = value + * def __call__( self, value ): + * try: # <<<<<<<<<<<<<< + * typ = value.__class__ + * except AttributeError, err: + */ + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":188 + * def __call__( self, value ): + * try: + * typ = value.__class__ # <<<<<<<<<<<<<< + * except AttributeError, err: + * typ = type(value) + */ + __pyx_1 = PyObject_GetAttr(__pyx_v_value, __pyx_n___class__); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L4;} + Py_DECREF(__pyx_v_typ); + __pyx_v_typ = __pyx_1; + __pyx_1 = 0; + } + goto __pyx_L5; + __pyx_L4:; + Py_XDECREF(__pyx_1); __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":189 + * try: + * typ = value.__class__ + * except AttributeError, err: # <<<<<<<<<<<<<< + * typ = type(value) + * handler = self.registry.get( typ ) + */ + __pyx_2 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError); + if (__pyx_2) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_3); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_3; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":190 + * typ = value.__class__ + * except AttributeError, err: + * typ = type(value) # <<<<<<<<<<<<<< + * handler = self.registry.get( typ ) + * if handler is None: + */ + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_value); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_value); + __pyx_6 = PyObject_Call(((PyObject*)&PyType_Type), ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_v_typ); + __pyx_v_typ = __pyx_6; + __pyx_6 = 0; + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L5; + } + goto __pyx_L1; + __pyx_L5:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":191 + * except AttributeError, err: + * typ = type(value) + * handler = self.registry.get( typ ) # <<<<<<<<<<<<<< + * if handler is None: + * if hasattr( typ, '__mro__' ): + */ + __pyx_5 = PyObject_GetAttr(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry), __pyx_n_get); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_typ); + PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_typ); + __pyx_1 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_5); __pyx_5 = 0; + Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0; + Py_DECREF(__pyx_v_handler); + __pyx_v_handler = __pyx_1; + __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":192 + * typ = type(value) + * handler = self.registry.get( typ ) + * if handler is None: # <<<<<<<<<<<<<< + * if hasattr( typ, '__mro__' ): + * for base in typ.__mro__: + */ + __pyx_7 = (__pyx_v_handler == Py_None); + if (__pyx_7) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":193 + * handler = self.registry.get( typ ) + * if handler is None: + * if hasattr( typ, '__mro__' ): # <<<<<<<<<<<<<< + * for base in typ.__mro__: + * handler = self.registry.get( base ) + */ + __pyx_7 = PyObject_HasAttr(__pyx_v_typ, __pyx_n___mro__); if (unlikely(__pyx_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (__pyx_7) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":194 + * if handler is None: + * if hasattr( typ, '__mro__' ): + * for base in typ.__mro__: # <<<<<<<<<<<<<< + * handler = self.registry.get( base ) + * if handler is None: + */ + __pyx_3 = PyObject_GetAttr(__pyx_v_typ, __pyx_n___mro__); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyList_CheckExact(__pyx_3)) { __pyx_8 = 0; __pyx_4 = __pyx_3; Py_INCREF(__pyx_4); } + else { __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1;} } + Py_DECREF(__pyx_3); __pyx_3 = 0; + for (;;) { + if (PyList_CheckExact(__pyx_4)) { if (__pyx_8 >= PyList_GET_SIZE(__pyx_4)) break; __pyx_5 = PyList_GET_ITEM(__pyx_4, __pyx_8++); Py_INCREF(__pyx_5); } + else { + __pyx_5 = PyIter_Next(__pyx_4); + if (!__pyx_5) { + break; + } + } + Py_DECREF(__pyx_v_base); + __pyx_v_base = __pyx_5; + __pyx_5 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":195 + * if hasattr( typ, '__mro__' ): + * for base in typ.__mro__: + * handler = self.registry.get( base ) # <<<<<<<<<<<<<< + * if handler is None: + * handler = self.match( base ) + */ + __pyx_6 = PyObject_GetAttr(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry), __pyx_n_get); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_base); + PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_base); + __pyx_3 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_6); __pyx_6 = 0; + Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0; + Py_DECREF(__pyx_v_handler); + __pyx_v_handler = __pyx_3; + __pyx_3 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":196 + * for base in typ.__mro__: + * handler = self.registry.get( base ) + * if handler is None: # <<<<<<<<<<<<<< + * handler = self.match( base ) + * if handler: + */ + __pyx_7 = (__pyx_v_handler == Py_None); + if (__pyx_7) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":197 + * handler = self.registry.get( base ) + * if handler is None: + * handler = self.match( base ) # <<<<<<<<<<<<<< + * if handler: + * handler = self.registry[ base ] + */ + __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_base); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_base); + __pyx_6 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->match, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_v_handler); + __pyx_v_handler = __pyx_6; + __pyx_6 = 0; + goto __pyx_L10; + } + __pyx_L10:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":198 + * if handler is None: + * handler = self.match( base ) + * if handler: # <<<<<<<<<<<<<< + * handler = self.registry[ base ] + * handler.registerEquivalent( typ, base ) + */ + __pyx_7 = __Pyx_PyObject_IsTrue(__pyx_v_handler); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (__pyx_7) { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":199 + * handler = self.match( base ) + * if handler: + * handler = self.registry[ base ] # <<<<<<<<<<<<<< + * handler.registerEquivalent( typ, base ) + * self.registry[ typ ] = handler + */ + __pyx_1 = PyObject_GetItem(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry), __pyx_v_base); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_v_handler); + __pyx_v_handler = __pyx_1; + __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":200 + * if handler: + * handler = self.registry[ base ] + * handler.registerEquivalent( typ, base ) # <<<<<<<<<<<<<< + * self.registry[ typ ] = handler + * return handler + */ + __pyx_3 = PyObject_GetAttr(__pyx_v_handler, __pyx_n_registerEquivalent); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_typ); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_typ); + Py_INCREF(__pyx_v_base); + PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_base); + __pyx_6 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_3); __pyx_3 = 0; + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + Py_DECREF(__pyx_6); __pyx_6 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":201 + * handler = self.registry[ base ] + * handler.registerEquivalent( typ, base ) + * self.registry[ typ ] = handler # <<<<<<<<<<<<<< + * return handler + * raise TypeError( + */ + if (PyObject_SetItem(((PyObject *)((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)__pyx_v_self)->registry), __pyx_v_typ, __pyx_v_handler) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":202 + * handler.registerEquivalent( typ, base ) + * self.registry[ typ ] = handler + * return handler # <<<<<<<<<<<<<< + * raise TypeError( + * """No array-type handler for type %r (value: %s) registered"""%( + */ + Py_INCREF(__pyx_v_handler); + __pyx_r = __pyx_v_handler; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L0; + goto __pyx_L11; + } + __pyx_L11:; + } + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L7; + } + __pyx_L7:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":205 + * raise TypeError( + * """No array-type handler for type %r (value: %s) registered"""%( + * typ, repr(value)[:50] # <<<<<<<<<<<<<< + * ) + * ) + */ + __pyx_1 = PyObject_Repr(__pyx_v_value); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_3 = PySequence_GetSlice(__pyx_1, 0, 50); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_typ); + PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_typ); + PyTuple_SET_ITEM(__pyx_5, 1, __pyx_3); + __pyx_3 = 0; + __pyx_6 = PyNumber_Remainder(__pyx_k_9p, ((PyObject *)__pyx_5)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0; + __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_4, 0, __pyx_6); + __pyx_6 = 0; + __pyx_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0; + __Pyx_Raise(__pyx_1, 0, 0); + Py_DECREF(__pyx_1); __pyx_1 = 0; + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1;} + goto __pyx_L6; + } + __pyx_L6:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":208 + * ) + * ) + * return handler # <<<<<<<<<<<<<< + * + * cdef class CallFuncPyConverter: + */ + Py_INCREF(__pyx_v_handler); + __pyx_r = __pyx_v_handler; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_3); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_6); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.HandlerRegistry.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_typ); + Py_DECREF(__pyx_v_err); + Py_DECREF(__pyx_v_handler); + Py_DECREF(__pyx_v_base); + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":213 + * """PyConverter that takes a callable and calls it on incoming""" + * cdef object function + * def __init__( self, function ): # <<<<<<<<<<<<<< + * """Store the function""" + * self.function = function + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___init__[] = "Store the function"; +static int __pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_function = 0; + int __pyx_r; + static char *__pyx_argnames[] = {"function",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_function = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_function))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CallFuncPyConverter.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":215 + * def __init__( self, function ): + * """Store the function""" + * self.function = function # <<<<<<<<<<<<<< + * def __call__( self, incoming, function, argument ): + * """Call our function on incoming""" + */ + Py_INCREF(__pyx_v_function); + Py_DECREF(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)__pyx_v_self)->function); + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)__pyx_v_self)->function = __pyx_v_function; + + __pyx_r = 0; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":216 + * """Store the function""" + * self.function = function + * def __call__( self, incoming, function, argument ): # <<<<<<<<<<<<<< + * """Call our function on incoming""" + * return self.function( incoming ) + */ + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__[] = "Call our function on incoming"; +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_incoming = 0; + PyObject *__pyx_v_function = 0; + PyObject *__pyx_v_argument = 0; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + PyObject *__pyx_2 = 0; + static char *__pyx_argnames[] = {"incoming","function","argument",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 3)) { + __pyx_v_incoming = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_function = PyTuple_GET_ITEM(__pyx_args, 1); + __pyx_v_argument = PyTuple_GET_ITEM(__pyx_args, 2); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_incoming, &__pyx_v_function, &__pyx_v_argument))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CallFuncPyConverter.__call__"); + return NULL; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":218 + * def __call__( self, incoming, function, argument ): + * """Call our function on incoming""" + * return self.function( incoming ) # <<<<<<<<<<<<<< + * cdef class DefaultCConverter: + * cdef int index + */ + __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_v_incoming); + PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_incoming); + __pyx_2 = PyObject_Call(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)__pyx_v_self)->function, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0; + __pyx_r = __pyx_2; + __pyx_2 = 0; + goto __pyx_L0; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_2); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.CallFuncPyConverter.__call__"); + __pyx_r = NULL; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":221 + * cdef class DefaultCConverter: + * cdef int index + * def __init__( self, index ): # <<<<<<<<<<<<<< + * """Just store index for future access""" + * self.index = index + */ + +static int __pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_17DefaultCConverter___init__[] = "Just store index for future access"; +static int __pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_index = 0; + int __pyx_r; + int __pyx_1; + static char *__pyx_argnames[] = {"index",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 1)) { + __pyx_v_index = PyTuple_GET_ITEM(__pyx_args, 0); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_index))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.DefaultCConverter.__init__"); + return -1; + __pyx_L3:; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":223 + * def __init__( self, index ): + * """Just store index for future access""" + * self.index = index # <<<<<<<<<<<<<< + * def __call__( self, pyArgs, index, wrapper ): + * """Return pyArgs[self.index] or raise a ValueError""" + */ + __pyx_1 = __pyx_PyInt_int(__pyx_v_index); if (unlikely((__pyx_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1;} + ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index = __pyx_1; + + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.DefaultCConverter.__init__"); + __pyx_r = -1; + __pyx_L0:; + return __pyx_r; +} + +/* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":224 + * """Just store index for future access""" + * self.index = index + * def __call__( self, pyArgs, index, wrapper ): # <<<<<<<<<<<<<< + * """Return pyArgs[self.index] or raise a ValueError""" + * try: + */ + +static PyObject *__pyx_n_IndexError; + +static PyObject *__pyx_k_10p; + +static PyObject *__pyx_builtin_IndexError; + +static char __pyx_k_10[] = "Expected parameter index %r, but pyArgs only length %s"; + +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__[] = "Return pyArgs[self.index] or raise a ValueError"; +static PyObject *__pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_pyArgs = 0; + PyObject *__pyx_v_index = 0; + PyObject *__pyx_v_wrapper = 0; + PyObject *__pyx_v_err; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + PyObject *__pyx_2 = 0; + int __pyx_3; + PyObject *__pyx_4 = 0; + PyObject *__pyx_5 = 0; + Py_ssize_t __pyx_6 = 0; + PyObject *__pyx_7 = 0; + PyObject *__pyx_8 = 0; + static char *__pyx_argnames[] = {"pyArgs","index","wrapper",0}; + if (likely(!__pyx_kwds) && likely(PyTuple_GET_SIZE(__pyx_args) == 3)) { + __pyx_v_pyArgs = PyTuple_GET_ITEM(__pyx_args, 0); + __pyx_v_index = PyTuple_GET_ITEM(__pyx_args, 1); + __pyx_v_wrapper = PyTuple_GET_ITEM(__pyx_args, 2); + } + else { + if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_pyArgs, &__pyx_v_index, &__pyx_v_wrapper))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L2;} + } + goto __pyx_L3; + __pyx_L2:; + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.DefaultCConverter.__call__"); + return NULL; + __pyx_L3:; + __pyx_v_err = Py_None; Py_INCREF(Py_None); + /*try:*/ { + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":227 + * """Return pyArgs[self.index] or raise a ValueError""" + * try: + * return pyArgs[ self.index ] # <<<<<<<<<<<<<< + * except IndexError, err: + * raise ValueError( + */ + if (PyList_CheckExact(__pyx_v_pyArgs) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index < PyList_GET_SIZE(__pyx_v_pyArgs)) { + __pyx_2 = PyList_GET_ITEM(__pyx_v_pyArgs, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index); Py_INCREF(__pyx_2); + } else if (PyTuple_CheckExact(__pyx_v_pyArgs) && 0 <= ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index && ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index < PyTuple_GET_SIZE(__pyx_v_pyArgs)) { + __pyx_2 = PyTuple_GET_ITEM(__pyx_v_pyArgs, ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index); Py_INCREF(__pyx_2); + } else { + __pyx_1 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L4;} + __pyx_2 = PyObject_GetItem(__pyx_v_pyArgs, __pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L4;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + } + __pyx_r = __pyx_2; + __pyx_2 = 0; + goto __pyx_L0; + } + goto __pyx_L5; + __pyx_L4:; + Py_XDECREF(__pyx_1); __pyx_1 = 0; + Py_XDECREF(__pyx_2); __pyx_2 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":228 + * try: + * return pyArgs[ self.index ] + * except IndexError, err: # <<<<<<<<<<<<<< + * raise ValueError( + * """Expected parameter index %r, but pyArgs only length %s"""%( + */ + __pyx_3 = PyErr_ExceptionMatches(__pyx_builtin_IndexError); + if (__pyx_3) { + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.__call__"); + if (__Pyx_GetException(&__pyx_1, &__pyx_2, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_2); + Py_DECREF(__pyx_v_err); + __pyx_v_err = __pyx_2; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":231 + * raise ValueError( + * """Expected parameter index %r, but pyArgs only length %s"""%( + * self.index, # <<<<<<<<<<<<<< + * len(pyArgs ) + * )) + */ + __pyx_5 = PyInt_FromLong(((struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter *)__pyx_v_self)->index); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1;} + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":232 + * """Expected parameter index %r, but pyArgs only length %s"""%( + * self.index, + * len(pyArgs ) # <<<<<<<<<<<<<< + * )) + */ + __pyx_6 = PyObject_Length(__pyx_v_pyArgs); if (unlikely(__pyx_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_7 = PyInt_FromSsize_t(__pyx_6); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_8 = PyTuple_New(2); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_8, 0, __pyx_5); + PyTuple_SET_ITEM(__pyx_8, 1, __pyx_7); + __pyx_5 = 0; + __pyx_7 = 0; + __pyx_5 = PyNumber_Remainder(__pyx_k_10p, ((PyObject *)__pyx_8)); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_8)); __pyx_8 = 0; + __pyx_7 = PyTuple_New(1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1;} + PyTuple_SET_ITEM(__pyx_7, 0, __pyx_5); + __pyx_5 = 0; + __pyx_8 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_7), NULL); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0; + __Pyx_Raise(__pyx_8, 0, 0); + Py_DECREF(__pyx_8); __pyx_8 = 0; + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + Py_DECREF(__pyx_4); __pyx_4 = 0; + goto __pyx_L5; + } + goto __pyx_L1; + __pyx_L5:; + + __pyx_r = Py_None; Py_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_2); + Py_XDECREF(__pyx_4); + Py_XDECREF(__pyx_5); + Py_XDECREF(__pyx_7); + Py_XDECREF(__pyx_8); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper.DefaultCConverter.__call__"); + __pyx_r = NULL; + __pyx_L0:; + Py_DECREF(__pyx_v_err); + return __pyx_r; +} + +static __Pyx_InternTabEntry __pyx_intern_tab[] = { + {&__pyx_n_ArgumentError, "ArgumentError"}, + {&__pyx_n_AttributeError, "AttributeError"}, + {&__pyx_n_Exception, "Exception"}, + {&__pyx_n_GLError, "GLError"}, + {&__pyx_n_IndexError, "IndexError"}, + {&__pyx_n_OpenGL, "OpenGL"}, + {&__pyx_n_TypeError, "TypeError"}, + {&__pyx_n_ValueError, "ValueError"}, + {&__pyx_n___call__, "__call__"}, + {&__pyx_n___class__, "__class__"}, + {&__pyx_n___init__, "__init__"}, + {&__pyx_n___mro__, "__mro__"}, + {&__pyx_n___name__, "__name__"}, + {&__pyx_n___setitem__, "__setitem__"}, + {&__pyx_n_append, "append"}, + {&__pyx_n_args, "args"}, + {&__pyx_n_cArgs, "cArgs"}, + {&__pyx_n_callable, "callable"}, + {&__pyx_n_ctypes, "ctypes"}, + {&__pyx_n_enumerate, "enumerate"}, + {&__pyx_n_error, "error"}, + {&__pyx_n_get, "get"}, + {&__pyx_n_join, "join"}, + {&__pyx_n_pyArgs, "pyArgs"}, + {&__pyx_n_pyConverterNames, "pyConverterNames"}, + {&__pyx_n_registerEquivalent, "registerEquivalent"}, + {&__pyx_n_wrappedOperation, "wrappedOperation"}, + {0, 0} +}; + +static __Pyx_StringTabEntry __pyx_string_tab[] = { + {&__pyx_k_6p, __pyx_k_6, sizeof(__pyx_k_6), 0}, + {&__pyx_k_5p, __pyx_k_5, sizeof(__pyx_k_5), 0}, + {&__pyx_k_7p, __pyx_k_7, sizeof(__pyx_k_7), 0}, + {&__pyx_k_9p, __pyx_k_9, sizeof(__pyx_k_9), 0}, + {&__pyx_k_10p, __pyx_k_10, sizeof(__pyx_k_10), 0}, + {0, 0, 0, 0} +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_Wrapper(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)o); + p->calculate_pyArgs = Py_None; Py_INCREF(Py_None); + p->calculate_cArgs = Py_None; Py_INCREF(Py_None); + p->calculate_cArguments = Py_None; Py_INCREF(Py_None); + p->wrappedOperation = Py_None; Py_INCREF(Py_None); + p->storeValues = Py_None; Py_INCREF(Py_None); + p->returnValues = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_Wrapper(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)o; + Py_XDECREF(p->calculate_pyArgs); + Py_XDECREF(p->calculate_cArgs); + Py_XDECREF(p->calculate_cArguments); + Py_XDECREF(p->wrappedOperation); + Py_XDECREF(p->storeValues); + Py_XDECREF(p->returnValues); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_Wrapper(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)o; + if (p->calculate_pyArgs) { + e = (*v)(p->calculate_pyArgs, a); if (e) return e; + } + if (p->calculate_cArgs) { + e = (*v)(p->calculate_cArgs, a); if (e) return e; + } + if (p->calculate_cArguments) { + e = (*v)(p->calculate_cArguments, a); if (e) return e; + } + if (p->wrappedOperation) { + e = (*v)(p->wrappedOperation, a); if (e) return e; + } + if (p->storeValues) { + e = (*v)(p->storeValues, a); if (e) return e; + } + if (p->returnValues) { + e = (*v)(p->returnValues, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_Wrapper(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper *)o; + PyObject* tmp; + tmp = ((PyObject*)p->calculate_pyArgs); + p->calculate_pyArgs = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->calculate_cArgs); + p->calculate_cArgs = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->calculate_cArguments); + p->calculate_cArguments = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->wrappedOperation); + p->wrappedOperation = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->storeValues); + p->storeValues = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->returnValues); + p->returnValues = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_Wrapper[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static struct PyMemberDef __pyx_members_17OpenGL_accelerate_7wrapper_Wrapper[] = { + {"calculate_pyArgs", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, calculate_pyArgs), 0, 0}, + {"calculate_cArgs", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, calculate_cArgs), 0, 0}, + {"calculate_cArguments", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, calculate_cArguments), 0, 0}, + {"wrappedOperation", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, wrappedOperation), 0, 0}, + {"storeValues", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, storeValues), 0, 0}, + {"returnValues", T_OBJECT, offsetof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper, returnValues), 0, 0}, + {0, 0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_Wrapper = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_Wrapper = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_Wrapper = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_Wrapper = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_Wrapper = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.Wrapper", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_Wrapper), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_Wrapper, /*tp_as_number*/ + &__pyx_tp_as_sequence_Wrapper, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_Wrapper, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_Wrapper, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + "C-coded most-generic form of the wrapper\'s core function", /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_methods*/ + __pyx_members_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_7Wrapper___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_Wrapper, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgCalculatorElement(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)o); + p->wrapper = Py_None; Py_INCREF(Py_None); + p->converter = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgCalculatorElement(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)o; + Py_XDECREF(p->wrapper); + Py_XDECREF(p->converter); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgCalculatorElement(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)o; + if (p->wrapper) { + e = (*v)(p->wrapper, a); if (e) return e; + } + if (p->converter) { + e = (*v)(p->converter, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgCalculatorElement(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement *)o; + PyObject* tmp; + tmp = ((PyObject*)p->wrapper); + p->wrapper = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->converter); + p->converter = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_CArgCalculatorElement[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_CArgCalculatorElement = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_CArgCalculatorElement = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_CArgCalculatorElement = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_CArgCalculatorElement = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.CArgCalculatorElement", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculatorElement), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgCalculatorElement, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_CArgCalculatorElement, /*tp_as_number*/ + &__pyx_tp_as_sequence_CArgCalculatorElement, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_CArgCalculatorElement, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_CArgCalculatorElement, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + 0, /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgCalculatorElement, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgCalculatorElement, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_CArgCalculatorElement, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_21CArgCalculatorElement___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgCalculatorElement, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgCalculator(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)o); + p->mapping = ((PyObject *)Py_None); Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)o; + Py_XDECREF(((PyObject *)p->mapping)); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgCalculator(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)o; + if (p->mapping) { + e = (*v)(p->mapping, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator *)o; + PyObject* tmp; + tmp = ((PyObject*)p->mapping); + p->mapping = ((PyObject *)Py_None); Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_CArgCalculator[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_CArgCalculator = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_CArgCalculator = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_CArgCalculator = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_CArgCalculator = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.CArgCalculator", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgCalculator), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgCalculator, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_CArgCalculator, /*tp_as_number*/ + &__pyx_tp_as_sequence_CArgCalculator, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_CArgCalculator, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_CArgCalculator, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + "C-coded version of the c-arg calculator pattern", /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgCalculator, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgCalculator, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_CArgCalculator, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_14CArgCalculator___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgCalculator, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)o); + p->wrapper = Py_None; Py_INCREF(Py_None); + p->converter = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)o; + Py_XDECREF(p->wrapper); + Py_XDECREF(p->converter); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)o; + if (p->wrapper) { + e = (*v)(p->wrapper, a); if (e) return e; + } + if (p->converter) { + e = (*v)(p->converter, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement *)o; + PyObject* tmp; + tmp = ((PyObject*)p->wrapper); + p->wrapper = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->converter); + p->converter = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_PyArgCalculatorElement = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_PyArgCalculatorElement = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_PyArgCalculatorElement = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_PyArgCalculatorElement = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.PyArgCalculatorElement", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_PyArgCalculatorElement, /*tp_as_number*/ + &__pyx_tp_as_sequence_PyArgCalculatorElement, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_PyArgCalculatorElement, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_PyArgCalculatorElement, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + 0, /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_22PyArgCalculatorElement___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_PyArgCalculator(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)o); + p->mapping = ((PyObject *)Py_None); Py_INCREF(Py_None); + p->wrapper = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_PyArgCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)o; + Py_XDECREF(((PyObject *)p->mapping)); + Py_XDECREF(p->wrapper); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_PyArgCalculator(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)o; + if (p->mapping) { + e = (*v)(p->mapping, a); if (e) return e; + } + if (p->wrapper) { + e = (*v)(p->wrapper, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_PyArgCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator *)o; + PyObject* tmp; + tmp = ((PyObject*)p->mapping); + p->mapping = ((PyObject *)Py_None); Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->wrapper); + p->wrapper = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_PyArgCalculator[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_PyArgCalculator = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_PyArgCalculator = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_PyArgCalculator = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_PyArgCalculator = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.PyArgCalculator", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_PyArgCalculator), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_PyArgCalculator, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_PyArgCalculator, /*tp_as_number*/ + &__pyx_tp_as_sequence_PyArgCalculator, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_PyArgCalculator, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_PyArgCalculator, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + "C-coded version of the py-arg calculator pattern", /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_PyArgCalculator, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_PyArgCalculator, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_PyArgCalculator, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_15PyArgCalculator___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_PyArgCalculator, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgumentCalculator(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)o); + p->cResolvers = ((PyObject *)Py_None); Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgumentCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)o; + Py_XDECREF(((PyObject *)p->cResolvers)); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgumentCalculator(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)o; + if (p->cResolvers) { + e = (*v)(p->cResolvers, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgumentCalculator(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator *)o; + PyObject* tmp; + tmp = ((PyObject*)p->cResolvers); + p->cResolvers = ((PyObject *)Py_None); Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_CArgumentCalculator[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_CArgumentCalculator = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_CArgumentCalculator = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_CArgumentCalculator = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_CArgumentCalculator = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.CArgumentCalculator", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_CArgumentCalculator), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CArgumentCalculator, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_CArgumentCalculator, /*tp_as_number*/ + &__pyx_tp_as_sequence_CArgumentCalculator, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_CArgumentCalculator, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_CArgumentCalculator, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + 0, /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CArgumentCalculator, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CArgumentCalculator, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_CArgumentCalculator, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_19CArgumentCalculator___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_CArgumentCalculator, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_HandlerRegistry(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)o); + p->registry = ((PyObject *)Py_None); Py_INCREF(Py_None); + p->match = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_HandlerRegistry(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)o; + Py_XDECREF(((PyObject *)p->registry)); + Py_XDECREF(p->match); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_HandlerRegistry(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)o; + if (p->registry) { + e = (*v)(p->registry, a); if (e) return e; + } + if (p->match) { + e = (*v)(p->match, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_HandlerRegistry(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry *)o; + PyObject* tmp; + tmp = ((PyObject*)p->registry); + p->registry = ((PyObject *)Py_None); Py_INCREF(Py_None); + Py_XDECREF(tmp); + tmp = ((PyObject*)p->match); + p->match = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static int __pyx_mp_ass_subscript_17OpenGL_accelerate_7wrapper_HandlerRegistry(PyObject *o, PyObject *i, PyObject *v) { + if (v) { + return __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___setitem__(o, i, v); + } + else { + PyErr_Format(PyExc_NotImplementedError, + "Subscript deletion not supported by %s", o->ob_type->tp_name); + return -1; + } +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_HandlerRegistry[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, 0}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_HandlerRegistry = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_HandlerRegistry = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_HandlerRegistry = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + __pyx_mp_ass_subscript_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_HandlerRegistry = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_HandlerRegistry = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.HandlerRegistry", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_HandlerRegistry), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_HandlerRegistry, /*tp_as_number*/ + &__pyx_tp_as_sequence_HandlerRegistry, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_HandlerRegistry, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_HandlerRegistry, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + 0, /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_15HandlerRegistry___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_HandlerRegistry, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_CallFuncPyConverter(PyTypeObject *t, PyObject *a, PyObject *k) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *p; + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + p = ((struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)o); + p->function = Py_None; Py_INCREF(Py_None); + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CallFuncPyConverter(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)o; + Py_XDECREF(p->function); + (*o->ob_type->tp_free)(o); +} + +static int __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CallFuncPyConverter(PyObject *o, visitproc v, void *a) { + int e; + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)o; + if (p->function) { + e = (*v)(p->function, a); if (e) return e; + } + return 0; +} + +static int __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CallFuncPyConverter(PyObject *o) { + struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *p = (struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter *)o; + PyObject* tmp; + tmp = ((PyObject*)p->function); + p->function = Py_None; Py_INCREF(Py_None); + Py_XDECREF(tmp); + return 0; +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_CallFuncPyConverter[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_CallFuncPyConverter = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_CallFuncPyConverter = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_CallFuncPyConverter = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_CallFuncPyConverter = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.CallFuncPyConverter", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_CallFuncPyConverter), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_CallFuncPyConverter, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_CallFuncPyConverter, /*tp_as_number*/ + &__pyx_tp_as_sequence_CallFuncPyConverter, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_CallFuncPyConverter, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_CallFuncPyConverter, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ + "PyConverter that takes a callable and calls it on incoming", /*tp_doc*/ + __pyx_tp_traverse_17OpenGL_accelerate_7wrapper_CallFuncPyConverter, /*tp_traverse*/ + __pyx_tp_clear_17OpenGL_accelerate_7wrapper_CallFuncPyConverter, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_CallFuncPyConverter, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_19CallFuncPyConverter___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_CallFuncPyConverter, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static PyObject *__pyx_tp_new_17OpenGL_accelerate_7wrapper_DefaultCConverter(PyTypeObject *t, PyObject *a, PyObject *k) { + PyObject *o = (*t->tp_alloc)(t, 0); + if (!o) return 0; + return o; +} + +static void __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_DefaultCConverter(PyObject *o) { + (*o->ob_type->tp_free)(o); +} + +static struct PyMethodDef __pyx_methods_17OpenGL_accelerate_7wrapper_DefaultCConverter[] = { + {"__call__", (PyCFunction)__pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__}, + {0, 0, 0, 0} +}; + +static PyNumberMethods __pyx_tp_as_number_DefaultCConverter = { + 0, /*nb_add*/ + 0, /*nb_subtract*/ + 0, /*nb_multiply*/ + 0, /*nb_divide*/ + 0, /*nb_remainder*/ + 0, /*nb_divmod*/ + 0, /*nb_power*/ + 0, /*nb_negative*/ + 0, /*nb_positive*/ + 0, /*nb_absolute*/ + 0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + 0, /*nb_coerce*/ + 0, /*nb_int*/ + 0, /*nb_long*/ + 0, /*nb_float*/ + 0, /*nb_oct*/ + 0, /*nb_hex*/ + 0, /*nb_inplace_add*/ + 0, /*nb_inplace_subtract*/ + 0, /*nb_inplace_multiply*/ + 0, /*nb_inplace_divide*/ + 0, /*nb_inplace_remainder*/ + 0, /*nb_inplace_power*/ + 0, /*nb_inplace_lshift*/ + 0, /*nb_inplace_rshift*/ + 0, /*nb_inplace_and*/ + 0, /*nb_inplace_xor*/ + 0, /*nb_inplace_or*/ + 0, /*nb_floor_divide*/ + 0, /*nb_true_divide*/ + 0, /*nb_inplace_floor_divide*/ + 0, /*nb_inplace_true_divide*/ + #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX + 0, /*nb_index*/ + #endif +}; + +static PySequenceMethods __pyx_tp_as_sequence_DefaultCConverter = { + 0, /*sq_length*/ + 0, /*sq_concat*/ + 0, /*sq_repeat*/ + 0, /*sq_item*/ + 0, /*sq_slice*/ + 0, /*sq_ass_item*/ + 0, /*sq_ass_slice*/ + 0, /*sq_contains*/ + 0, /*sq_inplace_concat*/ + 0, /*sq_inplace_repeat*/ +}; + +static PyMappingMethods __pyx_tp_as_mapping_DefaultCConverter = { + 0, /*mp_length*/ + 0, /*mp_subscript*/ + 0, /*mp_ass_subscript*/ +}; + +static PyBufferProcs __pyx_tp_as_buffer_DefaultCConverter = { + 0, /*bf_getreadbuffer*/ + 0, /*bf_getwritebuffer*/ + 0, /*bf_getsegcount*/ + 0, /*bf_getcharbuffer*/ +}; + +PyTypeObject __pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter = { + PyObject_HEAD_INIT(0) + 0, /*ob_size*/ + "OpenGL_accelerate.wrapper.DefaultCConverter", /*tp_name*/ + sizeof(struct __pyx_obj_17OpenGL_accelerate_7wrapper_DefaultCConverter), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + __pyx_tp_dealloc_17OpenGL_accelerate_7wrapper_DefaultCConverter, /*tp_dealloc*/ + 0, /*tp_print*/ + 0, /*tp_getattr*/ + 0, /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + &__pyx_tp_as_number_DefaultCConverter, /*tp_as_number*/ + &__pyx_tp_as_sequence_DefaultCConverter, /*tp_as_sequence*/ + &__pyx_tp_as_mapping_DefaultCConverter, /*tp_as_mapping*/ + 0, /*tp_hash*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___call__, /*tp_call*/ + 0, /*tp_str*/ + 0, /*tp_getattro*/ + 0, /*tp_setattro*/ + &__pyx_tp_as_buffer_DefaultCConverter, /*tp_as_buffer*/ + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/ + 0, /*tp_doc*/ + 0, /*tp_traverse*/ + 0, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + __pyx_methods_17OpenGL_accelerate_7wrapper_DefaultCConverter, /*tp_methods*/ + 0, /*tp_members*/ + 0, /*tp_getset*/ + 0, /*tp_base*/ + 0, /*tp_dict*/ + 0, /*tp_descr_get*/ + 0, /*tp_descr_set*/ + 0, /*tp_dictoffset*/ + __pyx_pf_17OpenGL_accelerate_7wrapper_17DefaultCConverter___init__, /*tp_init*/ + 0, /*tp_alloc*/ + __pyx_tp_new_17OpenGL_accelerate_7wrapper_DefaultCConverter, /*tp_new*/ + 0, /*tp_free*/ + 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ +}; + +static struct PyMethodDef __pyx_methods[] = { + {0, 0, 0, 0} +}; + +static void __pyx_init_filenames(void); /*proto*/ + +PyMODINIT_FUNC initwrapper(void); /*proto*/ +PyMODINIT_FUNC initwrapper(void) { + PyObject *__pyx_1 = 0; + PyObject *__pyx_2 = 0; + /*--- Libary function declarations ---*/ + __pyx_init_filenames(); + /*--- Module creation code ---*/ + __pyx_m = Py_InitModule4("wrapper", __pyx_methods, 0, 0, PYTHON_API_VERSION); + if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + __pyx_b = PyImport_AddModule("__builtin__"); + if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + /*--- Intern code ---*/ + if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + /*--- String init code ---*/ + if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;}; + /*--- Builtin init code ---*/ + __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_AttributeError = __Pyx_GetName(__pyx_b, __pyx_n_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_callable = __Pyx_GetName(__pyx_b, __pyx_n_callable); if (!__pyx_builtin_callable) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_n_enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_Exception = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_builtin_IndexError = __Pyx_GetName(__pyx_b, __pyx_n_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_skip_dispatch = 0; + /*--- Global init code ---*/ + /*--- Function export code ---*/ + /*--- Type init code ---*/ + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_Wrapper) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "Wrapper", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_Wrapper) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_Wrapper = &__pyx_type_17OpenGL_accelerate_7wrapper_Wrapper; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "CArgCalculatorElement", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_CArgCalculatorElement = &__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculatorElement; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "CArgCalculator", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_CArgCalculator = &__pyx_type_17OpenGL_accelerate_7wrapper_CArgCalculator; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "PyArgCalculatorElement", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement = &__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculatorElement; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "PyArgCalculator", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_PyArgCalculator = &__pyx_type_17OpenGL_accelerate_7wrapper_PyArgCalculator; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "CArgumentCalculator", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_CArgumentCalculator = &__pyx_type_17OpenGL_accelerate_7wrapper_CArgumentCalculator; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_HandlerRegistry) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "HandlerRegistry", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_HandlerRegistry) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_HandlerRegistry = &__pyx_type_17OpenGL_accelerate_7wrapper_HandlerRegistry; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "CallFuncPyConverter", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_CallFuncPyConverter = &__pyx_type_17OpenGL_accelerate_7wrapper_CallFuncPyConverter; + if (PyType_Ready(&__pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttrString(__pyx_m, "DefaultCConverter", (PyObject *)&__pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1;} + __pyx_ptype_17OpenGL_accelerate_7wrapper_DefaultCConverter = &__pyx_type_17OpenGL_accelerate_7wrapper_DefaultCConverter; + /*--- Type import code ---*/ + /*--- Function import code ---*/ + /*--- Execution code ---*/ + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":1 + * import ctypes # <<<<<<<<<<<<<< + * from OpenGL import error + * + */ + __pyx_1 = __Pyx_Import(__pyx_n_ctypes, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_ctypes, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":2 + * import ctypes + * from OpenGL import error # <<<<<<<<<<<<<< + * + * cdef class Wrapper: + */ + __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_INCREF(__pyx_n_error); + PyList_SET_ITEM(__pyx_1, 0, __pyx_n_error); + __pyx_2 = __Pyx_Import(__pyx_n_OpenGL, ((PyObject *)__pyx_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0; + __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_error); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_error, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1;} + Py_DECREF(__pyx_1); __pyx_1 = 0; + Py_DECREF(__pyx_2); __pyx_2 = 0; + + /* "/home/mcfletch/OpenGL-dev/OpenGL-ctypes/src/wrapper.pyx":224 + * """Just store index for future access""" + * self.index = index + * def __call__( self, pyArgs, index, wrapper ): # <<<<<<<<<<<<<< + * """Return pyArgs[self.index] or raise a ValueError""" + * try: + */ + return; + __pyx_L1:; + Py_XDECREF(__pyx_1); + Py_XDECREF(__pyx_2); + __Pyx_AddTraceback("OpenGL_accelerate.wrapper"); +} + +static char *__pyx_filenames[] = { + "wrapper.pyx", +}; + +/* Runtime support code */ + +static void __pyx_init_filenames(void) { + __pyx_f = __pyx_filenames; +} + +static INLINE void __Pyx_RaiseArgtupleTooLong( + Py_ssize_t num_expected, + Py_ssize_t num_found) +{ + const char* error_message = + #if PY_VERSION_HEX < 0x02050000 + "function takes at most %d positional arguments (%d given)"; + #else + "function takes at most %zd positional arguments (%zd given)"; + #endif + PyErr_Format(PyExc_TypeError, error_message, num_expected, num_found); +} + +static INLINE int __Pyx_SplitStarArg( + PyObject **args, + Py_ssize_t nargs, + PyObject **args2) +{ + PyObject *args1 = 0; + args1 = PyTuple_GetSlice(*args, 0, nargs); + if (!args1) { + *args2 = 0; + return -1; + } + *args2 = PyTuple_GetSlice(*args, nargs, PyTuple_GET_SIZE(*args)); + if (!*args2) { + Py_DECREF(args1); + return -1; + } + *args = args1; + return 0; +} + +static int __Pyx_CheckKeywordStrings( + PyObject *kwdict, + const char* function_name, + int kw_allowed) +{ + PyObject* key = 0; + Py_ssize_t pos = 0; + while (PyDict_Next(kwdict, &pos, &key, 0)) { + if (unlikely(!PyString_Check(key))) { + PyErr_Format(PyExc_TypeError, + "%s() keywords must be strings", function_name); + return 0; + } + } + if (unlikely(!kw_allowed) && unlikely(key)) { + PyErr_Format(PyExc_TypeError, + "'%s' is an invalid keyword argument for this function", + PyString_AsString(key)); + return 0; + } + return 1; +} + +static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { + PyObject *__import__ = 0; + PyObject *empty_list = 0; + PyObject *module = 0; + PyObject *global_dict = 0; + PyObject *empty_dict = 0; + PyObject *list; + __import__ = PyObject_GetAttrString(__pyx_b, "__import__"); + if (!__import__) + goto bad; + if (from_list) + list = from_list; + else { + empty_list = PyList_New(0); + if (!empty_list) + goto bad; + list = empty_list; + } + global_dict = PyModule_GetDict(__pyx_m); + if (!global_dict) + goto bad; + empty_dict = PyDict_New(); + if (!empty_dict) + goto bad; + module = PyObject_CallFunction(__import__, "OOOO", + name, global_dict, empty_dict, list); +bad: + Py_XDECREF(empty_list); + Py_XDECREF(__import__); + Py_XDECREF(empty_dict); + return module; +} + +static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { + if (!type) { + PyErr_Format(PyExc_SystemError, "Missing type object"); + return 0; + } + if (obj == Py_None || PyObject_TypeCheck(obj, type)) + return 1; + PyErr_Format(PyExc_TypeError, "Cannot convert %s to %s", + obj->ob_type->tp_name, type->tp_name); + return 0; +} + +static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { + PyObject *result; + result = PyObject_GetAttr(dict, name); + if (!result) + PyErr_SetObject(PyExc_NameError, name); + return result; +} + +static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { + Py_XINCREF(type); + Py_XINCREF(value); + Py_XINCREF(tb); + /* First, check the traceback argument, replacing None with NULL. */ + if (tb == Py_None) { + Py_DECREF(tb); + tb = 0; + } + else if (tb != NULL && !PyTraceBack_Check(tb)) { + PyErr_SetString(PyExc_TypeError, + "raise: arg 3 must be a traceback or None"); + goto raise_error; + } + /* Next, replace a missing value with None */ + if (value == NULL) { + value = Py_None; + Py_INCREF(value); + } + #if PY_VERSION_HEX < 0x02050000 + if (!PyClass_Check(type)) + #else + if (!PyType_Check(type)) + #endif + { + /* Raising an instance. The value should be a dummy. */ + if (value != Py_None) { + PyErr_SetString(PyExc_TypeError, + "instance exception may not have a separate value"); + goto raise_error; + } + /* Normalize to raise , */ + Py_DECREF(value); + value = type; + #if PY_VERSION_HEX < 0x02050000 + if (PyInstance_Check(type)) { + type = (PyObject*) ((PyInstanceObject*)type)->in_class; + Py_INCREF(type); + } + else { + type = 0; + PyErr_SetString(PyExc_TypeError, + "raise: exception must be an old-style class or instance"); + goto raise_error; + } + #else + type = (PyObject*) type->ob_type; + Py_INCREF(type); + if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { + PyErr_SetString(PyExc_TypeError, + "raise: exception class must be a subclass of BaseException"); + goto raise_error; + } + #endif + } + PyErr_Restore(type, value, tb); + return; +raise_error: + Py_XDECREF(value); + Py_XDECREF(type); + Py_XDECREF(tb); + return; +} + +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { + PyObject *tmp_type, *tmp_value, *tmp_tb; + PyThreadState *tstate = PyThreadState_Get(); + PyErr_Fetch(type, value, tb); + PyErr_NormalizeException(type, value, tb); + if (PyErr_Occurred()) + goto bad; + Py_INCREF(*type); + Py_INCREF(*value); + Py_INCREF(*tb); + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = *type; + tstate->exc_value = *value; + tstate->exc_traceback = *tb; + /* Make sure tstate is in a consistent state when we XDECREF + these objects (XDECREF may run arbitrary code). */ + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); + return 0; +bad: + Py_XDECREF(*type); + Py_XDECREF(*value); + Py_XDECREF(*tb); + return -1; +} + +static PyObject *__Pyx_UnpackItem(PyObject *iter, Py_ssize_t index) { + PyObject *item; + if (!(item = PyIter_Next(iter))) { + if (!PyErr_Occurred()) { + PyErr_Format(PyExc_ValueError, + #if PY_VERSION_HEX < 0x02050000 + "need more than %d values to unpack", (int)index); + #else + "need more than %zd values to unpack", index); + #endif + } + } + return item; +} + +static int __Pyx_EndUnpack(PyObject *iter) { + PyObject *item; + if ((item = PyIter_Next(iter))) { + Py_DECREF(item); + PyErr_SetString(PyExc_ValueError, "too many values to unpack"); + return -1; + } + else if (!PyErr_Occurred()) + return 0; + else + return -1; +} + +static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { + while (t->p) { + *t->p = PyString_InternFromString(t->s); + if (!*t->p) + return -1; + ++t; + } + return 0; +} + +static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { + while (t->p) { + if (t->is_unicode) { + *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); + } else { + *t->p = PyString_FromStringAndSize(t->s, t->n - 1); + } + if (!*t->p) + return -1; + ++t; + } + return 0; +} + +#include "compile.h" +#include "frameobject.h" +#include "traceback.h" + +static void __Pyx_AddTraceback(char *funcname) { + PyObject *py_srcfile = 0; + PyObject *py_funcname = 0; + PyObject *py_globals = 0; + PyObject *empty_string = 0; + PyCodeObject *py_code = 0; + PyFrameObject *py_frame = 0; + + py_srcfile = PyString_FromString(__pyx_filename); + if (!py_srcfile) goto bad; + if (__pyx_clineno) { + py_funcname = PyString_FromFormat( "%s (%s:%u)", funcname, __pyx_cfilenm, __pyx_clineno); + } + else { + py_funcname = PyString_FromString(funcname); + } + if (!py_funcname) goto bad; + py_globals = PyModule_GetDict(__pyx_m); + if (!py_globals) goto bad; + empty_string = PyString_FromString(""); + if (!empty_string) goto bad; + py_code = PyCode_New( + 0, /*int argcount,*/ + 0, /*int nlocals,*/ + 0, /*int stacksize,*/ + 0, /*int flags,*/ + empty_string, /*PyObject *code,*/ + __pyx_empty_tuple, /*PyObject *consts,*/ + __pyx_empty_tuple, /*PyObject *names,*/ + __pyx_empty_tuple, /*PyObject *varnames,*/ + __pyx_empty_tuple, /*PyObject *freevars,*/ + __pyx_empty_tuple, /*PyObject *cellvars,*/ + py_srcfile, /*PyObject *filename,*/ + py_funcname, /*PyObject *name,*/ + __pyx_lineno, /*int firstlineno,*/ + empty_string /*PyObject *lnotab*/ + ); + if (!py_code) goto bad; + py_frame = PyFrame_New( + PyThreadState_Get(), /*PyThreadState *tstate,*/ + py_code, /*PyCodeObject *code,*/ + py_globals, /*PyObject *globals,*/ + 0 /*PyObject *locals*/ + ); + if (!py_frame) goto bad; + py_frame->f_lineno = __pyx_lineno; + PyTraceBack_Here(py_frame); +bad: + Py_XDECREF(py_srcfile); + Py_XDECREF(py_funcname); + Py_XDECREF(empty_string); + Py_XDECREF(py_code); + Py_XDECREF(py_frame); +} + +/* Type Conversion Functions */ + +static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b) { + Py_ssize_t ival; + PyObject* x = PyNumber_Index(b); + if (!x) return -1; + ival = PyInt_AsSsize_t(x); + Py_DECREF(x); + return ival; +} + +static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { + if (x == Py_True) return 1; + else if (x == Py_False) return 0; + else return PyObject_IsTrue(x); +} + +static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) { + if (PyInt_CheckExact(x)) { + return PyInt_AS_LONG(x); + } + else if (PyLong_CheckExact(x)) { + return PyLong_AsLongLong(x); + } + else { + PY_LONG_LONG val; + PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; + val = __pyx_PyInt_AsLongLong(tmp); + Py_DECREF(tmp); + return val; + } +} + +static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x) { + if (PyInt_CheckExact(x)) { + long val = PyInt_AS_LONG(x); + if (unlikely(val < 0)) { + PyErr_SetString(PyExc_TypeError, "Negative assignment to unsigned type."); + return (unsigned PY_LONG_LONG)-1; + } + return val; + } + else if (PyLong_CheckExact(x)) { + return PyLong_AsUnsignedLongLong(x); + } + else { + PY_LONG_LONG val; + PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; + val = __pyx_PyInt_AsUnsignedLongLong(tmp); + Py_DECREF(tmp); + return val; + } +} + + +static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x) { + if (sizeof(unsigned char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + unsigned char val = (unsigned char)long_val; + if (unlikely((val != long_val) || (long_val < 0))) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned char"); + return (unsigned char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x) { + if (sizeof(unsigned short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + unsigned short val = (unsigned short)long_val; + if (unlikely((val != long_val) || (long_val < 0))) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned short"); + return (unsigned short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE char __pyx_PyInt_char(PyObject* x) { + if (sizeof(char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + char val = (char)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to char"); + return (char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE short __pyx_PyInt_short(PyObject* x) { + if (sizeof(short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + short val = (short)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to short"); + return (short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE int __pyx_PyInt_int(PyObject* x) { + if (sizeof(int) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + int val = (int)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); + return (int)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE long __pyx_PyInt_long(PyObject* x) { + if (sizeof(long) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + long val = (long)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); + return (long)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed char __pyx_PyInt_signed_char(PyObject* x) { + if (sizeof(signed char) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed char val = (signed char)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed char"); + return (signed char)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed short __pyx_PyInt_signed_short(PyObject* x) { + if (sizeof(signed short) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed short val = (signed short)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed short"); + return (signed short)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed int __pyx_PyInt_signed_int(PyObject* x) { + if (sizeof(signed int) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed int val = (signed int)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed int"); + return (signed int)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE signed long __pyx_PyInt_signed_long(PyObject* x) { + if (sizeof(signed long) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + signed long val = (signed long)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed long"); + return (signed long)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} + +static INLINE long double __pyx_PyInt_long_double(PyObject* x) { + if (sizeof(long double) < sizeof(long)) { + long long_val = __pyx_PyInt_AsLong(x); + long double val = (long double)long_val; + if (unlikely((val != long_val) )) { + PyErr_SetString(PyExc_OverflowError, "value too large to convert to long double"); + return (long double)-1; + } + return val; + } + else { + return __pyx_PyInt_AsLong(x); + } +} diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/src/wrapper.pyx /tmp/6jwPQaot5C/pyopengl-3.0.0/src/wrapper.pyx --- pyopengl-3.0.0~b6/src/wrapper.pyx 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/src/wrapper.pyx 2008-12-08 04:16:32.000000000 +0000 @@ -0,0 +1,233 @@ +import ctypes +from OpenGL import error + +cdef class Wrapper: + """C-coded most-generic form of the wrapper's core function""" + cdef public object calculate_pyArgs, calculate_cArgs, calculate_cArguments, wrappedOperation, storeValues,returnValues + def __init__( + self, wrappedOperation, + calculate_pyArgs=None, calculate_cArgs=None, + calculate_cArguments=None, + storeValues=None, returnValues=None, + ): + self.calculate_pyArgs = calculate_pyArgs + self.calculate_cArgs = calculate_cArgs + self.calculate_cArguments = calculate_cArguments + self.wrappedOperation = wrappedOperation + self.storeValues = storeValues + self.returnValues = returnValues + + def __call__( self, *args ): + cdef tuple pyArgs, cArgs, cArguments + if self.calculate_pyArgs is not None: + pyArgs = tuple(self.calculate_pyArgs( args )) + else: + pyArgs = args + if self.calculate_cArgs is not None: + cArgs = tuple(self.calculate_cArgs( pyArgs )) + else: + cArgs = pyArgs + if self.calculate_cArguments is not None: + cArguments = tuple(self.calculate_cArguments( cArgs )) + else: + cArguments = cArgs + try: + result = self.wrappedOperation( *cArguments ) + except (ctypes.ArgumentError,TypeError,AttributeError), err: + err.args = err.args + (cArguments,) + raise err + except error.GLError, err: + err.cArgs = cArgs + err.pyArgs = pyArgs + raise err + # handle storage of persistent argument values... + if self.storeValues: + self.storeValues( + result, + self, + pyArgs, + cArgs, + ) + if self.returnValues: + return self.returnValues( + result, + self, + pyArgs, + cArgs, + ) + else: + return result + +cdef class CArgCalculatorElement: + cdef object wrapper + cdef long index + cdef int callable + cdef object converter + def __init__( self, wrapper, index, converter ): + self.wrapper = wrapper + self.index = index + self.converter = converter + self.callable = callable( converter ) + def __call__( self, pyArgs ): + """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + if self.callable: + return self.converter( pyArgs, self.index, self.wrapper ) + return self.converter + +cdef class CArgCalculator: + """C-coded version of the c-arg calculator pattern""" + cdef list mapping + def __init__( + self, + wrapper, + cConverters + ): + self.mapping = [ + CArgCalculatorElement(self,i,converter) + for (i,converter) in enumerate( cConverters ) + ] + def __call__( self, pyArgs ): + return [ + calc( pyArgs ) + for calc in self.mapping + ] + +cdef class PyArgCalculatorElement: + cdef object wrapper + cdef long index + cdef int callable + cdef object converter + def __init__( self, wrapper, index, converter ): + self.wrapper = wrapper + self.index = index + self.converter = converter + def __call__( self, args ): + """If callable, call converter( pyArgs, index, wrapper ), else return converter""" + if self.converter is None: + return args[self.index] + try: + return self.converter( + args[self.index], self.wrapper, args + ) + except Exception, err: + if hasattr( err, 'args' ): + err.args += ( self.converter, ) + raise + +cdef class PyArgCalculator: + """C-coded version of the py-arg calculator pattern""" + cdef list mapping + cdef int length + cdef object wrapper + def __init__( + self, + wrapper, + pyConverters + ): + self.wrapper = wrapper + self.mapping = [ + PyArgCalculatorElement(self,i,converter) + for (i,converter) in enumerate( pyConverters ) + ] + self.length = len(pyConverters) + + def __call__( self, args ): + if self.length != len(args): + raise ValueError( + """%s requires %r arguments (%s), received %s: %r"""%( + self.wrapper.wrappedOperation.__name__, + self.length, + ", ".join( self.wrapper.pyConverterNames ), + len(args), + args + ) + ) + return [ + calc( args ) + for calc in self.mapping + ] + +cdef class CArgumentCalculator: + cdef list cResolvers + def __init__( self, cResolvers ): + self.cResolvers = cResolvers + def __call__( self, cArgs ): + cdef int i + cdef int resolver_length + cdef object converter + resolver_length = len(self.cResolvers ) + if len(cArgs) != resolver_length: + raise TypeError( + """Expected %s C arguments for resolution, got %s"""%( + resolver_length,len(cArgs) + ) + ) + result = [] + for i in range( resolver_length ): + converter = self.cResolvers[i] + if converter is None: + result.append( cArgs[i] ) + else: + try: + result.append( converter( cArgs[i] )) + except Exception, err: + err.args += (converter,) + raise + return result + +cdef class HandlerRegistry: + cdef dict registry + cdef object match + def __init__( self, plugin_match ): + self.registry = {} + self.match = plugin_match + def __setitem__( self,key,value ): + self.registry[key] = value + def __call__( self, value ): + try: + typ = value.__class__ + except AttributeError, err: + typ = type(value) + handler = self.registry.get( typ ) + if handler is None: + if hasattr( typ, '__mro__' ): + for base in typ.__mro__: + handler = self.registry.get( base ) + if handler is None: + handler = self.match( base ) + if handler: + handler = self.registry[ base ] + handler.registerEquivalent( typ, base ) + self.registry[ typ ] = handler + return handler + raise TypeError( + """No array-type handler for type %r (value: %s) registered"""%( + typ, repr(value)[:50] + ) + ) + return handler + +cdef class CallFuncPyConverter: + """PyConverter that takes a callable and calls it on incoming""" + cdef object function + def __init__( self, function ): + """Store the function""" + self.function = function + def __call__( self, incoming, function, argument ): + """Call our function on incoming""" + return self.function( incoming ) +cdef class DefaultCConverter: + cdef int index + def __init__( self, index ): + """Just store index for future access""" + self.index = index + def __call__( self, pyArgs, index, wrapper ): + """Return pyArgs[self.index] or raise a ValueError""" + try: + return pyArgs[ self.index ] + except IndexError, err: + raise ValueError( + """Expected parameter index %r, but pyArgs only length %s"""%( + self.index, + len(pyArgs ) + )) diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/performance.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/performance.py --- pyopengl-3.0.0~b6/tests/performance.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/performance.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,91 @@ +#! /usr/bin/env python +"""This script is intended to give me an idea of current performance with various drawing strategies""" +from OpenGL.GL import * +from OpenGL.GLU import * +from OpenGL.GLUT import * +from OpenGL.arrays import vbo +from lsprofcalltree import KCacheGrind +import cProfile, time +PROFILER = cProfile.Profile() + +import numpy + +def dump( ): + def newfile( base ): + new = base + count = 0 + while os.path.isfile( new ): + new = '%s-%s'%( base, count ) + count += 1 + return new + KCacheGrind( PROFILER ).output( open( + newfile( 'callgrind.out' ), 'wb' + )) + + +def init_vbo( size = 1000000 ): + """Create VBO with vertices of count size""" + a = numpy.zeros( (size,3), dtype='d') + xes = numpy.arange(-5,5,float(10)/size, dtype='d' ) + a[:len(xes),0] = xes + a[:len(xes),1] = numpy.sin( xes ) + a[:len(xes),2] = numpy.cos( xes ) + v = a + v = vbo.VBO( a ) + v.bind() + glEnableClientState(GL_VERTEX_ARRAY); + glEnable( GL_LIGHTING ) + glEnable( GL_LIGHT0 ) + glDisable( GL_CULL_FACE ) + glColor3f( 1.0,1.0,1.0) + glNormal3f( 0.0, 0.0, 1.0 ) + return v + +def draw_with_array( a , count): + glDrawArrays( GL_TRIANGLES, 0, (count) ) + glFlush() + glutSwapBuffers() + +def init(): + glMatrixMode (GL_PROJECTION) + glLoadIdentity() + gluPerspective(40.0, 300/300, 1.0, 20.0) + glMatrixMode(GL_MODELVIEW) + glLoadIdentity() + gluLookAt( + 20,0,0, # eyepoint + 0,0,0, # center-of-view + 0,1,0, # up-vector + ) + glClearColor( 0,0,.25, 0 ) + glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ) + +def display( ): + init() + repeat = range(100) + for count in [(2**i) for i in range(8,22)]: + v = init_vbo( count ) + def x( ): + t1 = time.time() + for i in repeat: + glVertexPointer( 3, GL_DOUBLE, 0, v ) + draw_with_array( v, count ) + t2 = time.time() + print 'Count: %s Total Time for %s iterations: %s MTri/s: %s'%( + count, len(repeat), t2-t1, (count*len(repeat)/(t2-t1)/1000000) + ) + PROFILER.runcall( x ) + dump() + import sys + sys.exit(1) + print 'should not get here' + +if __name__ == "__main__": + import sys + newArgv = glutInit(sys.argv) + glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB ) + glutInitWindowSize(250, 250) + glutInitWindowPosition(100, 100) + window = glutCreateWindow("hello") + glutDisplayFunc(display) + glutMainLoop() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_crash_on_glutinit.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_crash_on_glutinit.py --- pyopengl-3.0.0~b6/tests/test_crash_on_glutinit.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_crash_on_glutinit.py 2009-02-17 03:23:01.000000000 +0000 @@ -0,0 +1,9 @@ + +if __name__ == "__main__": + from OpenGL.GLUT import * + from OpenGL.GL import * + glutInit( ' ' ) + glutInitDisplayMode( GLUT_SINGLE ) + window = glutCreateWindow("hello") + glutDisplayFunc( lambda *args: 1 ) + glutMainLoop() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_genframebuffers_twice.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_genframebuffers_twice.py --- pyopengl-3.0.0~b6/tests/test_genframebuffers_twice.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_genframebuffers_twice.py 2009-02-16 19:50:21.000000000 +0000 @@ -0,0 +1,20 @@ +#! /usr/bin/env python +"""Test for glGenFramebuffersEXT multiple-call failure reported by Joshua Davis""" +from OpenGL.GL import * +from OpenGL.GLU import * +from OpenGL.GLUT import * +# adapted from http://www.pygame.org/wiki/GLSLExample +from OpenGL.GL.EXT.framebuffer_object import * +def main(): + glutInit(0) + glutInitDisplayMode(GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH) + glutCreateWindow('test') + framebuffer = glGenFramebuffersEXT(1) + print type(framebuffer) + cow = glGenFramebuffersEXT(1) + print cow + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, framebuffer) + +if __name__ == "__main__": + main() + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_glgetfloat_leak.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_glgetfloat_leak.py --- pyopengl-3.0.0~b6/tests/test_glgetfloat_leak.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_glgetfloat_leak.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,31 @@ +#!/usr/bin/python + +import pygame +from pygame.locals import * +from OpenGL.GL import * +from OpenGL.GLU import * + +def main(): + pygame.init() + pygame.display.set_mode((800,600), pygame.OPENGL| + pygame.DOUBLEBUF) + glClearColor(1.0, 0.0, 0.0, 1.0) + glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT) + + done = False + + while not done: + for i in range(0,50000): + modelview_matrix = glGetFloatv(GL_MODELVIEW_MATRIX) + if not i % 500: + print '.', + print + pygame.display.flip() + + eventlist = pygame.event.get() + for event in eventlist: + if event.type == QUIT or event.type == KEYDOWN and event.key == K_ESCAPE: + done = True + +if __name__ == '__main__': + main() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_glu_crash_under_pygame.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_glu_crash_under_pygame.py --- pyopengl-3.0.0~b6/tests/test_glu_crash_under_pygame.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_glu_crash_under_pygame.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,6 @@ +if __name__ == "__main__": + import pygame + pygame.init() + screen = pygame.display.set_mode([800, 600], pygame.OPENGL | pygame.DOUBLEBUF) + from OpenGL.GL import * + from OpenGL.GLU import * diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_glutinit_0args.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_glutinit_0args.py --- pyopengl-3.0.0~b6/tests/test_glutinit_0args.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_glutinit_0args.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,12 @@ +#! /usr/bin/env python +"""Test that GLUT.glutInit accepts 0 arguments""" +from OpenGL import GLUT + +if __name__ == "__main__": + try: + GLUT.glutInit() + except Exception, err: + raise + else: + print 'accepted 0 arguments, as desired' + \ No newline at end of file diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_glutinit.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_glutinit.py --- pyopengl-3.0.0~b6/tests/test_glutinit.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_glutinit.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,26 @@ +from OpenGL.GL import * +from OpenGL.GLUT import * +from OpenGL.GLU import * +import time + +resX,resY = (400,300 ) + +def display( ): + glutSetWindow(window); + glClearColor (0.0, 0.0, (time.time()%1.0)/1.0, 0.0) + glClear (GL_COLOR_BUFFER_BIT) + glFlush () + glutSwapBuffers() + + +if __name__ == "__main__": + glutInit([]) + glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) + + glutInitWindowSize(resX, resY) + + glutInitWindowPosition(0, 0) + window = glutCreateWindow("hello") + glutDisplayFunc(display) + glutMainLoop() + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_glutwindow.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_glutwindow.py --- pyopengl-3.0.0~b6/tests/test_glutwindow.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_glutwindow.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,116 @@ +"""Test simple functions (i.e. no pointers involved)""" +from OpenGL.GL import * +from OpenGL.GLU import * +from OpenGL.GLUT import * +import time +start = time.time() + +window = None + +def drawText( value, x,y, windowHeight, windowWidth, step = 18 ): + """Draw the given text at given 2D position in window + """ + glMatrixMode(GL_PROJECTION); + # For some reason the GL_PROJECTION_MATRIX is overflowing with a single push! + # glPushMatrix() + matrix = glGetDouble( GL_PROJECTION_MATRIX ) + + glLoadIdentity(); + glOrtho(0.0, windowHeight or 32, 0.0, windowWidth or 32, -1.0, 1.0) + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadIdentity(); + glRasterPos2i(x, y); + lines = 0 + for character in value: + if character == '\n': + glRasterPos2i(x, y-(lines*18)) + else: + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord(character)); + glPopMatrix(); + glMatrixMode(GL_PROJECTION); + # For some reason the GL_PROJECTION_MATRIX is overflowing with a single push! + # glPopMatrix(); + glLoadMatrixd( matrix ) # should have un-decorated alias for this... + + glMatrixMode(GL_MODELVIEW); + +def display(): + glutSetWindow(window); + glClearColor (0.0, 0.0, (time.time()%1.0)/1.0, 0.0) + glClear (GL_COLOR_BUFFER_BIT) + drawText( 'hello', 20,20, size[0],size[1] ) + #glutBitmapCharacter( GLUT_BITMAP_8_BY_13, ord('a')) + glutSolidTeapot( .2 ) + glFlush () + glutSwapBuffers() + +size = (250,250) + +def reshape( *args ): + print 'reshape', args + global size + size = args + display() + +def ontimer( *args ): + print 'timer', args, '@time', time.time()-start + glutTimerFunc( 1000, ontimer, 24 ) + +def idle(): + delta = time.time()-start + if delta < 10: + global size + x,y = size + if delta < 5: + change = +1 + else: + change = -1 + x = x-change + y = y+change + if x < 1: + x = 1 + if y < 1: + y = 1 + glutReshapeWindow( x, y ) + size = (x,y) + glutSetWindow(window) + glutPostRedisplay() + else: + glutDestroyWindow( window ) + print 'window destroyed' + import sys + sys.exit( 0 ) + +def testFunction( name ): + def onevent( *args ): + print '%s -> %s'%(name, ", ".join( [str(a) for a in args ])) + return onevent + + + +if __name__ == "__main__": + import sys + newArgv = glutInit(sys.argv) + print 'newArguments', newArgv + glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB ) + glutInitWindowSize(250, 250) + glutInitWindowPosition(100, 100) + window = glutCreateWindow("hello") + print 'window', repr(window) + glutDisplayFunc(display) + glutReshapeFunc(reshape) + glutMouseFunc(testFunction( 'Mouse' )) + glutEntryFunc(testFunction( 'Entry' )) + glutKeyboardFunc( testFunction( 'Keyboard' )) + glutKeyboardUpFunc( testFunction( 'KeyboardUp' )) + glutMotionFunc( testFunction( 'Motion' )) + glutPassiveMotionFunc( testFunction( 'PassiveMotion' )) + glutVisibilityFunc( testFunction( 'Visibility' )) + glutWindowStatusFunc( testFunction( 'WindowStatus' )) + glutSpecialFunc( testFunction( 'Special' )) + glutSpecialUpFunc( testFunction( 'SpecialUp' )) + glutTimerFunc( 1000, ontimer, 23 ) + + glutIdleFunc( idle ) + glutMainLoop() diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/testing_context.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/testing_context.py --- pyopengl-3.0.0~b6/tests/testing_context.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/testing_context.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,26 @@ +import pygame +from pygame.locals import * +import pygame.key +import pygame.display +from OpenGL.GLUT import * + + +def createPyGameContext(): + """Setup a minimal PyGame context for testing""" + pygame.display.init() + screen = pygame.display.set_mode( + (300,300), + OPENGL | DOUBLEBUF, + ) + pygame.display.set_caption("testing") + pygame.key.set_repeat(500,30) + return pygame.display + +def createGLUTContext(): + """Setup a minimal GLUT context for testing""" + glutInit( [] ) + glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB ) + glutInitWindowSize(250, 250) + glutInitWindowPosition(100, 100) + window = glutCreateWindow("hello") + return window diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_loadglut.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_loadglut.py --- pyopengl-3.0.0~b6/tests/test_loadglut.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_loadglut.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,16 @@ +import ctypes +try: + from ctypes.util import find_library +except ImportError, err: + from ctypes.util import findLib + def find_library( string ): + return findLib( string )[0] + +GL = OpenGL = ctypes.CDLL( find_library('GL'), mode=ctypes.RTLD_GLOBAL ) +GLU = ctypes.CDLL( find_library('GLU'), mode=ctypes.RTLD_GLOBAL ) +# glut shouldn't need to be global IIUC +GLUT = ctypes.CDLL( find_library('glut'), mode=ctypes.RTLD_GLOBAL ) +print 'GL', GL +print 'GLU', GLU +print 'GLUT', GLUT +print GLUT.glutSolidTeapot diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/tests.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/tests.py --- pyopengl-3.0.0~b6/tests/tests.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/tests.py 2009-03-04 07:42:39.000000000 +0000 @@ -0,0 +1,738 @@ +#! /usr/bin/env python +import unittest, pygame, pygame.display, time, traceback + +try: + raise ImportError( ) + from numpy import * +except ImportError, err: + try: + raise ImportError( ) + from Numeric import * + except ImportError, err: + array = None + +pygame.display.init() +from OpenGL.GL import * +from OpenGL import constants, error +from OpenGL.GLU import * +from OpenGL.arrays import arraydatatype +import OpenGL +from OpenGL.extensions import alternate +import ctypes +from OpenGL.GL.EXT.framebuffer_object import * +from OpenGL.GL.EXT.multi_draw_arrays import * +from OpenGL.GL.ARB.imaging import * + +glMultiDrawElements = alternate( + glMultiDrawElementsEXT, glMultiDrawElements, +) + + +class Tests( unittest.TestCase ): + evaluator_ctrlpoints = [[[ -1.5, -1.5, 4.0], [-0.5, -1.5, 2.0], [0.5, -1.5, + -1.0], [1.5, -1.5, 2.0]], [[-1.5, -0.5, 1.0], [-0.5, -0.5, 3.0], [0.5, -0.5, + 0.0], [1.5, -0.5, -1.0]], [[-1.5, 0.5, 4.0], [-0.5, 0.5, 0.0], [0.5, 0.5, + 3.0], [1.5, 0.5, 4.0]], [[-1.5, 1.5, -2.0], [-0.5, 1.5, -2.0], [0.5, 1.5, + 0.0], [1.5, 1.5, -1.0]]] + width = height = 300 + def setUp( self ): + """Set up the operation""" + + self.screen = pygame.display.set_mode( + (self.width,self.height), + pygame.OPENGL | pygame.DOUBLEBUF, + ) + + pygame.display.set_caption('Testing system') + pygame.key.set_repeat(500,30) + glMatrixMode (GL_PROJECTION) + glLoadIdentity() + gluPerspective(40.0, 300/300, 1.0, 20.0) + glMatrixMode(GL_MODELVIEW) + glLoadIdentity() + gluLookAt( + -2,0,3, # eyepoint + 0,0,0, # center-of-view + 0,1,0, # up-vector + ) + glClearColor( 0,0,.25, 0 ) + glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ) + def tearDown( self ): + glFlush() + pygame.display.flip() + time.sleep( .25 ) + #raw_input( 'Okay? ' ) + def test_arrayPointer( self ): + dt = arraydatatype.GLuintArray + d = dt.zeros( (3,)) + dp = dt.typedPointer( d ) + assert dp[0] == 0 + assert dp[1] == 0 + assert dp[2] == 0 + dp[1] = 1 + assert dp[1] == 1 + assert d[1] == 1 + def test_ctypes_array( self ): + color = (GLfloat * 3)( 0,1,0 ) + glColor3fv( color ) + + def test_evaluator( self ): + """Test whether the evaluator functions work""" + glDisable(GL_CULL_FACE) + glEnable(GL_MAP2_VERTEX_3) + glEnable(GL_DEPTH_TEST) + glEnable(GL_NORMALIZE) + glMap2f(GL_MAP2_VERTEX_3, 0, 1, 0, 1, self.evaluator_ctrlpoints) + glMapGrid2f(20, 0.0, 1.0, 20, 0.0, 1.0) + glShadeModel(GL_FLAT) + glEvalMesh2(GL_FILL, 0, 20, 0, 20) + glTranslatef( 0,0.001, 0 ) + glEvalMesh2(GL_POINT, 0, 20, 0, 20) + def test_nurbs_raw( self ): + """Test nurbs rendering using raw API calls""" + from OpenGL.raw import GLU + knots = (constants.GLfloat* 8) ( 0,0,0,0,1,1,1,1 ) + ctlpoints = (constants.GLfloat*(3*4*4))( -3., -3., -3., + -3., -1., -3., + -3., 1., -3., + -3., 3., -3., + + -1., -3., -3., + -1., -1., 3., + -1., 1., 3., + -1., 3., -3., + + 1., -3., -3., + 1., -1., 3., + 1., 1., 3., + 1., 3., -3., + + 3., -3., -3., + 3., -1., -3., + 3., 1., -3., + 3., 3., -3. ) + theNurb = gluNewNurbsRenderer() + GLU.gluBeginSurface(theNurb) + GLU.gluNurbsSurface( + theNurb, + 8, ctypes.byref(knots), 8, ctypes.byref(knots), + 4 * 3, 3, ctypes.byref( ctlpoints ), + 4, 4, GL_MAP2_VERTEX_3 + ) + GLU.gluEndSurface(theNurb) + if array: + def test_nurbs_raw_arrays( self ): + """Test nurbs rendering using raw API calls with arrays""" + from OpenGL.raw import GLU + import numpy + knots = numpy.array( ( 0,0,0,0,1,1,1,1 ), 'f' ) + ctlpoints = numpy.array( [[[-3., -3., -3.], + [-3., -1., -3.], + [-3., 1., -3.], + [-3., 3., -3.]], + + [[-1., -3., -3.], + [-1., -1., 3.], + [-1., 1., 3.], + [-1., 3., -3.]], + + [[ 1., -3., -3.], + [ 1., -1., 3.], + [ 1., 1., 3.], + [ 1., 3., -3.]], + + [[ 3., -3., -3.], + [ 3., -1., -3.], + [ 3., 1., -3.], + [ 3., 3., -3.]]], 'f' ) + theNurb = GLU.gluNewNurbsRenderer() + GLU.gluBeginSurface(theNurb) + GLU.gluNurbsSurface( + theNurb, + 8, knots, 8, knots, + 4 * 3, 3, ctlpoints , + 4, 4, GL_MAP2_VERTEX_3 + ) + GLU.gluEndSurface(theNurb) + def test_nurbs( self ): + """Test nurbs rendering""" + from OpenGL.raw import GLU + def buildControlPoints( ): + ctlpoints = zeros( (4,4,3), 'd') + for u in range( 4 ): + for v in range( 4): + ctlpoints[u][v][0] = 2.0*(u - 1.5) + ctlpoints[u][v][1] = 2.0*(v - 1.5); + if (u == 1 or u ==2) and (v == 1 or v == 2): + ctlpoints[u][v][2] = 3.0; + else: + ctlpoints[u][v][2] = -3.0; + return ctlpoints + controlPoints = buildControlPoints() + theNurb = GLU.gluNewNurbsRenderer()[0] + #theNurb = gluNewNurbsRenderer(); + gluNurbsProperty(theNurb, GLU_SAMPLING_TOLERANCE, 25.0); + gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL); + knots= array ([0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0], "d") + glPushMatrix(); + try: + glRotatef(330.0, 1.,0.,0.); + glScalef (0.5, 0.5, 0.5); + + gluBeginSurface(theNurb); + try: + gluNurbsSurface( + theNurb, + knots, knots, + controlPoints, + GL_MAP2_VERTEX_3 + ); + finally: + gluEndSurface(theNurb); + finally: + glPopMatrix(); + def test_errors( self ): + """Test for error catching/checking""" + try: + glClear( GL_INVALID_VALUE ) + except Exception, err: + assert err.err == 1281, ("""Expected invalid value (1281)""", err.err) + else: + raise RuntimeError( """No error on invalid glClear""" ) + try: + glColorPointer(GL_INVALID_VALUE,GL_BYTE,0,None) + except Exception, err: + assert err.err == 1281, ("""Expected invalid value (1281)""", err.err) + assert err.baseOperation, err.baseOperation + assert err.pyArgs == (GL_INVALID_VALUE, GL_BYTE, 0, None), err.pyArgs + assert err.cArgs == (GL_INVALID_VALUE, GL_BYTE, 0, None), err.cArgs + else: + raise RuntimeError( """No error on invalid glColorPointer""" ) + try: + glBitmap(-1,-1,0,0,0,0,"") + except Exception, err: + assert err.err in (1281,1282), ("""Expected invalid value (1281) or invalid operation (1282)""", err.err) + else: + raise RuntimeError( """No error on invalid glBitmap""" ) + def test_quadrics( self ): + """Test for rendering quadric objects""" + quad = gluNewQuadric() + glColor3f( 1,0, 0 ) + gluSphere( quad, 1.0, 16, 16 ) + def test_simple( self ): + """Test for simple vertex-based drawing""" + glDisable( GL_LIGHTING ) + glBegin( GL_TRIANGLES ) + try: + try: + glVertex3f( 0.,1.,0. ) + except Exception, err: + traceback.print_exc() + glVertex3fv( [-1,0,0] ) + glVertex3dv( [1,0,0] ) + try: + glVertex3dv( [1,0] ) + except ValueError, err: + #Got expected value error (good) + pass + else: + raise RuntimeError( + """Should have raised a value error on passing 2-element array to 3-element function!""", + ) + finally: + glEnd() + a = glGenTextures( 1 ) + assert a + b = glGenTextures( 2 ) + assert len(b) == 2 + def test_arbwindowpos( self ): + """Test the ARB window_pos extension will load if available""" + from OpenGL.GL.ARB.window_pos import glWindowPos2dARB + if glWindowPos2dARB: + glWindowPos2dARB( 0.0, 3.0 ) + def test_getstring( self ): + assert glGetString( GL_EXTENSIONS ) + def test_pointers( self ): + """Test that basic pointer functions work""" + vertex = constants.GLdouble * 3 + vArray = vertex * 2 + glVertexPointerd( [[2,3,4,5],[2,3,4,5]] ) + glVertexPointeri( ([2,3,4,5],[2,3,4,5]) ) + glVertexPointers( [[2,3,4,5],[2,3,4,5]] ) + glVertexPointerd( vArray( vertex(2,3,4),vertex(2,3,4) ) ) + myVector = vArray( vertex(2,3,4),vertex(2,3,4) ) + glVertexPointer( + 3, + GL_DOUBLE, + 0, + ctypes.cast( myVector, ctypes.POINTER(constants.GLdouble)) + ) + + repr(glVertexPointerb( [[2,3],[4,5]] )) + glVertexPointerf( [[2,3],[4,5]] ) + assert arrays.ArrayDatatype.dataPointer( None ) == None + glVertexPointerf( None ) + + glNormalPointerd( [[2,3,4],[2,3,4]] ) + glNormalPointerd( None ) + + glTexCoordPointerd( [[2,3,4],[2,3,4]] ) + glTexCoordPointerd( None ) + + glColorPointerd( [[2,3,4],[2,3,4]] ) + glColorPointerd( None ) + + glEdgeFlagPointerb( [0,1,0,0,1,0] ) + glEdgeFlagPointerb( None ) + + glIndexPointerd( [0,1,0,0,1,0] ) + glIndexPointerd( None ) + + glColor4fv( [0,0,0,1] ) + + # string data-types... + import struct + s = struct.pack( '>iiii', 2,3,4,5 ) * 2 + result = glVertexPointer( 4,GL_INT,0,s ) + TESS_TEST_SHAPE = [ + [191, 0], + [ 191, 1480], + [ 191, 1480], + [ 401, 1480], + [ 401, 1480], + [401, 856], + [401, 856], + [1105, 856], + [1105, 856], + [1105, 1480], + [1105, 1480], + [1315, 1480], + [1315, 1480], + [1315, 0], + [1315, 0], + [1105, 0], + [1105, 0], + [1105, 699], + [1105, 699], + [401, 699], + [401, 699], + [401, 0], + [401, 0], + [191, 0], + [191, 0], + [191, 0], + ] + def test_tess(self ): + """Test that tessellation works""" + glDisable( GL_LIGHTING ) + glColor3f( 1,1,1 ) + glNormal3f( 0,0,1 ) + def begin( *args ): + return glBegin( *args ) + def vertex( *args ): + return glVertex3dv( *args ) + def end( *args ): + return glEnd( *args ) + def combine( coords, vertex_data, weight): + return coords + tobj = gluNewTess() + gluTessCallback(tobj, GLU_TESS_BEGIN, begin); + gluTessCallback(tobj, GLU_TESS_VERTEX, vertex); + gluTessCallback(tobj, GLU_TESS_END, end); + gluTessCallback(tobj, GLU_TESS_COMBINE, combine); + gluTessBeginPolygon(tobj, None); + gluTessBeginContour(tobj); + for (x,y) in self.TESS_TEST_SHAPE: + vert = (x,y,0.0) + gluTessVertex(tobj, vert, vert); + gluTessEndContour(tobj); + gluTessEndPolygon(tobj); + def test_texture( self ): + """Test texture (requires OpenGLContext and PIL)""" + try: + from OpenGLContext import texture + import Image + from OpenGL.GLUT import glutSolidTeapot + except ImportError, err: + pass + else: + glEnable( GL_TEXTURE_2D ) + ourTexture = texture.Texture( + Image.open( 'yingyang.png' ) + ) + ourTexture() + + glEnable( GL_LIGHTING ) + glEnable( GL_LIGHT0 ) + glBegin( GL_TRIANGLES ) + try: + try: + glTexCoord2f( .5, 1 ) + glVertex3f( 0.,1.,0. ) + except Exception, err: + traceback.print_exc() + glTexCoord2f( 0, 0 ) + glVertex3fv( [-1,0,0] ) + glTexCoord2f( 1, 0 ) + glVertex3dv( [1,0,0] ) + try: + glVertex3dv( [1,0] ) + except ValueError, err: + #Got expected value error (good) + pass + else: + raise RuntimeError( + """Should have raised a value error on passing 2-element array to 3-element function!""", + ) + finally: + glEnd() + if array: + def test_numpyConversion( self ): + """Test that we can run a numpy conversion from double to float for glColorArray""" + import numpy + a = numpy.arange( 0,1.2, .1, 'd' ).reshape( (-1,3 )) + glEnableClientState(GL_VERTEX_ARRAY) + try: + glColorPointerf( a ) + glColorPointerd( a ) + finally: + glDisableClientState( GL_VERTEX_ARRAY ) + def test_constantPickle( self ): + """Test that our constants can be pickled/unpickled properly""" + import pickle, cPickle + for p in pickle,cPickle: + v = p.loads( p.dumps( GL_VERTEX_ARRAY )) + assert v == GL_VERTEX_ARRAY, (v,GL_VERTEX_ARRAY) + assert v.name == GL_VERTEX_ARRAY.name, v.name + + def test_copyNonContiguous( self ): + """Test that a non-contiguous (transposed) array gets applied as a copy""" + glMatrixMode(GL_MODELVIEW) + glPushMatrix( ) + try: + import numpy + transf = numpy.identity(4, dtype=numpy.float32) + # some arbitrary transformation... + transf[0,3] = 2.5 + transf[2,3] = -80 + + # what do we get with the un-transposed version... + glMatrixMode(GL_MODELVIEW) + glLoadIdentity() + glMultMatrixf(transf) + untransposed = glGetFloatv(GL_MODELVIEW_MATRIX) + # now transposed... + + # with a copy it works... + t2 = transf.transpose().copy() + # This doesn't work: + glLoadIdentity() + glMultMatrixf(t2) + # This does work: + #glMultMatrixf(transf.transpose().copy()) + transposed = glGetFloatv(GL_MODELVIEW_MATRIX) + + assert not numpy.allclose( transposed, untransposed ), (transposed, untransposed) + + t2 = transf.transpose() + # This doesn't work: + glLoadIdentity() + glMultMatrixf(t2) + # This does work: + #glMultMatrixf(transf.transpose().copy()) + transposed = glGetFloatv(GL_MODELVIEW_MATRIX) + + assert not numpy.allclose( transposed, untransposed ), (transposed, untransposed) + finally: + glMatrixMode(GL_MODELVIEW) + glPopMatrix() + def test_nullTexture( self ): + """Test that we can create null textures""" + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 512, 512, 0, GL_RGB, GL_INT, None) + + def test_nonFloatColor( self ): + """Test that we handle non-floating-point colour inputs""" + for notFloat,shouldWork in ((0,True), (object(),False), (object,False)): + try: + glColor4f( 0,1,1,notFloat ) + except Exception, err: + if shouldWork: + raise + else: + if not shouldWork: + raise RuntimeError( """Expected failure for non-float value %s, succeeded"""%( notFloat, )) + someData = [ (0,255,0)] + def test_glAreTexturesResident( self ): + """Test that PyOpenGL api for glAreTexturesResident is working + + Note: not currently working on AMD64 Linux for some reason + """ + import numpy + textures = glGenTextures(2) + residents = [] + for texture in textures: + glBindTexture( GL_TEXTURE_2D,int(texture) ) + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 1, 1, 0, GL_RGB, GL_INT, self.someData) + residents.append( + glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_RESIDENT ) + ) + error.glCheckError(None) + result = glAreTexturesResident( textures) + assert len(result) == 2 + for (tex,expected,found) in zip( textures, residents, result ): + if expected != found: + print 'Warning: texture %s residence expected %s got %s'%( tex, expected, found ) + + if OpenGL.ALLOW_NUMPY_SCALARS: + def test_passBackResults( self ): + """Test ALLOW_NUMPY_SCALARS to allow numpy scalars to be passed in""" + textures = glGenTextures(2) + glBindTexture( GL_TEXTURE_2D, textures[0] ) + if array: + def test_arrayTranspose( self ): + import numpy + m = glGetFloatv( GL_MODELVIEW_MATRIX ) + glMatrixMode( GL_MODELVIEW ) + glLoadIdentity() + + t = eye(4) + t[3,0] = 20.0 + + # the following glMultMatrixf call ignored this transpose + t = t.T + + glMultMatrixf( t ) + + m = glGetFloatv( GL_MODELVIEW_MATRIX ) + assert numpy.allclose( m[-1], [0,0,0,1] ), m + def test_glreadpixelsf( self ): + """Issue #1979002 crash due to mis-calculation of resulting array size""" + width,height = self.width, self.height + readback_image1 = glReadPixelsub(0,0,width,height,GL_RGB) + readback_image2 = glReadPixelsf(0,0,width,height,GL_RGB) + def test_glreadpixels_is_string( self ): + """Issue #1959860 incompatable change to returning arrays reversed""" + width,height = self.width, self.height + readback_image1 = glReadPixels(0,0,width,height,GL_RGB, GL_UNSIGNED_BYTE) + assert isinstance( readback_image1, str ), type( readback_image1 ) + readback_image1 = glReadPixels(0,0,width,height,GL_RGB, GL_BYTE) + assert not isinstance( readback_image1, str ), type(readback_image2) + + if array: + def test_mmap_data( self ): + """Test that we can use mmap data array + + If we had a reasonable lib that dumped raw image data to a shared-mem file + we might be able to use this for movie display :) + """ + fh = open( 'mmap-test-data.dat', 'w+' ) + fh.write( '\000'*(32*32*3+1)) + fh.flush() + fh.close() + # using numpy.memmap here... + data = memmap( 'mmap-test-data.dat' ) + for i in range( 0,255,2 ): + glDrawPixels( 32,32, GL_RGB, GL_UNSIGNED_BYTE, data, ) + glFlush() + pygame.display.flip() + data[::2] = i + time.sleep( 0.001 ) + + if array: + def test_vbo( self ): + """Test utility vbo wrapper""" + import numpy + from OpenGL.arrays import vbo + assert vbo.get_implementation() + dt = arraydatatype.GLdoubleArray + array = numpy.array( [ + [0,0,0], + [0,1,0], + [1,.5,0], + [1,0,0], + [1.5,.5,0], + [1.5,0,0], + ], dtype='d') + indices = numpy.array( + range(len(array)), + 'i', + ) + d = vbo.VBO(array) + glDisable( GL_CULL_FACE ) + glNormal3f( 0,0,1 ) + glColor3f( 1,1,1 ) + glEnableClientState(GL_VERTEX_ARRAY) + try: + for x in range( 1, 255, 10 ): + d.bind() + try: + glVertexPointerd( d ) + glDrawElements( GL_LINE_LOOP, len(indices), GL_UNSIGNED_INT, indices ) + finally: + d.unbind() + lastPoint = numpy.array( [[1.5,(1/255.) * float(x),0]] ) + d[-2:-1] = lastPoint + glFlush() + pygame.display.flip() + glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT ) + time.sleep( 0.001 ) + finally: + glDisableClientState( GL_VERTEX_ARRAY ) + def test_fbo( self ): + """Test that we support framebuffer objects + + http://www.gamedev.net/reference/articles/article2331.asp + """ + if not glGenFramebuffersEXT: + return False + width = height = 128 + fbo = glGenFramebuffersEXT(1) + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo) + depthbuffer = glGenRenderbuffersEXT(1 ) + glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, depthbuffer) + glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT24, width, height) + glFramebufferRenderbufferEXT( + GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, + depthbuffer + ) + img = glGenTextures(1) + glBindTexture(GL_TEXTURE_2D, img) + # NOTE: these lines are *key*, without them you'll likely get an unsupported format error, + # ie. GL_FRAMEBUFFER_UNSUPPORTED_EXT + glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST); + glTexImage2D( + GL_TEXTURE_2D, 0, GL_RGB8, + width, height, 0, GL_RGB, + GL_INT, + None # no data transferred + ) + glFramebufferTexture2DEXT( + GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, + img, + 0 # mipmap level, normally 0 + ) + status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) + assert status == GL_FRAMEBUFFER_COMPLETE_EXT, status + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo) + glPushAttrib(GL_VIEWPORT_BIT) # viewport is shared with the main context + try: + glViewport(0,0,width, height) + + # rendering to the texture here... + glColor3f( 1,0,0 ) + glNormal3f( 0,0,1 ) + glBegin( GL_QUADS ) + for v in [[0,0,0],[0,1,0],[1,1,0],[1,0,0]]: + glColor3fv( v ) + glVertex3dv( v ) + glEnd() + finally: + glPopAttrib(); # restore viewport + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0) # unbind + + glBindTexture(GL_TEXTURE_2D, img) + + glEnable( GL_TEXTURE_2D ) + + # rendering with the texture here... + glColor3f( 1,1,1 ) + glNormal3f( 0,0,1 ) + glDisable( GL_LIGHTING ) + glBegin( GL_QUADS ) + try: + for v in [[0,0,0],[0,1,0],[1,1,0],[1,0,0]]: + glTexCoord2fv( v[:2] ) + glVertex3dv( v ) + finally: + glEnd() + def test_gl_1_2_support( self ): + if glBlendColor: + glBlendColor( .3, .4, 1.0, .3 ) + print 'OpenGL 1.2 support' + def test_glmultidraw( self ): + """Test that glMultiDrawElements works, uses glDrawElements""" + if glMultiDrawElements: + points = [ + (i,0,0) for i in range( 8 ) + ] + [ + (i,1,0) for i in range( 8 ) + ] + indices = [ + [0,8,9,1, 2,10,11,3,], + [4,12,13,5,6,14,15,7], + ] + counts = [ len(x) for x in indices ] + glEnableClientState( GL_VERTEX_ARRAY ) + glDisableClientState( GL_COLOR_ARRAY ) + glDisableClientState( GL_NORMAL_ARRAY ) + try: + glVertexPointerd( points ) + glDisable( GL_LIGHTING ) + try: + glMultiDrawElements(GL_QUAD_STRIP, counts, GL_UNSIGNED_BYTE, indices, 2) + finally: + glEnable( GL_LIGHTING ) + finally: + glDisableClientState( GL_VERTEX_ARRAY ) + else: + print 'No multi_draw_arrays support' + def test_glDrawBuffers_list( self ): + """Test that glDrawBuffers with list argument doesn't crash""" + args = [ + GL_COLOR_ATTACHMENT0_EXT, + GL_COLOR_ATTACHMENT1_EXT, + ] + try: + glDrawBuffers( 2, args ) + except GLError, err: + assert err.err == GL_INVALID_OPERATION, err + def test_glDrawBuffers_list_valid( self ): + """Test that glDrawBuffers with list argument where value is set""" + fbo = glGenFramebuffersEXT(1) + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo) + try: + img1,img2 = glGenTextures(2) + for img in img1,img2: + glBindTexture( GL_TEXTURE_2D, img ) + glTexImage2D( + GL_TEXTURE_2D, 0, GL_RGB8, + 300, 300, 0, GL_RGB, + GL_INT, + None # no data transferred + ) + + + glFramebufferTexture2DEXT( + GL_FRAMEBUFFER_EXT, + GL_COLOR_ATTACHMENT0_EXT, + GL_TEXTURE_2D, img1, 0 + ) + glFramebufferTexture2DEXT( + GL_FRAMEBUFFER_EXT, + GL_COLOR_ATTACHMENT1_EXT, + GL_TEXTURE_2D, img2, 0 + ) + drawingBuffers = [ + GL_COLOR_ATTACHMENT0_EXT, + GL_COLOR_ATTACHMENT1_EXT, + ] + glDrawBuffers(2, drawingBuffers ) + finally: + glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, 0 ) + + def test_enable_histogram( self ): + if glInitImagingARB(): + glHistogram(GL_HISTOGRAM, 256, GL_LUMINANCE, GL_FALSE) + glEnable( GL_HISTOGRAM ) + glDisable( GL_HISTOGRAM ) + else: + print 'No ARB imaging extension' + +if __name__ == "__main__": + import logging + logging.basicConfig() + unittest.main() + pygame.display.quit() + pygame.quit() + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/test_wrapper_accel.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/test_wrapper_accel.py --- pyopengl-3.0.0~b6/tests/test_wrapper_accel.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/test_wrapper_accel.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,56 @@ +#! /usr/bin/env python +"""Tests for the wrapper accelerator...""" +import unittest +from OpenGL import wrapper +from OpenGL_accelerate.wrapper import Wrapper +from OpenGL.arrays import arraydatatype + +def reflect( *args ): + return args + +class TestWrapper( unittest.TestCase ): + def test_simple( self ): + w = Wrapper( reflect ) + result = w( 1,2 ) + assert result == (1,2), result + def test_w_cls( self ): + class Reflect( object ): + def __call__( self, *args ): + return args + w = Wrapper( Reflect() ) + result = w( 1,2 ) + assert result == (1,2), result + def test_with_pyArgs( self ): + def calc_py_args( args ): + return (1,2) + w = Wrapper( reflect, calculate_pyArgs=calc_py_args ) + result = w( ) + assert result == (1,2), result + def test_with_cArgs( self ): + def calc_c_args( pyargs ): + return (1,2) + w = Wrapper( reflect, calculate_cArgs=calc_c_args ) + result = w( ) + assert result == (1,2), result + def test_with_cArguments( self ): + def calc_c_args( pyargs ): + return (1,2) + w = Wrapper( reflect, calculate_cArguments=calc_c_args ) + result = w( ) + assert result == (1,2), result + +class TestRegistry( unittest.TestCase ): + def test_int( self ): + import numpy,ctypes + from OpenGL.arrays import numbers,numpymodule,ctypesparameters + for value,expected in [ + (1,numbers.NumberHandler), + (numpy.arange(0,1), numpymodule.NumpyHandler), + (ctypes.c_int(0), numbers.NumberHandler), + ]: + handler = arraydatatype.ArrayDatatype.getHandler( value ) + assert isinstance( handler, expected ), (value,handler,expected) + +if __name__ == "__main__": + unittest.main() + diff -Nru /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/timerleak.py /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/timerleak.py --- pyopengl-3.0.0~b6/tests/timerleak.py 1970-01-01 01:00:00.000000000 +0100 +++ pyopengl-3.0.0/tests/timerleak.py 2008-12-08 03:25:35.000000000 +0000 @@ -0,0 +1,21 @@ +#! /usr/bin/env python +from OpenGL.GLUT import * + +delay = 1 +count = 0 + +def timerCallback(value): + global count + count += 1 + if count % 2000 == 0: print count + glutTimerFunc( delay, timerCallback, value+1 ) + +if __name__ == "__main__": + glutInit( sys.argv ) + glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH ) + glutInitWindowSize( 100, 100 ) + glutCreateWindow( "testtimer" ) + + glutTimerFunc( delay, timerCallback, 0 ) + + glutMainLoop() Binary files /tmp/VpSWb7cvau/pyopengl-3.0.0~b6/tests/yingyang.png and /tmp/6jwPQaot5C/pyopengl-3.0.0/tests/yingyang.png differ