Permalink
Browse files

Impove lazer beam

Signed-off-by: Paul Brook <paul@codesourcery.com>
  • Loading branch information...
1 parent 98bcfbd commit 799761dc1b1f6046bd5dff7acd06467a5f80ccf4 Paul Brook committed Nov 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 hackix.py
View
@@ -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=[]

0 comments on commit 799761d

Please sign in to comment.