May 2017
Beginner to intermediate
444 pages
11h 31m
English
First, we import several packages from OpenGL. In the main() Python function, we initialize the GL Utility (glut) library. Then we choose a single buffer (as opposed to double buffering) and also select the Red, Green, Blue, Alpha (RGBA) color mode.
We then create a window via GLUT. No need for tkinter, wxPython or PyGLet. We can do this directly via OpenGL GLUT functions.
After this, we create and define a display function, RenderScene(). This function gets called when we start the glut windows event loop.
In the SetupRC() function, we define a color to be used for ...
Read now
Unlock full access