Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Python by pietro ( 14 years ago )
@window.event
def on_draw():
     global objX, objY, objZ, rObjX, rObjY, rObjZ, camX, camY, camZ
     window.clear()
     glClear(GL_COLOR_BUFFER_BIT)
     glLoadIdentity()
     gluLookAt(-camX, camY, camZ, 0, 0, 0, 0, 1, 0)
     glPushMatrix()
     
     glLoadIdentity()
     glTranslatef(objX, objY, objZ)
     glRotatef(rObjX, 1, 0, 0)
     glRotatef(rObjY, 0, 1, 0)
     glRotatef(rObjZ, 0, 0, 1)
     chessboard(9, 9, 50)
     glPopMatrix()

 

Revise this Paste

Your Name: Code Language: