Skip to content

Commit

Permalink
Impove lazer beam
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Brook <paul@codesourcery.com>
  • Loading branch information
Paul Brook committed Nov 7, 2010
1 parent 98bcfbd commit 799761d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hackix.py
Expand Up @@ -156,11 +156,11 @@ def draw(self, transform, stix_pos):
glDrawElementsui(GL_TRIANGLES, [0,2,4]);

glPopMatrix()
lazer_vertex = [(0, 100, -1), (0, -10, -1), (0.01, 10, -10), (0.01, -10, -10)]
lazer_vertex = [(-0.01, 100, -10), (-0.01, -100, -10), (0, 100, -1), (0, -10, -1), (0.01, 10, -10), (0.01, -10, -10)]
lazer_color=[(1.0, 0.3, 0.3)]*4
glVertexPointerf(lazer_vertex)
glColorPointerf(lazer_color)
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4)
glDrawArrays(GL_TRIANGLE_STRIP, 0, 6)

def create_cube():
points=[]
Expand Down

0 comments on commit 799761d

Please sign in to comment.