File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,7 @@ allow to create a GL context and we cannot use it. Note there also exists
196
196
dedicated toolkits such as GLFW _ or GLUT _ and the advantage of GLUT is that
197
197
it's already installed alongside OpenGL. Even if it is now deprecated, we'll
198
198
use GLUT since it's a very lightweight toolkit and does not require any extra
199
- package. Here is a minimal setup that should open a window with garbage on it
200
- (since we do not even clear the window):
199
+ package. Here is a minimal setup that should open a window with a black background.
201
200
202
201
.. code :: python
203
202
@@ -206,6 +205,7 @@ package. Here is a minimal setup that should open a window with garbage on it
206
205
import OpenGL.GLUT as glut
207
206
208
207
def display ():
208
+ gl.glClear(gl.GL_COLOR_BUFFER_BIT )
209
209
glut.glutSwapBuffers()
210
210
211
211
def reshape (width ,height ):
You can’t perform that action at this time.
0 commit comments