fixed numerical bugs

This commit is contained in:
zzzzrrr
2009-11-20 12:13:19 -05:00
parent 93e9955a66
commit 2e0041456a
5 changed files with 105 additions and 85 deletions

View File

@@ -50,6 +50,14 @@ def draw_polygon(verts, color):
for v in verts:
glVertex2f(v[0], v[1])
glEnd()
def draw_line(p1, p2, color):
r, g, b = color
glColor3f(r, g, b)
glBegin(GL_LINES)
glVertex2f(p1[0], p1[1])
glVertex2f(p2[0], p2[1])
glEnd()
##
## Game engine / main loop / UI