THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/07/2006 at 08:44, xxxxxxxx wrote:
Howdy,
It might be a difficult task. I'm not all that experienced as a C++ programmer, but if my understanding of the SDK is correct, all drawing to the viewport is performed through an internal function. The plugin hook data types that allow drawing, have a virtual function Draw() included in the class that has the active BaseDraw pointer passed to it. That gives you access to the BaseDraw functions like: Point3D(), Line3D(), Polygon3D(), etc.
In the SDK docs under "Important Threading Information" it says that the Draw() function is a threaded function, so I'm assuming that drawing to the viewport has to be performed during the execution of that particular thread. I'm not sure how you'd go about accessing that thread, and from what I read in that section, it sounds like risky business.
Adios,
Cactus Dan