MCPcopy Create free account
hub / github.com/Image-Py/imagepy / draw

Method draw

imagepy/core/myvi/manager.py:119–126  ·  view source on GitHub ↗
(self, mvp, light, bright, scatter)

Source from the content-addressed store, hash-verified

117 if not color is None: self.color = color
118
119 def draw(self, mvp, light, bright, scatter):
120 if not self.visible: return
121 self.ctx.line_width = 2
122 self.prog['mv'].write(mvp[0].astype(np.float32).tobytes())
123 self.prog['proj'].write(mvp[1].astype(np.float32).tobytes())
124 self.prog['f_color'].write(np.array(self.color).astype(np.float32).tobytes())
125 self.prog['h'].value = self.h
126 self.vao.render(moderngl.LINES)
127
128class Manager:
129 def __init__(self):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected