File: check_glutinit_single.py

package info (click to toggle)
pyopengl 3.1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,732 kB
  • sloc: python: 106,016; makefile: 8
file content (9 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
glutInit([''])
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB)
try:
    if fgDeinitialize: fgDeinitialize(False)
except NameError as err:
    pass # Older PyOpenGL, you may see a seg-fault here...