/usr/share/pyshared/glitch/limbo/spread.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 | import OpenGL.GL as gl
import glitch
class Spread(glitch.Node):
def __init__(self, x=0, y=0, z=0, **kw):
glitch.Node.__init__(self, **kw)
self.x = x
self.y = y
self.z = z
def render(self, ctx):
gl.glMatrixMode(gl.GL_MODELVIEW)
gl.glPushMatrix()
for child in self.children:
child.render(ctx)
gl.glTranslate(self.x, self.y, self.z)
gl.glPopMatrix()
|