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

Method draw

imagepy/core/myvi/manager.py:219–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

217 return self.objs[key]
218
219 def draw(self):
220 self.ctx.clear(*self.background)
221 self.ctx.enable(moderngl.DEPTH_TEST)
222 #self.ctx.enable(ModernGL.CULL_FACE)
223 self.ctx.enable(moderngl.BLEND)
224 for i in self.objs.values(): i.draw(self.mvp, self.light, self.bright, self.scatter)
225
226 def count_box(self):
227 minb = np.array([i.box[0] for i in self.objs.values() if not i.box is None]).min(axis=0)

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected