File: __init__.py

package info (click to toggle)
pyopengl 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,184 kB
  • ctags: 21,473
  • sloc: python: 80,468; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Abstraction point for handling of data-pointers in OpenGL

The purpose of this package is to allow for the registration and dispatch
of handlers for different data-types in such a way that you can add new
data-types to the set of types which PyOpenGL will handle as arguments
to functions requiring typed pointers.

Possible data types:
    Numpy arrays
    Numarray arrays
    PyGame surfaces
    PyMedia buffers
    Python buffer-objects
    Memory-mapped files
    PIL images
"""
import ctypes
import OpenGL
from OpenGL.arrays.arraydatatype import *
from OpenGL.arrays import formathandler
from OpenGL.arrays.arrayhelpers import *