I’m trying to add it in the ModuleWidget constructor but can’t see anything.
struct SomeWidget : ModuleWidget {
SomeWidget(SomeModule *module){
setModule(module);
box.size = Vec(150, 380);
{
OpenGlWidget *w = new OpenGlWidget();
// was trying these but no help
// w->setSize(Vec(50, 50));
// w->fbSize = Vec(50, 50);
addChild(w);
}
}
}
what do I need to set to see the triangle from the default drawFramebuffer function?