openGL drawing maya api

Any one of good examples of how to setup gl drawing in the maya viewport, for use in tool previews. Something similar to how the preview on the create polyGon or append polygon tools work. I more or less just need to make a poly from a MPointArray in the preview, than be able to change vertex positions in real-time of it.

Hey Passerby,

Best place to look for an example is the devkit folder in your maya installation directory. There are both Python and C++ examples in there.

~B)