ardmn/my_plugin_pi — pull request #1 by nohal (2014-12-31 16:23:38+00:00)
Title: Make the plugin work

This should get you going - you must store a copy of the plugin viewport, not just the pointer as the object gets destroyed when PlugInManager::RenderAllCanvasOverlayPlugIns / PlugInManager::RenderAllGLCanvasOverlayPlugIns finishes.
I have also fixed a few rather cosmetic issues.
Please consider setting your tabs to 4 spaces - it is how the OpenCPN code is (should) formatted.