File: wire_dodecahedron.py

package info (click to toggle)
pyopengl 2.0.1.09.dfsg.1-0.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,068 kB
  • ctags: 9,218
  • sloc: pascal: 66,059; xml: 28,092; python: 21,715; ansic: 20,706; tcl: 668; makefile: 247
file content (18 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import items
import items.GLUT.geometry


class item(items.GLUT.geometry.wire_item):

	def on_reshape(self, width, height):
		items.item.on_reshape(self, width, height)		
		glTranslatef(0.0, 0.0, -6.0)


	def on_display(self):
		items.GLUT.geometry.wire_item.on_display(self)
		glutWireDodecahedron()