In grasshopper we have IGH_PreviewArgs args and DrawEventArgs e and it looks like they have very similar interfaces.
for instance e.Display
:
and ´e.Display`:
They are both referring to the DisplayPipeline.
I was wondering if there exists a mutual interface or hack to either convert between the two?
Maybe dynamic to force access to that field/Property or reflection. But they might come with a overhead not ideal to call at every frame redraw.
Edit:
probably best to just create draw methods on my objects using the DisplayPipeline and then call it from either e.Display or IGH_PreviewArgs.Display