File: image.py

package info (click to toggle)
glitch 0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 488 kB
  • ctags: 649
  • sloc: python: 3,432; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10

import sys

import glitch, glitch.PIL, glitch.glut

if __name__ == '__main__':
    texture = glitch.PIL.ImageTexture.from_file(sys.argv[1])
    camera = glitch.glut.GLUTCamera(eye=[0.5, 0.5, 1], ref=[0.5, 0.5, 0], children=[
        glitch.ApplyTexture(texture, children=[glitch.TexturedRectangle()])])
    camera.run()