Skip to content

Commit 09bdf24

Browse files
authored
Merge pull request #20 from jeremyfix/patch-1
Clear color in display
2 parents 0e905e0 + 8d54444 commit 09bdf24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03-quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ allow to create a GL context and we cannot use it. Note there also exists
196196
dedicated toolkits such as GLFW_ or GLUT_ and the advantage of GLUT is that
197197
it's already installed alongside OpenGL. Even if it is now deprecated, we'll
198198
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.
201200

202201
.. code:: python
203202
@@ -206,6 +205,7 @@ package. Here is a minimal setup that should open a window with garbage on it
206205
import OpenGL.GLUT as glut
207206
208207
def display():
208+
gl.glClear(gl.GL_COLOR_BUFFER_BIT)
209209
glut.glutSwapBuffers()
210210
211211
def reshape(width,height):

0 commit comments

Comments
 (0)