Thread: Cairo in WDL-OL
View Single Post
Old 03-22-2017, 10:16 AM   #43
CaptnWillie
Human being with feelings
 
Join Date: Dec 2016
Posts: 51
Default

Quote:
Originally Posted by Youlean View Post
No, it will better/ more efficient to have global cairo instance that will be used in all controls. This is how my framework was wired.
Thanks again for the advice.

I am to understand that like the example IPlugEffectCairoGraphics, I should have one header (class) where I do all of the drawing: i.e. CustomCairoControl,

and I have several other headers in my project, to do some DSP and envelope sensing, I should then just pass handles like the threshold and other things from my headers to the MyCairoControl class?
CaptnWillie is offline   Reply With Quote