Unfortunately, that doesn't seem to solve it...
the only thing that makes it right is changing the way it draws the lines.
if I use a for loop on the y axis drawing horizontal lines, like this:
for y in range(0, window.height):
> pyg.graphics.draw(2, pyg.gl.GL_LINES, ('v2i', (0, y, window.width,
> y)), ('c3f', (1, 1, 1)*2))
the screen is drawn correctly.
Il giorno martedì 3 ottobre 2017 04:10:09 UTC+2, Benjamin Moran ha scritto:
>
> Hi Mattia,
>
> Welcome!
> Looks like you just need a call to window.clear() at the start of your
> on_draw event handler.
>
> Otherwise you end up seeing random GPU memory.
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.