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

Method getLight

src/app/ModuleLightWidget.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65engine::Light* ModuleLightWidget::getLight(int colorId) {
66 if (!module)
67 return NULL;
68 if (firstLightId < 0)
69 return NULL;
70 return &module->lights[firstLightId + colorId];
71}
72
73
74engine::LightInfo* ModuleLightWidget::getLightInfo() {

Callers 1

stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected