Line draws GL lines with endpoints at block centers

This commit is contained in:
David Vierra 2015-05-13 04:52:40 -10:00
parent c285151bcf
commit d330a22453

View File

@ -253,6 +253,7 @@ class Line(Symbol):
def renderSceneNodes(self):
vertexArray = VertexArrayBuffer(2, GL.GL_LINES, False, False)
vertexArray.vertex[:] = [self.p1, self.p2]
vertexArray.vertex[:] += 0.5 # draw using box centers
vertexArray.rgba[:] = 255, 64, 64, 128
node = VertexNode([vertexArray]) # xxx LineNode