- Joined
- Mar 30, 2008
- Messages
- 450
- Reaction score
- 1
- Points
- 18
Hi,
I'm trying to draw a triangle on an MFD. After a few hours of searching google, the forum, and the API documentation, I can't seem to find any examples of implementation of the Polygon function in a sketchpad.
I'm a bit confused by this function, as it seems that you'd need multiple IVECTOR2's to store the multiple point locations of the polygon. Does anybody have an example of an implementation of this function?
I'm trying to draw a triangle on an MFD. After a few hours of searching google, the forum, and the API documentation, I can't seem to find any examples of implementation of the Polygon function in a sketchpad.
Code:
virtual void Polygon (const IVECTOR2 *pt, int npt) // function definition from the orbiter API reference
skp->Polygon (??, 3); // implementation in my MFD code
I'm a bit confused by this function, as it seems that you'd need multiple IVECTOR2's to store the multiple point locations of the polygon. Does anybody have an example of an implementation of this function?