Line draws GL lines with endpoints at block centers
This commit is contained in:
parent
c285151bcf
commit
d330a22453
@ -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
|
||||
|
Reference in New Issue
Block a user