/usr/share/pyshared/glitch/glut/camera.py is in python-glitch 0.6-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  | import OpenGL.GLUT as glut
glut.glutInit()
from glitch.camera import Camera
class GLUTCamera(Camera):
    def __init__(self, title="glitch", fullscreen=False, **kw):
        Camera.__init__(self, **kw)
        self.window = glut.glutCreateWindow(title)
        self.width = 0
        self.height = 0
        if fullscreen:
            glut.glutFullScreen()
        glut.glutDisplayFunc(lambda: self.render(None))
        glut.glutReshapeFunc(self._reshape)
    def _reshape(self, width, height):
        self.width = width
        self.height = height
        self.refresh()
    def render(self, parent_ctx):
        self.context['w'] = self.width
        self.context['h'] = self.height
        Camera.render(self, parent_ctx)
        glut.glutSwapBuffers()
    def refresh(self):
        glut.glutSetWindow(self.window)
        glut.glutPostRedisplay()
    def run(self):
        glut.glutMainLoop()
 |