void World::DrawBox(Box& box) { Vector3 vertices[8]; box.ComputeVertices(vertices); glBegin(GL_LINE_LOOP); DrawVertex(vertices[0]); DrawVertex(vertices[1]); DrawVertex(vertices[2]); DrawVertex(vertices[3]); glEnd(); glBegin(GL_LINE_LOOP); DrawVertex(vertices[0]); DrawVertex(vertices[4]); DrawVertex(vertices[5]); DrawVertex(vertices[1]); glEnd(); glBegin(GL_LINE_LOOP); DrawVertex(vertices[7]); DrawVertex(vertices[6]); DrawVertex(vertices[5]); DrawVertex(vertices[4]); glEnd(); glBegin(GL_LINE_LOOP); DrawVertex(vertices[3]); DrawVertex(vertices[2]); DrawVertex(vertices[6]); DrawVertex(vertices[7]); glEnd(); glBegin(GL_LINE_LOOP); DrawVertex(vertices[1]); DrawVertex(vertices[5]); DrawVertex(vertices[6]); DrawVertex(vertices[2]); glEnd(); glBegin(GL_LINE_LOOP); DrawVertex(vertices[0]); DrawVertex(vertices[3]); DrawVertex(vertices[7]); DrawVertex(vertices[4]); glEnd(); }