MCPcopy Create free account
hub / github.com/chenbq/CAVDN / render1

Method render1

env/multiagent_com/rendering.py:286–290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 self.linewidth = LineWidth(1)
285 self.add_attr(self.linewidth)
286 def render1(self):
287 glBegin(GL_LINE_LOOP if self.close else GL_LINE_STRIP)
288 for p in self.v:
289 glVertex3f(p[0], p[1],0) # draw each vertex
290 glEnd()
291 def set_linewidth(self, x):
292 self.linewidth.stroke = x
293

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected