Skip to content

Commit

Permalink
Use other glut code that does not show a blocking window
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Jan 25, 2013
1 parent 348510c commit bbbc173
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions tools/gl-test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
#!/usr/bin/python

#!/usr/bin/env python
from OpenGL.GLUT import *
import sys

glutInit(sys.argv)
glutCreateWindow("dri")
glutMainLoop()

# Select type of Display mode:
# Double buffer
# RGBA color
# Depth buffer
# Alpha blending
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH | GLUT_ALPHA)

# get a 640 x 480 window
glutInitWindowSize(640, 480)

# the window starts at the upper left corner of the screen
glutInitWindowPosition(0, 0)

# Open a window
window = glutCreateWindow("Testing DRI")

0 comments on commit bbbc173

Please sign in to comment.