Taylor Bockman
5 years ago
3 changed files with 40 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||||||
|
""" |
||||||
|
This module defines functions that need to be overwritten |
||||||
|
in order for OpenGL to work with the main window. This |
||||||
|
module is named the same as the actual widget in order |
||||||
|
to make namespacing consistent. |
||||||
|
|
||||||
|
To be clear, the actual widget is defined in the UI |
||||||
|
generated code - `clusterview_ui.py`. The functions |
||||||
|
here are imported as overrides to the OpenGL functions of |
||||||
|
that widget. |
||||||
|
""" |
||||||
|
|
||||||
|
from OpenGL.GL import glClearColor, glEnable |
||||||
|
|
||||||
|
def initialize_gl(): |
||||||
|
""" |
||||||
|
Initializes the OpenGL context on the Window. |
||||||
|
""" |
||||||
|
|
||||||
|
# Set white background |
||||||
|
glClearColor(255, 255, 255, 0) |
Loading…
Reference in new issue