title: OpenGL Python Maya API drawing without MPxLocator plugin
body: <p>I'm trying to do something simple like this in the maya python api:</p>
  
  <pre><code>import maya.OpenMayaUI as OpenMayaUI
  import maya.OpenMayaRender as OpenMayaRender
  
  #Get active camera.
  view = OpenMayaUI.M3dView.active3dView()
  
  glFT = OpenMayaRender.MHardwareRenderer.theRenderer().glFunctionTable()
  
  view.beginGL()
  
  glFT.glBegin(OpenMayaRender.MGL_LINES)
  glFT.glVertex3f(0.0, 0.0, 0.0)
  glFT.glVertex3f(0.0, 1.0, 0.0)
  glFT.glEnd()
  
  view.endGL()
  </code></pre>
  
  <p>I just want to draw a line in maya without having to build a MPxLocator or what have you to display it.</p>