/usr/lib/python2.7/dist-packages/VisionEgg/GL.py is in python-visionegg 1.2.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | # The Vision Egg: GL
#
# Copyright (C) 2001-2003 Andrew Straw.
# Author: Andrew Straw <astraw@users.sourceforge.net>
# URL: <http://www.visionegg.org/>
#
# Distributed under the terms of the GNU Lesser General Public License
# (LGPL). See LICENSE.TXT that came with this file.
#
# $Id$
"""
Vision Egg GL module -- lump all OpenGL names in one namespace.
"""
from OpenGL.GL import * # get everything from OpenGL.GL
import OpenGL
import numpy
if OpenGL.__version__.startswith('3.0.0b'):
raise RuntimeError('PyOpenGL 3beta has known incompatibilities '
'with the Vision Egg. Please upgrade to PyOpenGL 3.')
__version__ = OpenGL.__version__
# tell py2exe we want these modules
try:
import OpenGL.GL.GL__init___
except:
pass
try:
import OpenGL.GL.ARB.multitexture
except:
pass
try:
import OpenGL.GL.EXT.bgra
except:
pass
try:
import SGIS.texture_edge_clamp
except:
pass
# why doesn't PyOpenGL define this?!
try:
GL_UNSIGNED_INT_8_8_8_8_REV
except NameError:
GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367
if OpenGL.__version__[0] == '3':
if (OpenGL.__version__.startswith('3.0.0a')) or (OpenGL.__version__ == '3.0.0b1'):
# A bug in early PyOpenGL 3.x had problems with some arrays
_orig_glLoadMatrixf = glLoadMatrixf
def glLoadMatrixf(M):
M = numpy.array([ Mi for Mi in M ])
return _orig_glLoadMatrixf(M)
|