MCPcopy Create free account
hub / github.com/VCVRack/Rack / createLight

Function createLight

include/helpers.hpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143template <class TModuleLightWidget>
144TModuleLightWidget* createLight(math::Vec pos, engine::Module* module, int firstLightId) {
145 TModuleLightWidget* o = new TModuleLightWidget;
146 o->box.pos = pos;
147 o->app::ModuleLightWidget::module = module;
148 o->app::ModuleLightWidget::firstLightId = firstLightId;
149 return o;
150}
151
152
153template <class TModuleLightWidget>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected