title: What is the proper way of drawing label in OpenGL Viewport?
body: <p>I have a multiviewport OpenGL modeler application. It has three different viewports : perspective, front and top. Now I want to paint a label for each viewport and not succeeding in doing it.</p>
  
  <p>What is the best way to print a label for each different perspective?
  EDITED : The result
  Here is the result of my attempt:
  <img src="https://i.stack.imgur.com/W00Az.png" alt="Label of perspective viewport is weird"></p>
  
  <p>I don't understand why the perspective viewport label got scrambled like that. And, Actually I want to draw it in the upper left corner. How do I accomplished this, because I think it want 3D coordinate... is that right? Here is my code of drawing the label</p>
  
  <pre><code>glColor3f(1,0,0);
  
          glDisable(GL_DEPTH_TEST);
          glDepthMask(GL_FALSE);
  
          glRasterPos2f(0,0);
          glPushAttrib(GL_LIST_BIT);                          // Pushes The Display List Bits
  glListBase(base - 32);                              // Sets The Base Character to 32    
      glCallLists(strlen("Perspective"), GL_UNSIGNED_BYTE, "Perspective");    // Draws The Display List Textstrlen(label)
  glPopAttrib();
  </code></pre>
  
  <p>I use the code from here <a href="http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13" rel="nofollow noreferrer">http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13</a></p>
  
  <p>thanks</p>