Revision: 13772
Updated Code
at May 6, 2009 03:32 by iamok
Updated Code
from pyglet.gl import * # Direct OpenGL commands to this window. window = pyglet.window.Window() @window.event def on_draw(): glClear(GL_COLOR_BUFFER_BIT) glLoadIdentity() glBegin(GL_TRIANGLES) glVertex2f(0, 0) glVertex2f(window.width, 0) glVertex2f(window.width, window.height) glEnd() pyglet.app.run()
Revision: 13771
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 6, 2009 03:31 by iamok
Initial Code
from pyglet.gl import * # Direct OpenGL commands to this window. window = pyglet.window.Window() @window.event def on_draw(): glClear(GL_COLOR_BUFFER_BIT) glLoadIdentity() glBegin(GL_TRIANGLES) glVertex2f(0, 0) glVertex2f(window.width, 0) glVertex2f(window.width, window.height) glEnd() pyglet.app.run()
Initial URL
Initial Description
Initial Title
simple pyglet window for opengl
Initial Tags
Initial Language
Python