TestGl.cpp (781B)
1 2 #include "TestGl.hpp" 3 4 void TestGl::reset() { 5 } 6 7 void TestGl::sampleRateChange() { 8 // float sampleRate = APP->engine->getSampleRate(); 9 } 10 11 void TestGl::processChannel(const ProcessArgs& args, int c) { 12 } 13 14 struct TestGlDisplay : OpenGlWidget { 15 }; 16 17 struct TestGlWidget : BGModuleWidget { 18 static constexpr int hp = 20; 19 20 TestGlWidget(TestGl* module) { 21 setModule(module); 22 box.size = Vec(RACK_GRID_WIDTH * hp, RACK_GRID_HEIGHT); 23 setPanel(box.size, "TestGl"); 24 createScrews(); 25 26 { 27 auto inset = Vec(10, 25); 28 auto size = Vec(box.size.x - 2*inset.x, 230); 29 auto display = new TestGlDisplay(); 30 display->box.pos = inset; 31 display->box.size = size; 32 addChild(display); 33 } 34 } 35 }; 36 37 Model* modelTestGl = createModel<TestGl, TestGlWidget>("Bogaudio-TestGl", "TESTGL", "");