Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- from pygame.locals import *
- from OpenGL.GL import *
- from OpenGL.GLU import *
- verticies = (
- (1, -1, -1),
- (1, 1, -1),
- (-1, 1, -1),
- (-1, -1, -1),
- (1, -1, 1),
- (1, 1, 1),
- (-1, -1, 1),
- (-1, 1, 1),
- )
- edge = (
- (0,1),
- (0,3),
- (0,4),
- (2,1),
- (2,3),
- (2,7),
- (6,3),
- (6,4),
- (6,7),
- (5,1),
- (5,4),
- (5,7),
- )
- def Draw_Cube():
- glBegin(GL_LINES)
- for edge in edges:
- for vertex in edge:
- glVertex3fv(verticies[vert])
- glEnd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement