#include "ui.hpp" #include "chassis.hpp" START_NAMESPACE_DISTRHO namespace Art = Artwork; DistrhoUIchassis::DistrhoUIchassis() : UI(Art::backgroundWidth, Art::backgroundHeight, true), // UI fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatRGB) { } void DistrhoUIchassis::programLoaded(uint32_t index) { //printf("in programLoaded %d\n", index); } void DistrhoUIchassis::parameterChanged(uint32_t index, float value) { //printf("in parameterchanged %d %f\n", index, value); } void DistrhoUIchassis::onDisplay() { const GraphicsContext& context(getGraphicsContext()); fImgBackground.draw(context); }; UI* createUI() { return new DistrhoUIchassis(); } END_NAMESPACE_DISTRHO