MCPcopy Create free account
hub / github.com/csaez/mscreen / draw

Method draw

mscreen.py:319–336  ·  view source on GitHub ↗
(self, view, renderer)

Source from the content-addressed store, hash-verified

317 self._drawPoints.append(p)
318
319 def draw(self, view, renderer):
320 super(CurvePrim, self).draw(view, renderer)
321
322 view.beginGL()
323 glFT = renderer.glFunctionTable()
324 glFT.glPushAttrib(omr.MGL_LINE_BIT)
325 glFT.glLineWidth(self.width)
326 glFT.glBegin(omr.MGL_LINE_STRIP)
327
328 r, g, b = [float(x) for x in self.color]
329 glFT.glColor3f(r, g, b)
330
331 for point in self._drawPoints:
332 glFT.glVertex3f(point.x, point.y, point.z)
333
334 glFT.glEnd()
335 glFT.glPopAttrib()
336 view.endGL()
337
338
339# === Vector Primitive ===

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected