title: OpenGL the text moving with the camera and also the texture was also behaving the same way expert advise needed
body: <p>i am Making a pool game using openGL and finding this problem vary irritating.
  while i am trying to print one text on the screen and move my camera the text is also leaving its original position in the window and moving with the camera.</p>
  
  <p>here is the code that i have in draw().</p>
  
  <pre><code>void display() {
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);          // Clear Screen and Depth Buffer
      glLoadIdentity();
      // GLfloat position1[] = { 00.0, 100.0, 00.0, 1.0 };
  
      //cam position update
      gluLookAt( world.camera-&gt;cameraFrom.x,world.camera-&gt;cameraFrom.y,world.camera-&gt;cameraFrom.z, world.camera-&gt;cameraTo.x,0,world.camera-&gt;cameraTo.z, 0,1,0);    // Define a viewing transformation
                                        // Pop the current matrix stack
  
      //**************************************************************
      drawTable(world.table);     
      world.update();
  
      glPushMatrix();
       sprintf(str, "Player 1 Score: 1, Player 2 Score: 10");
       glRasterPos2f(10, 10);
       glutBitmapString(font,(unsigned char*)str);
      glPopMatrix();
      glutSwapBuffers();
  
  }
  </code></pre>