The Grid class can now be used in Vectors.py to draw a grid on the screen:
from Grid import *
from Object import *
cube.add_component(Cube(GL_POLYGON,
“Chapter_Four/images/wall.tif”))
objects_3d.append(cube)
grid = Object(“Grid”)
grid.add_component(Transform((0, 0, -5)))
grid.add_component(Grid(0.5, 8, (0, 0, 255)))
objects_3d.append(grid)
clock = pygame.time.Clock()