Skip to content

Commit 5f6d8bc

Browse files
author
Jon Wright
committed
remove GLUT for missing install
1 parent 5721c91 commit 5f6d8bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shader_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def rot(a,b,c):
112112
class ShaderFrame(pyopengltk.OpenGLFrame):
113113

114114
def initgl(self):
115-
GLUT.glutInit(sys.argv)
115+
# GLUT.glutInit(sys.argv)
116116
GL.glClearColor(0.15, 0.15, 0.15, 1.0)
117117
GL.glEnable(GL.GL_DEPTH_TEST)
118118
GL.glEnable(GL.GL_PROGRAM_POINT_SIZE)
@@ -141,8 +141,8 @@ def redraw(self):
141141
if self.nframes > 1:
142142
t = time.time()-self.start
143143
fps = "fps: %5.2f frames: %d"%(self.nframes / t, self.nframes)
144-
for c in fps:
145-
GLUT.glutBitmapCharacter(GLUT.GLUT_BITMAP_HELVETICA_18, ord(c));
144+
# for c in fps:
145+
# GLUT.glutBitmapCharacter(GLUT.GLUT_BITMAP_HELVETICA_18, ord(c));
146146
self.nframes += 1
147147

148148

0 commit comments

Comments
 (0)