Definition at line 304 of file DirImViewer3D.h. References sTxtFontBase. Referenced by SetUpPrintingID(). 00305 { 00306 StringPtrVector* fileNames = (StringPtrVector*) v->UserData2; 00307 int idx = (int) (long long) v->UserData1; 00308 char buf[200]; 00309 00310 glPushMatrix(); 00311 glColor3f( 0.0f, 1.0f, 0.0f ); 00312 00313 if (fileNames) 00314 { 00315 sprintf(buf, "%s", (*fileNames)[idx]->c_str()); 00316 oglSys.Printf3D(sTxtFontBase, -v->w/2.f-0.1, -v->h/2.f - 0.15, 0.1f, 00317 0.2f, 0.2f, 0.05f, buf); 00318 } 00319 else 00320 { 00321 sprintf(buf, "%d", idx); 00322 oglSys.Printf3D(sTxtFontBase, -0.1, -v->h/2.f - 0.15, 0.1f, 00323 0.3f, 0.3f, 0.1f, buf); 00324 } 00325 glPopMatrix(); 00326 }
|