/usr/share/pyshared/glitch/limbo/blend.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 | "Source/destination blending using C{glBlendFunc}."
import OpenGL.GL as gl
import glitch
class Blend(glitch.Node):
def __init__(
self, src=gl.GL_SRC_ALPHA, dst=gl.GL_ONE_MINUS_SRC_ALPHA, **kw):
glitch.Node.__init__(self, **kw)
self.src = src
self.dst = dst
def render(self, ctx):
gl.glPushAttrib(gl.GL_COLOR_BUFFER_BIT | gl.GL_ENABLE_BIT)
gl.glBlendFunc(self.src, self.dst)
gl.glEnable(gl.GL_BLEND)
glitch.Node.render(self, ctx)
gl.glPopAttrib()
|