Beispiel #1
0
void TEXT2D::draw_debug(const char* str, Wpt &pos, CVIEWptr& view)
{
   if (view->rendering() == RCOLOR_ID || view->grabbing_screen())
      return;
   
   if (!_dl.valid(view)) initialize(view);

   // GL initialization
   glPushAttrib(GL_ENABLE_BIT); // (GL_ENABLE_BIT)

   // No lighting
   glDisable(GL_LIGHTING);
   // Color

   //glColor3dv(COLOR::white.data());
   
   glRasterPos3dv(pos.data());
   glPushAttrib (GL_LIST_BIT); // (GL_LIST_BIT)
   glListBase(_dl.dl(view));  
   glCallLists(strlen(str), GL_UNSIGNED_BYTE, (GLubyte *) str);
   glPopAttrib (); // (GL_LIST_BIT)   
   
   glEnable(GL_LIGHTING);
   glPopAttrib(); // (GL_ENABLE_BIT)
   glFlush();

}
Beispiel #2
0
int
FFSTexture::draw(CVIEWptr& v)
{
   if(!_got_ffs_file){      
      get_ffs_data_file ();
      _got_ffs_file = true;
   }
   NPRTexture::draw(v);

   if(v->rendering() != "FFSTexture2")
       _controlframe->draw(v);
   return 0;
}