Skip to content

Commit

Permalink
Improve pyopengl example
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Nov 15, 2019
1 parent 3a6b52c commit a4d50d7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/with_pyopengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from OpenGL.GL import *


class BasicWindowConfig(moderngl_window.WindowConfig):
"""Minimal WindowConfig example"""
class PyOpenGL(moderngl_window.WindowConfig):
gl_version = (3, 3)
title = "Basic Window Config"
title = "PyOpenGL"

def __init__(self, **kwargs):
super().__init__(**kwargs)
Expand All @@ -22,4 +21,4 @@ def render(self, time, frametime):


if __name__ == '__main__':
moderngl_window.run_window_config(BasicWindowConfig)
moderngl_window.run_window_config(PyOpenGL)

0 comments on commit a4d50d7

Please sign in to comment.