pxmlw6n2f/Gazebo_Distributed_TCP/tools/gl-test.py

22 lines
445 B
Python
Raw Normal View History

2019-03-28 10:57:49 +08:00
#!/usr/bin/env python
from OpenGL.GLUT import *
import sys
glutInit(sys.argv)
# 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")