File: check_glutinit_simplest.py

package info (click to toggle)
pyopengl 3.1.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,668 kB
  • sloc: python: 108,024; makefile: 4
file content (7 lines) | stat: -rw-r--r-- 201 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
from OpenGL.GLUT import *
glutInit()
glutInitDisplayMode(GLUT_RGB)
try:
    if fgDeinitialize: fgDeinitialize(False)
except NameError as err:
    pass # Older PyOpenGL, you may see a seg-fault here...